搭wordpress时的几个坑。

Job for httpd.service failed because the control process exited with error code. See "systemctl 解决方案:

netstat -antlp | grep 80

了解一下

原来是 nginx 占用了端口

停止即可

killall -9 nginx

2.wordpress设置中文;

在wp-config.php中添加define('WPLANG', 'zh_CN');

3.防止网站爆出文件夹:

在 /etc/httpd/conf/httpd.conf

 

原文地址:https://www.cnblogs.com/Ravenzzz/p/10519994.html