加入收藏 | 设为首页 | 会员中心 | 我要投稿 云计算网_泰州站长网 (http://www.0523zz.com/)- 视觉智能、AI应用、CDN、行业物联网、智能数字人!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Linux+Apache+MySQL+PHP5的安装配置

发布时间:2016-01-22 21:25:42 所属栏目:Linux 来源:网络整理
导读:服务器系统环境:CentOS 6.3 客户端系统环境:Windows 7 ultimate(x86)sp1 简体中文旗舰版 ※本文档描述了如何在Linux服务器配置Apache、Mysql、PHP5 LAMP(L

3、关闭SELINUX

[root@server ~]# vim /etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#     enforcing - SELinux security policy is enforced.

#     permissive - SELinux prints warnings instead of enforcing.

#     disabled - No SELinux policy is loaded.

#SELINUX=enforcing   #注释掉强制

SELINUX=disabled     #关闭

# SELINUXTYPE= can take one of these two values:

#     targeted - Targeted processes are protected,

#     mls - Multi Level Security protection.

#SELINUXTYPE=targeted   #注释掉

:wq   #保存退出

重启系统

[root@server ~]# reboot

安装软件包:

4、安装Apache

检查是否安装httpd,使用YUM 自动安装:

[root@server ~]# rpm -qa |grep httpd

[root@server ~]# yum -y install httpd    #根据提示,输入Y安装即可成功安装

启动Apache

[root@server ~]# service httpd start

正在启动 httpd:httpd: apr_sockaddr_info_get() failed for server

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[确定]

设为开机启动

[root@server ~]# chkconfig httpd on

重启Apache

[root@server ~]# service httpd restart

停止 httpd:  [确定]

正在启动 httpd:httpd: apr_sockaddr_info_get() failed for server

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[确定]

查看启动Apache运行状态

[root@server ~]# service httpd status

httpd (pid  1290) 正在运行...

浏览器访问:http://10.1.4.44

Linux+Apache+MySQL+PHP5的安装配置

(编辑:云计算网_泰州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读