Centos7 显示指定名称的进程,杀死指定名称的所有进程

2021-05-25 16:51:15 显示名称为rsync.sh的进程
ps -aux | grep rsync.sh


杀死名称为rsync.sh的所有进程
ps -ef | grep rsync.sh | grep -v grep | awk '{print $2}' | xargs kill -9

通过inotifywait和rsync实时同步文件夹数据

2021-05-18 13:52:28 #!/bin/sh
srcdir=/syncdir/
dstdir=s230
dstip='172.2.1.230'
dstuser='root'


while true; do
inotifywait -rq -e modify,create,move,delete,attrib

Centos中vi命令在Insert模式下面按esc无法退出问题的解决

2021-05-16 12:15:16 偶尔会出现Centos中vi命令在Insert模式下面按esc无法退出,按什么键都是直接输入,此时可以尝试按Ctrl+c就ok了

服务器通过跳板机上网ccproxy

2021-05-15 11:02:22 服务器本身不能上网,跳板机可以上网,跳板机通过ssh连接服务器

在跳板机上面安装ccproxy,开通http、https代理

打开Xshell设置代理隧道,这里面最重要的一点就是类型(方向)一定要

Centos7通过Frp转发内网服务器端口

2021-05-14 14:42:20 frp下载Github地址:https://github.com/fatedier/frp/releases

windows下载frp_0.36.2_windows_amd64
centos下载frp_0.36.2_linux_amd64


客户端配置:
[common]
server_a

钉钉微应用通过钉钉接口API获取用户信息

2021-05-10 20:01:36 近期有个需求,需要把H5网页嵌入钉钉桌面,然后通过接口获取钉钉用户的用户信息实现统一认证 应用开发流程注册企业: 进入OA管理后台,通过一系列流程,完成企业注册。创建微应用:

鼠标移到图片上面,图片出现放大效果

2021-05-07 12:30:35 html:
<div class="syjjtp"><img src="./tsny_tzjs/tsny_tzjj/202104/W020210507437107182000.png"></div>

css:
.syjjtp a img{
display: block;
margin: 0 auto;

Tampermonkey脚本编写

2021-05-04 10:55:26 // ==UserScript==
// @name XXX网
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author

帝国cms相关

2021-05-02 11:11:51 1、搜索模板高亮

e\search\result\index.php

101行:
while($r=$empire->fetch($sql))
{
//替换列表变量
$repvar=ReplaceListVars($no,$listvar,$subnews,$subtitl

TRS置标语言

2021-04-30 11:57:02 1、获取单个栏目的栏目名称:
<TRS_Channel ID=&#39;channelid:177556&#39; field=&#39;chnldesc&#39; autolink="false" />

2、获取栏目下面记录信息:
<TRS_Document Field="
< 6 7 8 9 10 11 12 13 14 >