AWS: Nginx

less than 1 minute read

Here is some command I use to install Nginx on AWS

Install: yum install nginx

Modify .conf: sudo nano /etc/nginx/nginx.conf

After Modify, don’t forget: sudo nginx -s reload

Start: sudo service nginx start

Sotp: sudo systemctl stop nginx.service

Disable: sudo systemctl disable nginx.service

Remove: yum remove nginx

I redirect my http port 80 to 8888
I use curl http://localhsot/api/courseData to test http requset

Tags:

Categories: ,

Updated: