centos 安装LAMP
来源:互联网 发布:中国品牌最贵的域名 编辑:程序博客网 时间:2024/06/01 07:45
1,执行命令
yum -y install httpd mysql mysql-server php php-mysql postgresql postgresql-server php-postgresql php-pgsql php-devel
2,启动apache服务并查看时候启动成功
命令如下:(切记用root用户启动服务)
启动:/etc/rc.d/init.d/httpd start
如果报错:
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
修改配置文件:
修改/etc/httpd/conf/httpd.conf 配置,去掉ServerName 前的#(或者手动添加ServerName localhost:80)然后重启httpd服务
检测启动结果:ps aux | grep httpd
现在直接在浏览器键入http://localhost 或 http://本机IP ,应该会看到Apache的测试页面
这里需要注意iptables的设置哦。
如果打不开测试画面,很可能是防火墙导致的,关闭防火墙即可
/etc/init.d/iptables stop
阅读全文
0 0
- 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
- 算法1.1 下压(LIFO)栈(能动态调整数组大小的实现)
- 知乎大神解释数据库三范式
- 写一个函数,求两个整数之和,要求在函数体内不得使用+、-、*、/四则运算符号
- 配置Apache的虚拟站点
- SQLite3的基本使用
- centos 安装LAMP
- JVM详细理解
- pycharm加入import路径
- 前端面试资料整理
- js判断元素是否隐藏、显示
- hdfs的高可用性HA
- [第六季]11.HTML DOM对象及一个三级联动的例子
- POSIX标准
- 判断线段与圆弧的交点