文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 计算机软件及应用 > 如何更改linux下的Apache端口号
侵权投诉

如何更改linux下的Apache端口号

然后再apachectl start,OK。使用域名:81能够访问啦。

注:semanage

semanage is used to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources. This includes the mapping from Linux usernames to SELinux user identities (which controls the initial security context assigned to Linux users when they login and bounds their authorized role set) as well as security context mappings for various kinds of objects, such as network ports, interfaces, and nodes(hosts) as well as the file context mapping. See the EXAMPLES section below for some examples of common usage. Note that the semanage login command deals with the mapping from Linux usernames (logins) to SELinux user identities, while the semanage user command deals with the mapping from

SELinux user identities to authorized role sets. In most cases, only the former mapping needs to be adjusted by the administrator; the latter is principally defined by the base policy and usually does not require modification.

2、linux 下apche无法监听端口解决办法

doc.guandang.net

想建立一个测试用的虚拟主机,遇到了这个问题:

[root@localhost html]# service httpd start

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.termwikidev for ServerName

(13)Permission denied: make_sock: could not bind to address [::]:81

(13)Permission denied: make_sock: could not bind to address 0.0.0.0:81

no listening sockets available, shutting down

Unable to open logs

解决办法:

semanage port -l|grep http

semanage port -a -t http_port_t -p tcp 81

这个两个命令一是查看,一个是添加,添加完再查看一遍,如果有81,则成功。另可能要以root用户运行。

此外,如果要外网访问,还要打开linux的防火墙:

3

上一页第3页

热门文档

相关文档

  • 如何更改linux下的Apache端口号

    如何更改linux下的Apache端口号_计算机软件及应用_IT/计算机_专业资料。如何更改 linux 下的 Apache 端口号 一、修改/etc/httpd/conf/httpd.conf 文件中的监听...

  • linux系统如何修改端口号

    linux系统如何修改端口号_电脑基础知识_IT/计算机_专业资料。一、修改/etc/...-denied-makesock-could-not.html 不熟悉python、plone、zope,想用apache。...

  • 如何改变Apache端口

    如何改变Apache端口_计算机硬件及网络_IT/计算机_专业资料。如何改变 Apache 端口: 找到 Apache 安装目录下 conf 目录下的 httpd.conf 文件。 打开它,找到 “...

  • Linux下apache mysql等服务修改默认端口后无法正常启动...

    linux 下 apache 等服务修改默认端口后无法正常启动解决办法 服务器上装了两个 webserver,一个是 nginx 开在 80 端口,没有异常。另外一个是 apache 绑定的 8001...

  • linux环境 apache 多端口配置虚拟主机的方法

    linux 环境 apache 多端口配置虚拟主机的方法默认情况下,linux 上 apache 使用的...现在以配置 svn 的端口为例,讲下如何通过配置虚拟主机实现将 svn 更改默认的 ...

  • linux端口修改

    org.apache.catalina.startup.Bootstrap start 由以上我们知道是目录为/usr/... linux系统如何修改端口号... 2页 免费 Linux下SSH端口修改 2页 免费 Linux...

  • 修改Apache默认端口

    修改Apache默认端口_计算机软件及应用_IT/计算机_专业资料。修改 Apache 默认端口在 Linux 下修改 Apache 的配置文件,编辑/etc/httpd/httpd.conf。加#号的是 ...

  • 改变Apache端口等配置修改方法

    改变Apache端口等配置修改方法_计算机软件及应用_IT/计算机_专业资料。改变 Apache 端口等配置修改方法 如何改变 Apache 端口:找到 Apache 安装目录下 conf 目录下...

  • Linux下Apache服务器的安装和配置

    Linux下Apache服务器的安装和配置_计算机软件及应用_IT/计算机_专业资料。Apache... 在【系统】 【管理】 【安全级别和防火墙】中,讲站点使用的端口设置为 信任...

  • Apache配置多端口及Apache端口修改方法

    Order allow,deny Allow from all </Directory> </VirtualHost> 改变Apache端口等配置修改方法 如何改变Apache端口:找到Apache安装目录下conf目录下的httpd.conf文件...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email