怎么免费创建自己的网站,分成型网站建设,wordpress 注册 边栏,佛山网站制作哪家好目录
1、准备安装环境
2、获取tar包#xff1a;
3、解压创建软链接
4、创建用户和组
5、执行安装
6、创建服务脚本
7、开启nginx#xff1a;编辑编辑 1、准备安装环境
yum insatall -y make gcc gcc-c pcre-devel
#pcre-devel -- pcre库
#安装openssl-devel
yum …目录
1、准备安装环境
2、获取tar包
3、解压创建软链接
4、创建用户和组
5、执行安装
6、创建服务脚本
7、开启nginx编辑编辑 1、准备安装环境
yum insatall -y make gcc gcc-c pcre-devel
#pcre-devel -- pcre库
#安装openssl-devel
yum install -y openssl-devel
2、获取tar包
Index of /download/
3、解压创建软链接
tar -xf nginx-1.22.0.tar.gz -C /usr/local/
ln -s /usr/local/nginx-1.22.0/ /usr/local/nginx4、创建用户和组
groupadd -r nginx
useradd nginx -u 996 -r -g 996 -c nginx user5、执行安装
./configure --usernginx --groupnginx --prefix/usr/local/nginx --with-http_stub_status_module --with-http_ssl_modulemake make
6、创建服务脚本
#vim /usr/lib/systemd/system/nginx.service[Unit]
Descriptionnginx - high performance web server
Documentationhttp://nginx.org/en/docs/
Afternetwork.target remote-fs.target nss-lookup.target[Service]
Typeforking
PIDFile/run/nginx.pid
ExecStartPre/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
ExecStart/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecReload/bin/kill -s HUP $MAINPID
ExecStop/bin/kill -s QUIT $MAINPID
PrivateTmptrue[Install]
WantedBymulti-user.target#systemctl daemon-reload
7、开启nginx