awesome_app部署:
www-21-05-18_12.19.42/
update mysql.user set authentication_string=PASSWORD(‘111111‘), plugin=‘mysql_native_password‘ where user=‘root‘;
supervisor目录
/etc/supervisor/conf.d/
nginx配置
/etc/nginx/sites-available/
项目目录
/srv/awesome
#app.py代码改
site = web.TCPSite(runner, ‘0.0.0.0‘, 9000)
await site.start()
- base64
- pickle 转化为特定的二进制
- form表单发送请求
<form action="${pageContext.request.contextPath }/UserServlet?id=123" method="get">
userame:<input type="text" name="username">
<input type="submit" value="登录"><br>
</form>
<form action="${pageContext.request.contextPath }/UserServlet?id=123" method="post">
userame:<input type="text" name="username">
<input type="submit" value="登录"><br>
</form>
- 用form表单发送get请求可更改urk中的id参数的值,必须要用type=‘hidden‘,即
如果非要通过GET方式传递这个id值并在后台获取,可以在表单里添加隐藏域hidden,
<input type="hidden" name="id" value=123>
部署awesome_python3_webapp