摘要: 一、安装uwsgi 二、编写uwsgi.ini 三、启动uwsgi 四、nginx配置文件 阅读全文
posted @ 2019-06-18 18:54 我在地球凑人数的日子 阅读(754) 评论(0) 推荐(0) 编辑
摘要: apache httpd 启动 systemctl start httpd 停止 systemctl stop httpd 重启 systemctl restart httpd mysql 启动 systemctl start mysqld 停止 systemctl stop mysqld 重启 systemctl restart mysqld php-fpm 启动 systemctl ... 阅读全文
posted @ 2019-06-18 18:51 我在地球凑人数的日子 阅读(89) 评论(0) 推荐(0) 编辑
摘要: from flask import Flask, views, url_for from werkzeug.routing import BaseConverter app = Flask(import_name=__name__) class RegexConverter(BaseConverter): """ 自定义URL匹配正则表达式 """ def __init__(self, m... 阅读全文
posted @ 2019-06-18 18:49 我在地球凑人数的日子 阅读(195) 评论(0) 推荐(0) 编辑
摘要: def auth(func): def inner(*args, **kwargs): print('before') result = func(*args, **kwargs) print('after') return result return inner @app.route('/index.html',... 阅读全文
posted @ 2019-06-18 18:48 我在地球凑人数的日子 阅读(82) 评论(0) 推荐(0) 编辑
摘要: flask中的配置文件是一个flask.config.Config对象(继承字典),默认配置为: { 'DEBUG': get_debug_flag(default=False), 是否开启Debug模式 'TESTING': Fals... 阅读全文
posted @ 2019-06-18 18:47 我在地球凑人数的日子 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 一、安装python3可能使用的依赖 [root@instance-xu9puhyr ~]# yum -y install gcc [root@instance-xu9puhyr ~]# yum -y groupinstall 'Development Tools' [root@instance-x 阅读全文
posted @ 2019-06-18 18:45 我在地球凑人数的日子 阅读(458) 评论(0) 推荐(0) 编辑