沒有乐趣,何来开始
2021/09/15 00:14:58
如何查看Linux系统的物理机信息
1.输出CPU个数: cat /proc/cpuinfo |grep 'physical id'|sort -u|wc -l
2.输出核心总数: cat /proc/cpuinfo |grep 'core id'|sort -u|wc -l
3.输出最大线程数: cat /proc/cpuinfo |grep 'processor'|sort -u|wc -l
2021/09/14 19:47:30
Windows 10 TCP/IP Reset: Type netsh winsock reset and press Enter. Type netsh int ip reset and press Enter. Type ipconfig /release and press Enter. Type ipconfig /renew and press Enter. Type ipconfig /flushdns and press Enter.
2021/09/13 19:54:02
查看XenServer版本:cat /etc/redhat-release 查看RedHat版本:cat /proc/version
2021/09/12 16:34:20
iperf测试:开启服务端时,需要放行5001端口(或者在测试过程中关闭防火墙),iperf3是5201
2021/09/06 19:00:59
vi 文本编辑器复制多行:将光标放到要复制的第一行,按2yy即表示复制光标及以下共两行,同理,2dd 即表示删除...
2021/09/02 01:10:12
1.修改前程序:if [ -z $(ps -ef | grep java | grep -v grep) ] 报错信息:too many arguments (虽然对程序运行没有影响) 2.修改后程序:if [ -z "$(ps -ef | grep java | grep -v grep)" ] 多加了个双引号就没有出现了
2021/09/01 22:32:00
Linux命令:\time sleep 1 (证明执行sleep命令不占用系统资源)