一个命令生成一个openresty服务的小工具。
源码地址:
https://gitee.com/trueboy/init-openresty-service
,部署前要安装openresty, 复制如下内部在centos命令行下粘贴运行就可以了:
mkdir -p /data/work/software/
cd /data/work/software/
yum -y install wget
wget https://openresty.org/download/openresty-1.19.3.2.tar.gz
yum -y install gcc gcc-c++ autoconf automake libtool pcre-devel openssl-devel curl
tar -zxvf openresty-1.19.3.2.tar.gz
cd /data/work/software/openresty-1.19.3.2
./configure --prefix=/usr/local/openresty
gmake -j8 && gmake install
cd /usr/local/openresty/nginx
pwd