Last active
August 16, 2024 18:49
-
-
Save choyno/720a5470898f6e0d0c2515dd49f48462 to your computer and use it in GitHub Desktop.
RESTART NGINX AMAZON LINUX AMI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Try to run the following two commands: | |
sudo fuser -k 80/tcp | |
sudo fuser -k 443/tcp | |
NGINX BASIC COMMAND | |
sudo service nginx restart | |
sudo service nginx start | |
sudo service nginx stop | |
RUN BACKGROUND AFTER REBOOT | |
sudo chkconfig nginx on | |
NGINX config | |
- sudo vi /etc/nginx/nginx.conf | |
NGINX Application Setup | |
- sudo vim /etc/nginx/conf.d/<config_name>stm.conf | |
NGINX LOG PATH | |
- cd /var/log/nginx | |
CAMALEON UPLOAD ERROR <temporary handler for big image> | |
- cd /var/tmp/nginx <check if has nginx folder> | |
SOURCE | |
https://stackoverflow.com/questions/35868976/nginx-not-started-and-cant-start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment