Nginx
轻量级 支持高并发web服务器 开启安装很快
默认centos 系统不包括nginx rpm包 不能直接用 yum直接安装 需要epel.repo支持
源码包安装
[root@localhost ~]# tar xf nginx-1.16.1.tar.gz -C /usr/src/
[root@localhost ~]# cd /usr/src/nginx-1.16.1/
[root@localhost nginx-1.16.1]# ls
auto CHANGES.ru configure html man src
CHANGES conf contrib LICENSE README
[root@localhost nginx-1.16.1]# ./configure –help
Nginx安装过程需要有依赖
[root@localhost nginx-1.16.1]# yum -y isntall zlib-devel gcc gcc-c++ make pcre-devel
Zzw
Zzw
创建一个程序用户
[root@localhost nginx-1.16.1]# useradd -M -s /sbin/nologin nginx
[root@localhost nginx-1.16.1]# ./configure --prefix=/usr/local/nginx-1.16 --user=nginx --group=nginx --with-http_stub_status_module
[root@localhost nginx-1.16.1]# make && make install