linux 使用trap命令进行调试 Shell脚本在搪行时,会产生三个所谓的伪信号。三种伪信号如下:信号名称 产生条件EXIT 从函数中退出,或者整个脚本执行完毕ERR 当一条命令返回非零状态码,即命令执行不成功DEBUG 脚本中的每一条命令执行之前 vi trapdebug.sh #!/bin/ ...
分类:
系统相关 时间:
2021-04-14 12:02:07
阅读次数:
0
vi proc1.sh #!/bin/bash #此脚本期望的参数个数argno=1 if [ $# -ne $argno ]then echo "Usage: 'basename $0' PID-number" >&2fi if [ ! -f "/proc/$1" ]then echo "Proc ...
分类:
系统相关 时间:
2021-04-14 11:51:22
阅读次数:
0
监控linux主机的相关性能 cpu 内存 网络 磁盘 带宽 IO采用插件node_export 部署node_exporter插件[root@node1 ~]# mkdir /opt/monitor/[root@node1 ~]# tar -xf node_exporter-0.17.0.linu ...
分类:
系统相关 时间:
2021-04-13 12:02:02
阅读次数:
0
1、netstat命令 netstat命令可显示当前服务器上所有端口及进程服务,与grep结合可查看某个具体端口及服务情况。 参数: -t : 指明显示TCP端口 -u : 指明显示UDP端口 -l : 仅显示监听套接字(所谓套接字就是使应用程序能够读写与收发通讯协议(protocol)与资料的程序 ...
分类:
Web程序 时间:
2021-04-13 11:50:53
阅读次数:
0
Forum Rules Registration to this forum is free! We do insist that you abide by the rules and policies detailed below. If you agree to the terms, pleas ...
分类:
其他好文 时间:
2021-04-12 12:05:47
阅读次数:
0
cp命令 语法:cp [选项] 源文件 目标文件 选项: -a:相当于 -d、-p、-r 选项的集合,这几个选项我们一一介绍; -d:如果源文件为软链接(对硬链接无效),则复制出的目标文件也为软链接; -i:询问,如果目标文件已经存在,则会询问是否覆盖; -l:把目标文件建立为源文件的硬链接文件,而 ...
分类:
系统相关 时间:
2021-04-12 11:53:12
阅读次数:
0
最近在读Modern Complier Implementatnion in C. 做到语法分析(syntax analysis)时,发现不知道如何写注释的正则表达式: 以下的正则表达式: "/*"[.|\n]"*/" 会根据最长匹配原则,将两行注释间的代码当作注释: /*comments*/ va ...
分类:
其他好文 时间:
2021-04-10 12:54:54
阅读次数:
0
1.由于centOS7.7中默认安装了MariaDB,需要先进行卸载 rpm -qa | grep -i mariadb rpm -e --nodeps mariadb-libs-5.5.64-1.el7.x86_64 2.下载MySQL仓库并安装 wget https://repo.mysql.c ...
分类:
数据库 时间:
2021-04-09 13:05:48
阅读次数:
0
ubutnu 20.04 Pycham突然卡住的问题解决办法 找到sogou输入法进程 ps -ef | grep sogou bob 1682 899 0 4月07 ? 00:01:05 /opt/sogoupinyin/files/bin/sogoupinyinService-watchdog ...
分类:
其他好文 时间:
2021-04-09 13:05:36
阅读次数:
0
[root@localhost ~]# uuidgen ens33223bdb47-2fed-4773-b984-5f5733e619042.UUID号写入网络配置文件ifcfg-ens33NAME=ens33DEVICE=ens33ONBOOT=yesUUID=223bdb47-2fed-4773 ...
分类:
系统相关 时间:
2021-04-08 14:02:02
阅读次数:
0