Files
order/启动线下服务器
2023-10-23 00:29:29 +08:00

15 lines
468 B
Plaintext

进入目录 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