https://doc.rg1008.com/docs/rg_pass_tool/rg_pass_tool-1eir73kdl5i8k
开源版本
https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/
sudo nginx -v
下载地址
下载
wget https://nginx.org/download/nginx-1.25.1.tar.gz
tar zxf nginx-1.25.1.tar.gz
cd nginx-1.25.1
将下载的包上传euler服务器上面,使用解压命令解密:
cd /opt/lib/nginx
mkdir -p /opt/lib/nginx
tar vzxf /opt/lib/nginx-1.25.1.tar.gz -C /opt/lib/nginx
history
tar -xvf nginx-1.25.1.tar.gz
查看pcre安装路径 –with-pcre=
ldconfig -p | grep pcre
3、切换到cd /usr/local/nginx下面
执行三个命令:
cd /opt/lib/nginx/nginx-1.25.1
./configure --with-openssl=/opt/lib/openssl/openssl-1.1.1k --with-http_ssl_module --prefix=/opt/lib/nginx/nginx-1.25.1
make & make install
make
make install
测试是否安装成功
cd到刚才配置的安装目录/usr/local/nginx/
./sbin/nginx -t
/usr/local/nginx/sbin/nginx -t
/opt/lib/nginx/nginx-1.25.1/sbin/nginx -t
红色错误如果不知道错误不用管
文档更新时间: 2024-05-12 23:35 作者:admin