yum install –y epel-release 安装第三方源
yum install –y nodejs npm 安装nodejs npm
npm install pm2 -g 安装pm2
yum install mysql-server 安装mysql
service mysqld restart 启动mysql
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '' WITH GRANT OPTION;
mysq:1130错误
yum install –y mariadb mariadb-server
安装mariadb
systemctl start mariadb
systemctl stop mariadb
systemctl restart mariadb
systemctl enable mariadb
mysql_secure_installation
回车,输入两次y
输入两次密码,回车
最后出现Thanks for using MariaDB
yum install –y nodejs npm 安装nodejs npm
npm install pm2 -g 安装pm2
yum install mysql-server 安装mysql
service mysqld restart 启动mysql
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '' WITH GRANT OPTION;
mysq:1130错误
yum install –y mariadb mariadb-server
安装mariadb
systemctl start mariadb
systemctl stop mariadb
systemctl restart mariadb
systemctl enable mariadb
mysql_secure_installation
回车,输入两次y
输入两次密码,回车
最后出现Thanks for using MariaDB
pm2 start www --name lvzhan