yum install httpd mysql-server php php-mysql
rm -rf /etc/httpd/conf.d/welcome.conf
systemctl retart httpd
文件存放目录
var/www/html/
解决中文乱码问题
vi /etc/httpd/conf/httpd.conf
IndexOptions Charset=UTF-8
IndexOptions Charset=GB2312
修改目录文件名不要被截断
vi /etc/httpd/conf.d/autoindex.conf
FancyIndexing HTMLTable VersionSort NameWidth=*
标签:httpd,http,CentOS,vi,Charset,etc,conf,mysql,服务器 From: https://www.cnblogs.com/simplerude/p/17175036.html