apache的域名添加虚拟端口号 1、 vi /etc/httpd/conf/httpd.conf 2、 搜索Listen 80,在后面添加Listen 8080 3、 重启apache服务器。/usr/sbin/apachectl restart