【CentOS之小问题系列】-180613-V0.6
问题1:linux如何查看端口被哪个进程占用的方法:
1、lsof -i:端口号
2、netstat -tunlp | grep 端口号
问题2:查看httpd日志
tail -30 /var/log/httpd/error.log
问题3:ServerAdmin takes one argument, The email address of the server administrator
解决:
把ServerAdmin和ServerName注释掉
问题4:AddDefaultCharset takes one argument, The name of the default charset to add to any Content-Type without one or 'Off' to disable
解决:
把默认字体改成UTF-8