Created
January 26, 2020 05:46
-
-
Save vinkrish/25090d140e808e13f4218827f7d69036 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apt-get update | |
apt-get install nginx | |
ps aux | grep nginx | |
ls -l /etc/nginx/ | |
clear | |
service nginx start | |
tar -zxvf nginx-1.17.2.tar.gz | |
wget http://nginx.org/download/nginx-1.17.2.tar.gz | |
cd nginx-1.17.2 | |
apt-get install build-essential | |
apt-get install libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev | |
./configure --help | |
./configure --sbin-path=/usr/bin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre --pid-path=/var/run/nginx.pid --with-http_ssl_module | |
make | |
make install | |
ls -l /etc/nginx/ | |
nginx -V | |
nginx | |
ps aux | grep nginx | |
sudo lsof -i TCP:80 | |
nginx -h | |
nginx -s stop | |
systemctl start nginx | |
systemctl status nginx | |
systemctl stop nginx | |
systemctl enable nginx (to start at bootup) | |
scp -i deeplearning.pem C:/Users/Vinay/Tutorials/Udemy/DevOps/"Nginx Fundamentals High Performance Servers from Scratch"/3.Configuration/demo-site.zip [email protected]:~/. | |
ls -l /etc/nginx/ | |
edit: nginx.conf | |
sudo mv nginx.conf /etc/nginx | |
systemctl reload nginx | |
systemctl restart nginx | |
sudo nginx -t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment