环境准备
systemctl stop firewalld
systemctl disable firewalld
setenforce 0 && sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all && yum makecache
安装依赖包
yum install dh-autoreconf fcgi fcgi-devel -y
安装spawn-fcgi 和 fcgiwrap
#创建存放包的目录(包下载到哪个目录都可以,这里放在/source/目录下) mkdir /source/ && cd /source/ #安装spawn-fcgi #github下载最新代码 https://github.com/lighttpd/spawn-fcgi 本地下载:wget https://www.jinchuang.org/novel/lnmp/spawn-fcgi.zip 解压:unzip spawn-fcgi.zip 安装: mv spawn-fcgi-master spawn-fcgi cd spawn-fcgi ./autogen.sh ./configure make && make install #安装fcgiwrap #github下载最新代码 https://github.com/gnosek/fcgiwrap 本地下载:wget https://www.jinchuang.org/novel/lnmp/fcgiwrap.zip 解压: unzip fcgiwrap.zip 安装: mv fcgiwrap-master fcgiwrap cd fcgiwrap autoreconf -i ./configure make && make install