[root@kunpeng82 mininet]# ls /lib/systemd/system/zebra.service /lib/systemd/system/zebra.service [root@kunpeng82 mininet]# vi /lib/systemd/system/zebr ...
分类:
其他好文 时间:
2020-07-12 14:15:10
阅读次数:
68
环境:oracle12c 1、链接rman RMAN RMAN> connect target / 使用sys用户连接 connected to target database: ORCL (DBID=1567775293) RMAN> connect target "sys/oracle@orcl ...
分类:
其他好文 时间:
2020-07-12 12:26:18
阅读次数:
65
1、使用netstat和awk统计服务器出现tcp网络状态并按数量排序?netstat -tua|awk '/^tcp/{state[$NF]++}END{for(i in state){print state[i],i}}'|sort -nr2、ll | awk '{print $3, "owns ...
分类:
其他好文 时间:
2020-07-12 12:17:46
阅读次数:
77
systemctl命令: 1、启动防火墙 systemctl start firewalld.service 或 systemctl start firewalld 2、关闭防火墙 systemctl stop firewalld.service 或 systemctl stop firewalld ...
分类:
系统相关 时间:
2020-07-12 10:40:13
阅读次数:
90
先要对宿主机增大cpu数量 加到4处理器、2内核、8线程 查看 CPU 物理个数 grep 'physical id' /proc/cpuinfo | sort -u | wc -l 查看 CPU 核心数量 grep 'core id' /proc/cpuinfo | sort -u | wc -l ...
分类:
其他好文 时间:
2020-07-12 10:36:41
阅读次数:
75
系统信息 arch 显示机器的处理器架构uname -m 显示机器的处理器架构uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI) hdparm -i /dev/hda 罗列一个磁盘的架构特性 hdparm -tT /dev/sda ...
分类:
系统相关 时间:
2020-07-12 01:01:59
阅读次数:
274
查看nginx是否安装 linux中查看nginx的安装位置 在命令行输入ps -ef | grep nginx root 973 1 0 19:14 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf ...
分类:
其他好文 时间:
2020-07-12 00:29:22
阅读次数:
191
什么是正则表达式 我们希望只提取出关注的数据,此时可以通过一些表达式进行提取,正则表达式就是其中一种进行数据筛选的表达式。 原子 原子是正则表达式中最基本的组成单位,每个正则表达式中至少包含一个原子 常见的原子类型有: 1、 普通字符作为原子 2、 非打印字符作为原子 3、 通用字符作为原子 4、 ...
分类:
编程语言 时间:
2020-07-11 19:30:24
阅读次数:
49
原文出处:http://www.51testing.com/?uid-225738-action-viewspace-itemid-210333测试机器的硬件信息:查看CPU信息(型号)# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 8 ...
分类:
系统相关 时间:
2020-07-11 19:06:43
阅读次数:
77
systemctl list-unit-files会列出开启的和未开启的:使用grep过滤一下开启的grep enabledgrep enabled然后使用systemctl status openresty.service1查看这个.service文件的路径,及内容。禁用开机启动:sudo sys... ...
分类:
系统相关 时间:
2020-07-11 17:38:57
阅读次数:
223