
Linux
泪光雨99
这个作者很懒,什么都没留下…
展开
-
vim 快捷键
命令模式:dd删除一行d10d删除10行u撤销修改A跳到行尾,并进入插入模式¥跳到行尾,不进入插入模式0(零)返回行首12G进入12行/tee 搜索tee,n下一个,N上一个:%s/tee/tree用tree提到tee原创 2022-05-18 21:34:21 · 216 阅读 · 0 评论 -
Linux系统监测python程序挂掉并重启
1、shell脚本,fi后输入Enter键,不然会出错误,若在windows下编写shell脚本,上传到Linux后,vi 文件名,输入 :set ff?, 若为dos,则需要修改为Linux格式,:set ff=unix 然后输入:wq!保存退出。#!/bin/shcount=`ps -ef |grep /usr/local/jobmail/Study/TomasSendNew2.py |原创 2017-12-22 14:39:26 · 5793 阅读 · 0 评论 -
Linux常用操作
系统重启前端程序(!!!!!!): 关闭防火墙:systemctl stop firewalld.service 开nginx:/usr/local/nginx/sbin/nginx 就可以了 开php:/etc/init.d/php-fpm start 或/usr/local/php/sbin/php-fpm centos系统自带的防火墙。查看已经开放的端口: firewall-c原创 2017-12-07 15:55:08 · 239 阅读 · 0 评论 -
linux firewall 端口转发
1、firewall-cmd –permanent –add-masquerade 允许IP伪装,–permanent是断电后重启仍生效。 2、firewall-cmd –permanent –zone=public –add-forward-port=port=8087:proto=tcp:toaddr=10.60.73.146:toport=7025 添加端口转发 3、firewall...原创 2018-08-27 19:41:37 · 2807 阅读 · 0 评论