安装禅道需要 apache, php, mysql运行环境
第一步:安装mysql
1.1 安装mysql客户端和服务端
>yum install mysql mysql-server
1.2 mysql 自启动
想要MySQL随系统启动,需要使用chkconfig命令把mysqld添加到启动组里:
>chkconfig --levels 235 mysqld on
详细的mysql 安装配置可以直接baidu或者google搜索,我使用的是腾讯云数据库,在这里就不详细说mysql的配置了
第二步:安装Apache2服务器
2.1 yum安装服务
>yum install httpd
2.2 apache 自启动
安装后,使用chkconfig命令把 httpd 添加至系统启动组里
>chkconfig --levels 235 httpd on
2.3 启动apache2
>service httpd start
访问你部署服务的ip 例如:http://192.168.0.14/ 如果显示默认的apache的内容说明服务正常启动。
tips:Fedora下Apache默认站点根目录位于 /var/www/html,默认配置文件位于/etc/httpd/conf/httpd.conf,其它配置文件都在/etc/httpd/conf.d/目录下
第三步:安装PHP5
3.1 安装
>yum install php
3.2 重启apache服务
>service httpd restart
<