SetArt

导航

2018年3月6日 #

Flask-Flask script

摘要: Flask Script扩展提供向Flask插入外部脚本的功能,包括运行一个开发用的服务器,一个定制的Python shell,设置数据库的脚本,cronjobs,及其他运行在web应用之外的命令行任务;使得脚本和系统分开; Flask Script和Flask本身的工作方式类似,只需定义和添加从命 阅读全文

posted @ 2018-03-06 21:28 RangoL 阅读(100) 评论(0) 推荐(0) 编辑

2018年3月3日 #

Linux下防火墙和端口操作

摘要: 目标:centos7 打开端口80 计划: chkconfig --list 查看所有当前运行的服务,针对SysV服务,不包括systemd服务 systemctl list-unit-files systemd服务查看 systemd 替代 SysV 成为init首个启动管理程序 防火墙关闭命令: 阅读全文

posted @ 2018-03-03 19:06 RangoL 阅读(114) 评论(0) 推荐(0) 编辑

Linux下关机与重启

摘要: reboot 正常重启 shutdown 安全关机 一般使用shutdown -h now halt = shutdown -h 阅读全文

posted @ 2018-03-03 18:12 RangoL 阅读(104) 评论(0) 推荐(0) 编辑

Linux下精准踢掉登录用户-pkill命令

摘要: pkill -kill -t 用户的TTY pkill -9 用户的TTY 阅读全文

posted @ 2018-03-03 11:39 RangoL 阅读(261) 评论(0) 推荐(0) 编辑