- 安装Gcc编译环境、及相应的组件
-
yum install gcc-c++ yum install -y pcre pcre-devel yum install -y zlib zlib-devel yum install -y openssl openssl-devel
- 创建目录并上传nginx包
943 mkdir /usr/local/nginx
944 cd /usr/local/nginx/
945 rz
946 tar -zxvf nginx-1.18.0.tar.gz
947 cd nginx-1.18.0
948 ./configure
949 make && make install
950 vim /etc/profile
951 source /etc/profile
952 cp /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf-bak
953 ps -ef | grep nginx
954 ll
955 nginx
956 ps -ef | grep nginx
957 cd /usr/local/nginx/conf/
958 nginx -t
959 nginx -s reload
960 cd ..
961 pwd
962 ./configure --with-http_ssl_module
963 cd /usr/local/nginx/
964 ./configure --with-http_ssl_module
965 cd /usr/local/nginx/
966 cd nginx-1.18.0
967 ./configure --with-http_ssl_module
968 cd
969 nginx -t
970 yum -y install openssl openssl-devel
971 cd /usr/local/nginx/nginx-1.18.0
972 ./configure
973 ./configure --with-http_ssl_module
978 nginx -t
979 nginx -s reload