当前位置:首页 » 操作系统 » linuxapache修改端口

linuxapache修改端口

发布时间: 2024-06-20 21:57:37

1. 【linux下lamp环境搭建】apache端口起在8000,php端口起在9000

apache端口在httpd.conf修改。

如果用apache的话,采用fast-cgi形式连接,php是没有端口的。
另,PHP的配置文件是php.ini文件。
php程序从来无法定义监听端口号。

2. linux怎么查看访问80端口的日志,在无法查看Apache日志的情况下

1、linux下的Apache默认端口就是80
2、你也可以通过修改配置文件的方式修改这个端口,/etc/httpd/conf文件里面找一下port把后面的数该成几那端口就是几了,记得改完要重启服务。

3. Linux系统下的80端口公网无法访问。

必须修改http.conf
使用httpd -S命令

[root@jleshop ~]# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 * (/etc/httpd/conf.d/ssl.conf:88)
*:80 is a NameVirtualHost
default server shop.jlsok.com (/etc/httpd/conf/httpd.conf:1028)
port 80 namevhost shop.jlsok.com (/etc/httpd/conf/httpd.conf:1028)
Syntax OK
显示如下窗口才表示你的80在httpd服务下可用。

同理,如果你想要使用其他商品提供HTTP服务,必须在httpd.conf文件里修改相应端口。

4. linux操作系统中通过修改那个文件可以修改WEB服务器端口进行配置

c:httpd.conf

这样的题目不严谨,httpd.conf是apache的配置文件,web服务器有很多种

热点内容
python的total 发布:2025-03-23 08:35:08 浏览:473
linux个shell 发布:2025-03-23 08:26:02 浏览:680
oraclelinux监听配置 发布:2025-03-23 08:07:48 浏览:966
锁频密码忘了怎么办 发布:2025-03-23 08:05:30 浏览:739
如何查询公会服务器 发布:2025-03-23 07:50:24 浏览:768
老电脑卡顿如何升级配置 发布:2025-03-23 07:48:08 浏览:979
服务器tnt禁了怎么炸区块 发布:2025-03-23 07:43:48 浏览:687
线上儿童编程哪家好 发布:2025-03-23 07:43:42 浏览:923
如何配置多肉的图片 发布:2025-03-23 07:38:37 浏览:805
千寻位置手簿哪里输入账号密码 发布:2025-03-23 07:34:50 浏览:419