1. 安装python3.7
https://www.cnblogs.com/lovesKey/p/11355630.html
2. 安装python虚拟环境 和 依赖包
https://www.cnblogs.com/yunlongaimeng/p/10195508.html
3. mysql的安装和配置 (非编译)
1. sudo apt-get update
2. sudo apt-get install mysql-server
3. 初始化配置, 按照所需选择 y/n
sudo mysql_secure_installation
4. 检查mysql服务状态,显示actice (running)为正常
systemctl status mysql.service
5. 数据库配置远程访问
sudo mysql -uroot -p
GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY "密码";
GRANT ALL PRIVILEGES ON *.* TO root@'localhost' IDENTIFIED BY "密码";
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
将bind-address = 127.0.0.1 改为 bind-address = 0.0.0.0
6. 阿里云对外端口
7. navicat远程连接测试
4. redis安装与配置
1.安装redis服务端
sudo apt-get install redis-server
2.检查Redis服务器系统进程
ps -agx|grep redis
3.通过启动命令检查Redis服务器状态
netstat -nlt|grep 6379
4.通过命令行客户端访问Redis
redis-cli
5.nginx安装与配置
https://www.cnblogs.com/springsnow/p/12206723.html
6. 搭建supervisor
1.添加配置文件位置:
/etc/supervisor/conf.d/XXX.conf
2.log日志位置
/home/logs/xxx.log
3.常用命令
supervisorctl status //查看所有进程的状态
supervisorctl stop test //停止test
supervisorctl start test //启动test
supervisorctl restart //重启test
supervisorctl update //配置文件修改后使用该命令加载新的配置
supervisorctl reload //重新启动配置中的所有程序
ps -fe | grep supervisord //查看所有启动过的supervisord服务