摘要: 1.centos 安装python环境及服务postgresql11 2.Centos安装Redis 3.安装nginx 4.ubuntu18.04(centos)安装多版本python及管理 5.Linux 安装 uwsgi 6.python安装虚拟环境virtualenv 7.python程序环 阅读全文
posted @ 2022-11-28 15:08 左闯 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1.程序包括一个虚拟环境目录 venvs 里面是对应程序对应的环境目录 例如 :env_center是对应程序的虚拟环境 还应包含程序目录和配置目录 例如:unidairy-center 为程序目录 unidairy_center_conf为配置目录 2.配置目录 包含三个部分 a.nginx配置 阅读全文
posted @ 2022-11-28 14:50 左闯 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1.pip install virtualenv 如果运行出现python pip 报错WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with th 阅读全文
posted @ 2022-11-28 11:36 左闯 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 一.源码安装 1.选择版本下载:https://uwsgi-docs.readthedocs.io/en/latest/Download.html 2.解压和安装 cd /usr/local tar zxvf uwsgi-2.0.20.tar.gz cd uwsgi-2.0.20python set 阅读全文
posted @ 2022-11-28 10:38 左闯 阅读(766) 评论(0) 推荐(0) 编辑
摘要: 在centos下载列表选择对于版本 http://nginx.org/packages/centos i.rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.r 阅读全文
posted @ 2022-11-28 10:22 左闯 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 1.yum安装 yum install redis 安装 systemctl enable redis 设置自启动 vim /etc/redis.conf 进入配置文件,允许远程访问,修改密码 取消注释修改以下内容#bind 127.0.0.1 preotected-mode no daemoniz 阅读全文
posted @ 2022-11-28 10:06 左闯 阅读(91) 评论(0) 推荐(0) 编辑