1. 程式人生 > >配置centos環境

配置centos環境

設置 art onf entos phpshe root wall secure mariadb

1、下載mariadb(mysql)

yum install mariadb mariadb-server

2、啟動mariadb

systemctl start mariadb

3、開機自啟動(可忽略)

systemctl enable mariadb

4、設置 root密碼等相關

mysql_secure_installation

5、測試登錄

mysql -uroot -p123456

mysql -uroot -p

//查看防火墻狀態

systemctl status firewalld.service

//關閉防火墻
systemctl stop firewalld.service

關閉SELinux

//查看本機IP

ifconfig

http://www.centoscn.com/CentosServer/sql/Mariadb/2015/0520/5483.html

http://www.cnblogs.com/phpshen/p/6222935.html

配置centos環境