Advertisement

实验在社区动力论坛上搭建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)

还没有任何评论哟~