1. MySQL installation and start
Select the specified version of mysql for the specified operating system to download
MySQL :: Download MySQL Community Serverhttps://dev.mysql.com/downloads/mysql/5.7.html#downloads
Select copy download link
Go back to the terminal and execute this command to download
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.40-linux-glibc2.12-x86_64.tar.gz
Reference article:
Install mysql on CentOS - Tencent Cloud Developer Community - Tencent Cloud The second step is to enter the /usr/local/soft/ directory and execute the wget download link command in it, or download it to windows first and then upload it to the directory of CentOS through xftp , but... https://cloud.tencent.com/developer/article/1646056 Install MySQL, uninstall MySQL, configure soft connections,no temporary password, you can view the temporary password in the mysql error log
2. Redis installation
yum install epel-release
yum install redis
Execute the above command, install redis, and start automatically after the installation is complete
# 启动redis
systemctl redis start
# 停止redis
systemctl redis stop
# 查看redis运行状态
systemctl redis status
# 查看redis进程
ps -ef | grep redis
# 进入本机redis
redis-cli
# 列出所有key
keys *
Reference article:
Install Redis on CentOS - Tencent Cloud Developer Community - Tencent Cloud Change the default password, search for requirepass foobared and change foobared to your password https://cloud.tencent.com/developer/article/1938468Install , start, restart, change password
3. Nginx installation and configuration
yum install nginx
Reference article:
Install nginx with yum I think it would be troublesome to compile. You can try to use yum to quickly install nginx. Reduce the pain of setting up the environment. https://cloud.tencent.com/developer/article/1437633 Install nginx, prohibit updates, start, restart, reload configuration, modify configuration
4. NVM installation
Download to linux in advance, decompress, configure, nvm.sh permissions must be given to 744
Reference article:
Configure nvm source address
# 进入配置文件
vi ~/.bashrc
# 编写如下代码设置源地址
export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node
# 执行此配置,然后就可以更快的使用nvm install了
source ~/.bashrc
5. Installation of PM2
npm install pm2 -g