We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS
yum -y install make gcc-c++ libtool openssl openssl-devel zlib zlib-devel
8.44
wget https://sourceforge.net/projects/pcre/files/pcre/8.44/pcre-8.44.tar.gz --no-check-certificate
tar vzxf pcre-8.44.tar.gz
cd vzxf pcre-8.44
./configure
make && make install
pcre-config --version
sudo cp -a pcre-8.44/ /usr/local/src/
1.17.9
wget http://nginx.org/download/nginx-1.17.9.tar.gz
tar vzxf nginx-1.17.9.tar.gz
cd nginx-1.17.9
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.44
/usr/local/nginx/sbin/nginx -v
cd ~
vim .bashrc
# nginx env export NGINX_HOME=/usr/local/nginx/sbin/ export PATH=$NGINX_HOME:$PATH
source .bashrc
nginx -v
nginx
# 启动 nginx 服务 nginx # 关闭 nginx 服务 nginx -s stop
server { listen 80; server_name 001.example.com; location / { proxy_pass http://127.0.01:3001; } } server { listen 80; server_name 002.example.com; location / { proxy_pass http://127.0.01:3002; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
系统
CentOS
系统工具
安装pcre
8.44
版本wget https://sourceforge.net/projects/pcre/files/pcre/8.44/pcre-8.44.tar.gz --no-check-certificate
tar vzxf pcre-8.44.tar.gz
cd vzxf pcre-8.44
./configure
make && make install
pcre-config --version
sudo cp -a pcre-8.44/ /usr/local/src/
安装nginx
1.17.9
wget http://nginx.org/download/nginx-1.17.9.tar.gz
tar vzxf nginx-1.17.9.tar.gz
cd nginx-1.17.9
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.44
make && make install
/usr/local/nginx/sbin/nginx -v
配置nginx 全局变量
cd ~
vim .bashrc
source .bashrc
nginx -v
使用nginx
nginx
其他nginx配置
多域名共用 80 端口
The text was updated successfully, but these errors were encountered: