django在生产环境关闭日志的方法

在uwsgi.xml加入下面一项 <disable-logging>true</disable-logging>
Python | 2021-10-18 21:44 | 阅读 1113 次 | 评论 0 条

rails在生产环境关闭日志的方法

打开 config/environments/production.rb ,在靠后的位置加上 config.logger = Logger.new('/dev/null') # 关闭日志 关闭日之后速度快很多,看来写日志这个io操作很耗时间
默认分类 | 2021-10-18 21:41 | 阅读 805 次 | 评论 0 条

ubuntu设置vsftp自动启动和禁止自动启动

设置自动启动 systemctl enable vsftpd.service 禁止自动启动 systemctl disable vsftpd.service
Linux | 2021-10-15 00:17 | 阅读 1315 次 | 评论 0 条
浏览2800815次
文章归档