tset123 发表于 2015-8-1 12:45:27

apache的web文件根目录

  apache的web文件根目录 /usr/local/apache2/htocs/下面
  如果想修改的话可以这样:
  cd /usr/local/apache2/etc/
  vi httpd.conf
  修改DocumentRoot "/usr/local/apache2/htocs/"为DocumentRoot "你的目录" 例如:DocumentRoot "/var/www/html"
  
  如果你用service httpd restart 无法启动apache而出现错误的时候 你可以输入命令 netstat -tunpl |grep :80 查看端口80被谁占用了,然后kill 进程id号,然后service httpd restart 就可以搞定了。我屡次出现这个问题,都是3304进程搞的鬼。
页: [1]
查看完整版本: apache的web文件根目录