1、ntpdate 10.10.72.92 正常情况下: 7 Sep 11:13:39 ntpdate[26775]: adjust time server 10.10.72.92 offset -0.089189 sec 出现in use的情况,说明已经同步,如果想查lsof -i:123 把出现 ...
分类:
其他好文 时间:
2018-09-17 20:37:18
阅读次数:
194
1. linux安装mysql8.0.12,亲测可用。 以下是安装过程中出现的问题: 2. 安装过程中会用到的linux命令 ...
分类:
数据库 时间:
2018-09-12 11:04:25
阅读次数:
321
查看linux下的cpu、内存和硬盘大小: 查看cpu的方法 1、 cat /proc/cpuinfo 或者 更直观的查看cpu的型号命令:dmesg |grep -i xeon 查看内存的方法 2、 cat /proc/meminfo 或者 更直观的查看内存的命令:free -m 查看硬盘大小 3 ...
分类:
系统相关 时间:
2018-09-05 13:52:38
阅读次数:
233
1. Ubuntu 查看磁盘空间大小命令 df -h Df命令是linux系统以磁盘分区为单位查看文件系统,可以加上参数查看磁盘剩余空间信息, 命令格式: df -hl 显示格式为: 文件系统 容量 已用 可用 已用% 挂载点 Filesystem Size Used Avail Use% Moun ...
分类:
系统相关 时间:
2018-09-04 10:35:01
阅读次数:
231
grep 查找 过滤 正则匹配 awk 分析 文本分析工具 sed 编辑 面向字节流的非交互式文本编辑器 ps -ef | grep python 查看进程 ps aux | grep python 查看进程 netstat -tunlp | grep 80 查看占用80端口的程序 lsof -i ...
分类:
系统相关 时间:
2018-09-03 13:42:00
阅读次数:
160
查询你拥有的所有进程: ps x 显示指定用户名(RUID)或用户ID的进程: ps fU apache ps fu 48 显示指定用户名(EUID)或用户ID的进程: ps fu wang ps fu 1000 查看以root用户权限(实际和有效ID)运行的每个进程: ps U root u ro ...
分类:
其他好文 时间:
2018-09-01 20:40:10
阅读次数:
128
pstree、ps、pidof、pgrep、top、htop 一. pstree - display a tree of processes 1 yum install psmisc //软件包包含命令pstree、killall、fuser 二.ps - report a snapshot of ...
分类:
系统相关 时间:
2018-08-31 21:16:22
阅读次数:
242
需要用服务器调试防火墙,没有串口,只能用usb转接口接了串口。简单记录使用minicom连接过程。1.确认驱动dmesg|grepttyUSB0[546072.956140]usb3-14:pl2303converternowattachedtottyUSB0如出现类似信息,则说明驱动已正常2.确认传输速率[root@101~]#stty-a-F/dev/ttyUSB0speed9600baud;
分类:
其他好文 时间:
2018-08-30 19:52:56
阅读次数:
1676
统计内存最高的进程: ps aux | grep -v PID | sort -rn -k 4 | head 统计CPU使用率最高的进程: ps aux | grep -v PID | sort -rn -k 3 | head 僵尸进程: ps aux | grep defunct | grep - ...
分类:
系统相关 时间:
2018-08-30 00:12:42
阅读次数:
344
若不知道具体目录,可以根据端口查找,查看端口22000的信息: sudo lsof -i:22000 RelaySvr 4322 root 13u IPv4 75680495 0t0 TCP *:snapenetio (LISTEN) 查看进程4322具体信息: cd /proc/4322 sudo ...
分类:
系统相关 时间:
2018-08-29 14:12:03
阅读次数:
259