-
下载安装环节
wget https://nginx.org/download/nginx-1.24.0.tar.gz tar -zxvf xxx.tar.gz yum -y install pcre-devel openssl openssl-devel ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream make & make install
-
环境变量配置
vim /etc/profile
export JAVA_HOME=/usr/local/jdk1.8
export NGINX_HOME=/usr/local/nginx
export PATH=$PATH:$NGINX_HOME/sbin:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
- 测试启动