SSss
This commit is contained in:
15
启动线下服务器
Normal file
15
启动线下服务器
Normal file
@@ -0,0 +1,15 @@
|
||||
进入目录 cd imooc_env/
|
||||
开启虚拟环境 source bin/activate
|
||||
source imooc_env/bin/activate
|
||||
开启共享目录: mount -t vboxsf mooc /home/www
|
||||
cd /home/www
|
||||
ls
|
||||
运行helloword
|
||||
如果在虚拟环境中打开浏览器不让访问,则需要关闭防火墙
|
||||
service firewalld stop
|
||||
python hello.py
|
||||
192.168.31.107:5000
|
||||
192.168.31.107:5000/imooc/hello
|
||||
可以看到页面有内容输出
|
||||
//使用本地测试环境
|
||||
export ops_config=local&&python manager.py runserver
|
||||
Reference in New Issue
Block a user