Apache相关文件介绍
配置文件:
/etc/httpd/conf/httpd.conf
服务器的根目录:
/etc/httpd
根文档目录:
/var/www/html
访问日至文件:
/var/log/httpd/access_log
错误日至文件:
/var/log/httpd/error_log
运行Apache的用户:apache
运行Apache的组:apache
端口:80
模块存放路径:
/usr/lib/httpd/modules
Apache相关命令
apache的进程:httpd
apache的启动:
service httpd start
apache的停止:
service httpd stop
apache的重新启动:
service httpd restart
apche的进程状态查看:
ps -A |grep httpd或service httpd status
apache的语法检查:
apache configtest
CentOS7系统操作httpd服务 - 开机启动/重启/查看状态
https://blog.csdn.net/shenzhen_zsw/article/details/77844417
Apache简明教程 http://lovesoo.org/apache-concise-guide.html?ggbuxg=8wgqe