Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
完善未安装virtualenv的描述
  • Loading branch information
gtouchgogo authored Mar 21, 2019
1 parent d1ce1e8 commit 6188c8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ $ sudo yum install https://centos7.iuscommunity.org/ius-release.rpm
$ sudo yum install python36u
安装pip3
$ sudo yum -y install python-pip
所需模块见/startalk/download/qtalk_search/requirements.txt, 建议使用virtualenv部署模块所需环境:
所需模块见/startalk/download/qtalk_search/requirements.txt, 建议使用virtualenv部署模块所需环境 (如不使用将系统级安装python3.6, 容易引起和大多数centos自带python2.7的冲突, 同时也需要自行安装python3的pip, 并指定pip3安装所需模块):
$ sudo pip install -U virtualenv (安装virtualenv)
$ sudo pip install --upgrade pip
$ virtualenv --system-site-packages -p python3.6 ./venv (在当前目录下创建venv环境)
Expand All @@ -416,12 +416,12 @@ $ sudo yum -y install python-pip
配置conf/configure.ini, 具体参数详见文件内注释, 如无特殊需求可不修改
$ sudo vim ./conf/configure.ini
安装项目所需模块
安装项目所需模块(如未安装virtualenv, 需sudo yum install python36u-pip, 并使用sudo pip3.6代替命令中默认的pip)
$ pip install -r requirements.txt
设置PYTHONPATH
$ export PYTHONPATH=path/to/project/qtalk_search:$PYTHONPATH
后台启动 (后续将改为gunicorn部署)
$ nohup python3.6 search.py 1>/dev/null 2>/dev/null &
$ sudo nohup python3.6 search.py 1>/dev/null 2>/dev/null &
```

到此,服务端已经安装完成。
Expand Down

0 comments on commit 6188c8a

Please sign in to comment.