CentOS7系统操做httpd服务 - 开机启动/重启/查看状态

CentOS7系统操做httpd服务 - 开机启动/重启/查看状态

第1、启动、终止、重启

systemctl start httpd.service #启动rest

systemctl stop httpd.service #中止it

systemctl restart httpd.service #重启io

第2、设置开机启动/关闭

systemctl enable httpd.service #开机启动class

systemctl disable httpd.service #开机不启动乱码

第3、检查httpd状态

systemctl status httpd.service配置

遇到问题:service

中文目录乱码的问题:方法

处理的方法:配置文件

CentOS7的 echo $LANG 为zh_ch.UTF-8,top

因此在配置文件/etc/httpd/conf/httpd.conf 中添加 IndexOptions Charset=UTF-8 便可解决

相关文章
相关标签/搜索