久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

centos7 mini下搭建lamp環境

2016-03-29 15:29:04 21412


Centos7mini下安裝 Apache+mariadb+php環境。

1.ssh安裝,便于遠程管理

#yum install ssh

#vi /etc/sshd/sshd-config

編輯端口,將22端口前的注釋;去掉

#service sshd start

#chkconfig sshd on

 

2.安裝iptables,centos7mini默認沒有安裝iptables

#yum install iptables-services

#vi /etc/sysconfig/iptables    //開放相應的端口



3.httpd安裝

#yum install httpd

#vi /etc/httpd/conf/httpd.conf     //修改相應配置文件

#service httpd restart

 

4.mariadb數據庫(centos7版本的數據庫為mariadb)

#yum install mariadb mariadb-server

#mysql_secure_installation  (添加數據庫密碼)

提交成功!非常感謝您的反饋,我們會繼續努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務,我們很需要您進一步的反饋信息:

在文檔使用中是否遇到以下問題: