Skip to content

Commit

Permalink
Sweet & Short
Browse files Browse the repository at this point in the history
  • Loading branch information
ojobatcreative committed May 4, 2024
1 parent 78ee004 commit b247b95
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 0x0E-web_stack_debugging_1/1-debugging_made_short
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# configures a server to listening on port 80 of all servers active IPv4 IPs

sudo sed -i 's/\blisten 8080\b/listen 80/' /etc/nginx/sites-enabled/default
sudo systemctl restart nginx

if command -v systemctl &>/dev/null; then
sudo systemctl restart nginx
else
# If systemctl is not available, use the service command
sudo service nginx restart
fi

sudo truncate -s 0 /run/nginx.pid >/dev/null 2>&1

0 comments on commit b247b95

Please sign in to comment.