centos安装LAMP
来源:互联网 发布:中国软件邮箱地址 编辑:程序博客网 时间:2024/05/21 09:13
一、安装Apache
yum install httpd #根据提示,输入Y安装即可成功安装
/etc/init.d/httpd start #启动Apache
备注:Apache启动之后会提示错误:
正在启动 httpd:httpd: Could not reliably determine the server's fully qualifdomain name, using ::1 for ServerName
解决办法:
vi/etc/httpd/conf/httpd.conf #编辑
找到 #ServerNamewww.example.com:80
修改为 ServerName localhost:80
:wq! #保存退出
chkconfig httpd on #设为开机启动
yum install httpd #根据提示,输入Y安装即可成功安装
/etc/init.d/httpd start #启动Apache
备注:Apache启动之后会提示错误:
正在启动 httpd:httpd: Could not reliably determine the server's fully qualifdomain name, using ::1 for ServerName
解决办法:
vi/etc/httpd/conf/httpd.conf #编辑
找到 #ServerNamewww.example.com:80
修改为 ServerName localhost:80
:wq! #保存退出
chkconfig httpd on #设为开机启动
/etc/init.d/httpd restart #重启Apache
关闭防火墙
#/etc/init.d/iptables stop
现在可以通过局域网访问了。
- Centos上安装lamp
- CentOS编译安装lamp
- CentOS上安装LAMP
- centos下安装lamp
- CentOS编译安装lamp .
- centos lamp安装
- centos 源码安装lamp
- Centos下安装LAMP
- centos编译安装lamp
- centos安装LAMP
- centos安装LAMP步骤
- CentOS上安装LAMP
- CentOS下安装LAMP
- CentOS yum lamp安装
- Centos安装LAMP
- CentOS - LAMP安装(3)
- centos 安装lamp
- centos安装lamp
- Lync 2010升级到Lync 2013 之Lync 2010 架构扩展准备!
- 开发日记(一)
- 我的第一篇博文
- 06-相对布局和绝对布局
- 我或将离开技术的世界, 踏上新的旅程
- centos安装LAMP
- .mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER privilege for this op
- 八月的日子
- dcmtk提示无法解析的外部符号(unresolved external symbol)的解决方法
- android上gl纹理资源路径的问题
- PHP中try{}catch{}的具体用法详解
- 面试题之——对包含汉字的字符串截取指定字节数
- 14,标准C
- Android 使用SAX解析XML