This commit is contained in:
2023-10-23 00:29:29 +08:00
parent 863b34cea3
commit 57e0efbc3e
7 changed files with 98 additions and 88 deletions

15
启动线下服务器 Normal file
View 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