基本包安装
yum install -y iftop unzip net-tools make gcc gcc-c++ mysql-devel python-devel python3-devel cyrus-sasl-devel epel-release wget htop redis nains bzip2 vnstat python-pip rpm git tmux vim
安装docker
yum update
yum remove docker docker-common docker-selinux docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
yum install docker-ce # 例如:sudo yum install docker-ce-17.12.0.ce
systemctl start docker
systemctl enable docker
安装nginx
yum install -y nginx
systemctl start nginx
systemctl enable nginx
安装mysql
wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum localinstall mysql57-community-release-el7-11.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld
systemctl enable mysqld
grep 'temporary password' /var/log/mysqld.log
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'
grant all privileges on *.* to 'test'@'%' identified by '123456';
```bash
mysql8.0 必须这样
create user test@'%' identified by '123456';
GRANT all on *.* TO test@'%';
```
原创文章,作者:站长,如若转载,请注明出处:https://wsppx.cn/156/%e7%bd%91%e7%ab%99%e9%83%a8%e7%bd%b2/