centos7下安装php56+nginx1.14.0运行环境

by pxz


发布于: 2018-08-16 所属分类: php linux 标签: nginx  334


<h3 id="h3-1-nginx1-14-0-"><a name="1. nginx1.14.0安装" class="reference-link"></a><span class="header-link octicon octicon-link"></span>1. nginx1.14.0安装</h3><p>创建文件 /etc/yum.repos.d/nginx.repo<br>写入内容</p> <pre><code>[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1 </code></pre><p>执行安装<br><code>yum install nginx</code></p> <p>启用服务<br><code>systemctl enable nginx</code></p> <p>启动服务<br><code>systemctl start nginx</code></p> <h3 id="h3-2-php56-"><a name="2. php56安装" class="reference-link"></a><span class="header-link octicon octicon-link"></span>2. php56安装</h3><p>安装remi源</p> <pre><code>curl -O http://rpms.famillecollet.com/enterprise/remi-release-7.rpm rpm -Uvh remi-release-7.rpm </code></pre><p>安装php56</p> <pre><code>yum install php56-php-fpm yum install php56-php </code></pre><p>查询php-fpm服务名<br><code>systemctl list-unit-files | grep php</code></p> <p>启用php-fpm服务<br><code>systemctl enable php56-php-fpm</code></p> <p>启动php-fpm服务<br><code>systemctl start php56-php-fpm</code></p> <p>查看php进程, 可以看到php正常运行<br><code>ps -ef | grep php</code></p>

发表评论

暂无评论

搜索
用户登陆