醉梦半醒的博客

centos常见服务安装

字数统计: 83阅读时长: 1 min
2018/09/10 Share

记一下,不然每次都忘了

yum install httpd restart

yum install mysql mysql-server -y

yum install php php-fpm -y

yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc -y

service php-fpm restart

service mysqld restart

service httpd restart

 

 

mysql设置密码:

mysqladmin -u root password 123456

进入:

mysql -u root -p
Enter password:123456

centos7:

yum install mariadbserver mariadb

mysql_secure_installation
CATALOG