编译安装nginx

yum -y install pcre-devel openssl openssl-devel

yum install gcc gcc-c++ kernel-devel

解压tar包

tar -zxvf nginx-1.9.9.tar.gz

cd nginx-1.9.9

./configure --prefix=/home/data/nginx

make

make install

/home/data/nginx/sbin/nginx -c /home/data/nginx/conf/nginx.conf

 

安装ssl

/configure --prefix=/data/nginx --with-http_stub_status_module --with-http_ssl_module

 

posted @ 2020-04-14 11:07  疯狂的米粒儿  阅读(110)  评论(0编辑  收藏  举报