systemctl start httpd.service #啓動rest
systemctl stop httpd.service #中止it
systemctl restart httpd.service #重啓io
systemctl enable httpd.service #開機啓動class
systemctl disable httpd.service #開機不啓動亂碼
systemctl status httpd.service配置
遇到問題:service
中文目錄亂碼的問題:方法
處理的方法:配置文件
CentOS7的 echo $LANG 爲zh_ch.UTF-8,top
因此在配置文件/etc/httpd/conf/httpd.conf 中添加 IndexOptions Charset=UTF-8 便可解決