Loading... <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">首先登陆SSH,执行<span style="color:#E53333;">amh php stop</span></span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第一步:wget http://am1.php.net/distributions/php-5.6.9.tar.gz</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第二步:tar zxvf php-5.6.9.tar.gz</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第三步:cd php-5.6.9</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第四步:./configure --prefix=/usr/local/php --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-openssl --with-zlib --with-curl --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --enable-mbstring --enable-zip --with-iconv=/usr/local/libiconv --with-mysql=/usr/local/mysql --without-pear --disable-fileinfo --enable-opcache</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第五步:make</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第六步:make install</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第七步:echo listen.owner = www >> /usr/local/php/etc/php-fpm.conf</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">echo listen.group = www >> /usr/local/php/etc/php-fpm.conf</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <p> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">echo listen.mode = 0660 >> /usr/local/php/etc/php-fpm.conf</span> </p> <p> <span style="color:#444444;">最好在检查一下 有时候没换行</span> </p> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第八步:echo listen.owner = www >> /usr/local/php/etc/php-fpm-template.conf</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">echo listen.group = www >> /usr/local/php/etc/php-fpm-template.conf</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">echo listen.mode = 0660 >> /usr/local/php/etc/php-fpm-template.conf</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <p> <span style="color:#444444;white-space:normal;">最好在检查一下 有时候没换行</span> </p> <p> </p> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第九步: echo listen.owner = www >> /usr/local/php/etc/fpm/你的网站.conf</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">echo listen.group = www >> /usr/local/php/etc/fpm/你的网站<span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">.conf</span></span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <p> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">echo listen.mode = 0660 >> /usr/local/php/etc/fpm/你的网站<span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">.conf</span></span> </p> <p> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;"><span style="color:#444444;white-space:normal;">最好在检查一下 有时候没换行</span><br /> </span> </p> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;line-height:21px;white-space:normal;background-color:#FFFFFF;">第十步:amh php restart</span> 最后修改:1970 年 01 月 01 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏