上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 安装 pip install djangorestframework 注册 INSTALLED_APPS = [ "rest_framework", ] 配置路由 urlpatterns = [ path('auth/', views.auth), path('login2/', views.log 阅读全文
posted @ 2022-09-29 11:18 Sherwin_szw 阅读(36) 评论(0) 推荐(0) 编辑
摘要: reboot.sh #!/usr/bin/env bash echo -e "\033[34m wsgi process \033[0m" ps -ef|grep uwsgi_order_trading_platform.ini | grep -v grep sleep 0.5 echo -e '\ 阅读全文
posted @ 2022-09-27 19:10 Sherwin_szw 阅读(127) 评论(0) 推荐(0) 编辑
摘要: nginx.conf内 #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/n 阅读全文
posted @ 2022-09-27 17:00 Sherwin_szw 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 进入虚拟环境 source activate 安装uwsgi pip install uwsgi 命令运行 uwsgi --http :80 --chdir /usr/local/projects/order_trading_platform/ --wsgi-file order_trading_p 阅读全文
posted @ 2022-09-27 14:19 Sherwin_szw 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 安装 $ cd /usr/local/ $ sudo wget http://nginx.org/download/nginx-1.8.0.tar.gz $ sudo tar -zxvf nginx-1.8.0.tar.gz $ cd nginx-1.8.0 $ sudo ./configure - 阅读全文
posted @ 2022-09-27 13:58 Sherwin_szw 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 一键安装 cd /usr/local && yum install -y gcc tcl && wget https://github.com/redis/redis/archive/7.0.4.tar.gz && tar -zxvf /usr/local/7.0.4.tar.gz && cd /u 阅读全文
posted @ 2022-09-27 09:29 Sherwin_szw 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 第一步:下载 wget https://dev.mysql.com/get/mysql80-community-release-el8-3.noarch.rpm 第二步:安装 yum install mysql80-community-release-el8-3.noarch.rpm 命令关闭cen 阅读全文
posted @ 2022-09-27 08:10 Sherwin_szw 阅读(53) 评论(0) 推荐(0) 编辑
摘要: local_settings.py import os from pathlib import Path DEBUG = False ALLOWED_HOSTS = ['*'] BASE_BASE_DIR = Path(__file__).resolve().parent.parent.parent 阅读全文
posted @ 2022-09-25 19:38 Sherwin_szw 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 第一步:安装git客户端,默认安装在/usr/libexec/git-core目录 yum -y install git #查看版本 git --version 第二步:配置git信息 git config --global user.name "username" git config --glo 阅读全文
posted @ 2022-09-25 19:17 Sherwin_szw 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 创建envs目录 mkdir envs 创建虚拟环境 python -m venv django_env 启用虚拟环境 source activate 退出虚拟环境 deactivate 安装包 pip3 install -r requirements.txt 阅读全文
posted @ 2022-09-25 12:38 Sherwin_szw 阅读(25) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页