linux使用nginx

weixin_33711641發表於2018-07-25

參考網址

https://www.cnblogs.com/wyd168/p/6636529.html

安裝openssl

cd /usr/local/src
wget https://www.openssl.org/source/openssl-1.0.1t.tar.gz
tar -zxvf openssl-1.0.1t.tar.gz
yum -y install openssl openssl-devel

安裝nginx

tar -zxvf nginx-1.15.0.tar.gz
cd nginx-1.15.0
./configure
make
make install

啟動

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

相關文章