Tuesday, October 27, 2020
Deli.web.id : Apakah anda pernah mengalami ketika akan membuka suatu program aplikasi di Windows, tapi yang muncul adalah "Properties Program", pasti kesal kan?? Studi Kasus : Hari ini, saya ingin membuka Google Chrome dengan cara mengklik ikon aplikasi di desktop dua kali (Double Click), tapi yang muncul adalah Propertiesnya bukan aplikasinya, seperti pada gambar berikut ini : Usut punya usut, anda...
https://cdn3.wpbeginner.com/wp-content/uploads/2019/12/What-is-Subdomain.png
~# sudo cp /etc/nginx/sites-available/domainutama /etc/nginx/sites-available/subdomainutama ~# sudo nano /etc/nginx/sites-available/subdomainutama server { listen 80; listen :80; root /usr/share/nginx/domainutama/subdomain; index index.php index.html index.htm; server_name subdomain.domainutama.com www.subdomain.domainutama.com; location / { try_files $uri $uri/ =404; } } ~# sudo ln -s /etc/nginx/sites-available/subdomainutama /etc/nginx/sites-enabled/subdomainutama ~# sudo nginx -t ~# sudo service nginx restart
~# sudo mkdir -p /usr/share/nginx/website2.com ~# sudo chown -R www-data:www-data /usr/share/nginx/website2.com ~# sudo chmod -R 755 /usr/share/nginx/website2.com ~# sudo cp /etc/nginx/sites-available/website1 /etc/nginx/sites-available/website2 ~# sudo nano /etc/nginx/sites-available/website2 Website 1: server { listen 80 default_server; listen :80 default_server ipv6only=on; root /usr/share/nginx/website1; index index.php index.html index.htm; server_name website1.com www.website1.com; location / { Website 2: server { listen 80; listen :80; root /usr/share/nginx/website2; index index.php index.html index.htm; server_name website2.com www.website2.com; location / { Website 3: server { listen 80; listen :80; root /usr/share/nginx/website3; index index.php index.html index.htm; server_name website3.com www.website3.com; location...
~# sudo mysql -u root -p > show databases; > create database database_baru; > create user 'nama_user'@'localhost' identified by 'buatpassword'; > grant all privileges on database_baru.* to 'nama_user'@'localhost'; > quit ~# mysql -u root -p database_baru < /home/user/database_lama.sql ~# mysql -u root -p > show databases; > use database_baru; > show tables; > quit

FOLLOW ME

18,902FansLike
698FollowersFollow
217FollowersFollow
- Advertisement -

POPULAR ARTICLES