PHP环境初始化配置

Linux上有Nginx,和Apach,类似于windows的IIS。


Niginx的初始化页面

------------------------------------------------------------------------------------------------------

Welcome to nginx on EPEL!

This page is used to test the proper operation of the nginx HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly.

Website Administrator

This is the default index.html page that is distributed with nginx on EPEL. It is located in /usr/share/nginx/html.

You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file/etc/nginx/nginx.conf.

---------------------------------------------------------------------------------------------------------


cat /usr/share/nginx/html/inde.html就可以看到此页内容,vim就可以修改此页内容


启动php-fpm service,然后修改默认配置,实现nginx和php的联动,查看配置文件cat /etc/php-fpm.d/www.conf |grep -i 'listen ='

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值