实验在社区动力论坛上搭建LNMP架构
发布时间
阅读量:
阅读量
实验·搭建LNMP架构的社区动力论坛
文章目录
搭建Nginx
* 实验结果
实验环境
CentOS 7.6
Win 10
实验步骤
#搭建Nginx
#安装环境
[root@localhost opt]# yum -y install gcc gcc-c++ pcre pcre-devel zlib-devel
#解压缩源码包
[root@localhost opt]# tar zxvf nginx-1.12.2.tar.gz
#创建nginx用户
[root@localhost nginx-1.12.2]# useradd -M -s /sbin/nologin nginx
#编译安装
[root@localhost opt]# cd nginx-1.12.2/
[root@localhost nginx-1.12.2]# ./configure \
--prefix=/usr/local/nginx \
--user=nginx \
--group=nginx \
--with-http_stub_status_module
[roo
全部评论 (0)
还没有任何评论哟~
