# 安装脚本
#!/bin/sh
yum install readline-devel pcre-devel openssl-devel gcc
wget https://openresty.org/download/openresty-1.11.2.5.tar.gz
tar -xzvf openresty-1.11.2.5.tar.gz
rm -f openresty-1.11.2.5.tar.gz
cd openresty-1.11.2.5
./configure --prefix=/usr/local/eiduo/ --conf-path=/etc/nginx/conf/nginx.conf --user=www --group=www --with-luajit --with-stream
make
make install
echo 'ngnix install success!'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
配置文件 →