1、查看文件夹内文件大小 du -sh *|sort -h 2、删除不用的老旧内核 # 查看现用内核 uname –r # 查看内核文件、头文件 dpkg --get-selections | grep linux # 删除不用内核文件 头文件 sudo apt-get purge 内核文件名 头文 ...
分类:
系统相关 时间:
2020-07-13 21:22:12
阅读次数:
179
#/bin/bash # 设置时区并同步时间 ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime if ! crontab -l |grep ntpdate &>/dev/null ; then (echo "* 1 * * * ntpdat ...
分类:
其他好文 时间:
2020-07-13 15:31:09
阅读次数:
97
系统巡检: Linux CentOS、Ubuntu #查看CPU核数 cat /proc/cpuinfo | grep "cpu cores" | uniq | awk -F ' ' '{print $4}' #查看CPU个数 cat /proc/cpuinfo | grep "physical i ...
分类:
其他好文 时间:
2020-07-13 15:27:15
阅读次数:
82
*** errRun: ['which', 'controller'] /usr/local/bin/controller 0*** errRun: ['grep', '-c', 'processor', '/proc/cpuinfo'] 64 0*** Setting resource limit ...
分类:
其他好文 时间:
2020-07-13 11:28:41
阅读次数:
74
[root@kunpeng82 Ryu-SDN-IP]# zebra -d [root@kunpeng82 Ryu-SDN-IP]# ps -elf | grep zebra 0 S root 1143 50677 0 80 0 - 1729 pipe_w 11:44 pts/22 00:00:00 ...
分类:
其他好文 时间:
2020-07-12 20:22:37
阅读次数:
106
第1章 例:检查文件系统挂载状态 1.1 自动发现文件系统名称脚本 vi Linux_mountfilename_discovery.sh portarray=(`mount |grep "^/" |grep -E "ext3|reiserfs|ext4|xfs" |awk '{print $3}' ...
分类:
其他好文 时间:
2020-07-12 17:16:39
阅读次数:
174
[root@kunpeng82 Ryu-SDN-IP]# ./bin/sdnip-mgr --sdn-ip-cfg-file ./config.json --observe-links sdnip.arp_proxy sdnip.fwd_bgp sdnip.sdn_ip Traceback (mos ...
分类:
其他好文 时间:
2020-07-12 14:36:42
阅读次数:
94
[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