摘要: <?php $host = '数据库主机'; // 例如:localhost $username = '数据库用户名'; // 例如:root $password = '数据库密码'; // 例如:mypassword $database = '数据库名'; // 例如:mydatabase // 阅读全文
posted @ 2023-07-19 22:09 DuanYongchun 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 解决办法: 在配置文件中加一句ServerName localhost:端口号 # echo "ServerName localhost:8068" >> /etc/httpd/conf/httpd.conf 重启Apache即可解决。 阅读全文
posted @ 2023-07-19 21:17 DuanYongchun 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 导言:这是SE Linux安全机制导致的。 解决方法: 1.查看当前httpd端口 # semanage port -l|grep http 2.将对应端口加入SE Linux,以8068为例 # semanage port -a -t http_port_t -p tcp 8068 3.再次查看 阅读全文
posted @ 2023-07-19 14:07 DuanYongchun 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 解决:https://blog.csdn.net/Air_Penguin/article/details/47314725 阅读全文
posted @ 2023-07-19 13:10 DuanYongchun 阅读(23) 评论(0) 推荐(0) 编辑