运行命令:
streamlit hello
系统默认使用8501端口启动服务:
如果想通过子目录访问服务,可以这么启动服务
streamlit hello --server.baseUrlPath "app"
也可以通过以下命令换端口
streamlit hello --server.port 9999
参考:
Having issues serving containerised app from a subdirectory using nginx - 🚀 Deployment - Streamlit
Streamlit Reverse Proxy Problem (Caddy Webserver) - 🎈 Using Streamlit - Streamlit