1、linux下修改apache端口号linux
yum安装后,apache配置文件: /etc/httpd/conf/httpd.confnginx
找到apache目录下的 httpd.conf, 使用vi 打开,找到 port=80 这一行, 把80改为在此服务器上没有用到的端口号,保存退出。web
2、linux下修改xampp里apache端口号apache
第1步:apache 配置文件在 /opt/lampp/etc/httpd.conf 文件中。找到 Listen 行,修改端口号服务器
第2步:编辑根目录下的xampp文件(个人文件位置:/opt/lampp/xampp),打开里面有句这样的话:
if testport 80
then
$GETTEXT -s "fail."
echo "XAMPP: " $($GETTEXT 'Another web server is already running.')
return 1
fiserver
if testport 80 写死了,把80改为你要的端口同样test
3、linux下修改nginx端口号配置
yum安装后,nginx配置文件路径:/nginx/nginx-1.8.0/conf/nginx.confList
把80改为在此服务器上没有用到的端口号im