转载来自:https://www.cnblogs.com/jave1ove/p/5486427.html
当出现httpd不是内部或者外部命令的时候解决方法:
https://jingyan.baidu.com/article/ce09321b7593062bfe858f6c.html
然后发现httpd还是有问题之后就
转自来自https://blog.csdn.net/zhaomininternational/article/details/42293511
以下总结在配置及启动apache2时出现报错的处理方法
一、启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
[root@server httpd-2.2.4]# /usr/local/apache/bin/apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
1)进入apache的安装目录:(视个人安装情况而不同) [root@server ~]# cd /usr/local/apache/conf
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80
[root@server conf]# ls
extra httpd.conf magic mime.types original
[root@server conf]# vi httpd.conf
#ServerName www.example.com:80
ServerName localhost:80
3)再重新启动apache 即可。
[root@server ~]# /usr/local/apache/bin/apachectl restart
关于mysql的配置
https://blog.csdn.net/yulutian/article/details/78971369
https://blog.csdn.net/secret5/article/details/53056027
https://blog.csdn.net/Myc_CSDN/article/details/80958249