### :-: 以下以centos为例配置应用运行环境 >[info] 安装MySQL >=5.5.0(推荐5.7版本) ``` 1、下载Yum Repository yum -y install mysql57-community-release-el7-10.noarch.rpm 2、安装MySQL服务器 yum -y install mysql-community-server 3、MySQL数据库设置 3.1、启动 systemctl start mysqld.service 3.2、查看运行状态 systemctl status mysqld.service 3.3、查看root初始密码 grep "password" /var/log/mysqld.log 3.4、登录 mysql -uroot -p 3.5、修改密码 mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password'; 3.6、开启远程访问 grant all privileges on *.* to 'root'@'192.168.0.1' identified by 'password' with grant option; mysql> flush privileges; ``` >[info] 安装 Nginx ``` 1、判断是否有nginx源 yum search nginx 2、安装 yum install nginx.x86_64 -y 3、启动 service nginx start 4、nginx 相关命令 service nginx restart(重启) service nginx start(启动) service nginx stop(停止) service nginx status(查状态) 5、修改配置 vim /etc/nginx/nginx.conf ``` >[info] NodeJS ``` yum -y install nodejs ```