mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-10-29 00:04:06 -07:00
docs(ubuntu): add commands
This commit is contained in:
1 parent
328b62fcb8
commit
d2e6e17e9e
2 files changed
+4
No files matched your search
@@ -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
|
||||||
@@ -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
|
||||||
Reference in new issue
Block a user