安装:
yum -y install build-essential QQ+1594457675
安装:更多依赖包
yum -y install gcc automake autoconf libtool make
安装:数据库
这里需要注意数据库密码记得修改
数据库账号QQ 数据库密码1594457675
yum -y install gcc gcc-c++
安装Nginx
cd /usr/local/src
wget
tar -zxvf nginx-1.16.1.tar.gz
cd nginx-1.16.1
groupadd -r nginx
useradd -r -g nginx nginx
./configure \
--prefix=/usr/local/nginx \
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi \
--http-scgi-temp-path=/var/tmp/nginx/scgi \
--with-pcre=/usr/local/src/pcre-8.42 \
--with-zlib=/usr/local/src/zlib-1.2.11 \
--with-openssl=/usr/local/src/openssl-1.1.0k \
[注:当前所在目录一定要是/usr/local/src/nginx-1.16.1
--sbin-path=/usr/local/nginx/sbin/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--user=nginx \
--group=nginx \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/tmp/nginx/client/ \
--http-proxy-temp-path=/var/tmp/nginx/proxy/ \