1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-22 10:08:54 +00:00

docs(ubuntu): add commands

This commit is contained in:
Julien Le Coupanec 2020-07-01 11:31:00 +02:00
parent 328b62fcb8
commit d2e6e17e9e
2 changed files with 4 additions and 0 deletions

View File

@ -5,4 +5,5 @@
sudo nginx -t # Check syntax sudo nginx -t # Check syntax
sudo systemctl reload nginx # Reload nginx sudo systemctl reload nginx # Reload nginx
sudo service nginx restart # Restart nginx
sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/ # Link website sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/ # Link website

View File

@ -5,3 +5,6 @@
scp /path/to/file user@server:/path/to/destination # Copy file from local to server scp /path/to/file user@server:/path/to/destination # Copy file from local to server
df -h # Check the amount of free space df -h # Check the amount of free space
sudo ufw status # Check status
sudo ufw allow from remote_IP_address to any port 3306 # Allow external ip to access port