创建虚拟环境

# 创建虚拟环境
virtualenv   archery --python=python3

# 切换python运行环境到虚拟环境
source  /opt/envs/archery/bin/activate

# 退出虚拟环境
deactivate


启动goInception:  1.3.0  
nohup /data/goinception/goInception -config=/data/goinception/config/config.toml & 


MySQL:  
mysql -h127.0.0.1 -uroot -P6033 -p"root.COM2020"

CREATE USER 'archery'@'%' identified with mysql_native_password by  'archery123';
GRANT ALL ON *.* TO 'archery'@'%';


mysql -h127.0.0.1 -uarchery -P6033 -p"archery123"  archery 


备份数据库: 
mysql  -h127.0.0.1  -uroot -P6033 -p"root.COM2020" 



Redis:  
启动: redis-server /data/redis/redis.conf &

redis-cli -h 127.0.0.1   -a sdfdSDFwer124


管理用户
root/Qwert@980500.com



runserver启动(仅作为本地测试)

cd  /data/code/Archery-1.11.1

nohup  python3  manage.py qcluster &

nohup  python3  manage.py runserver 0.0.0.0:8088  --insecure  &

 

posted @ 2025-06-16 14:39  屠魔的少年  阅读(13)  评论(0)    收藏  举报