diff --git a/tools/nginx.sh b/tools/nginx.sh index 4388f71..ed545e5 100644 --- a/tools/nginx.sh +++ b/tools/nginx.sh @@ -5,4 +5,5 @@ sudo nginx -t # Check syntax 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 diff --git a/tools/ubuntu.sh b/tools/ubuntu.sh index dfa4be1..08af261 100644 --- a/tools/ubuntu.sh +++ b/tools/ubuntu.sh @@ -5,3 +5,6 @@ scp /path/to/file user@server:/path/to/destination # Copy file from local to server 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