1.服务器型号 [root@guanbin-k8s-master ~]# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product" Manufacturer: VMware, Inc. Product Name: VMw ...
分类:
系统相关 时间:
2020-05-17 23:10:14
阅读次数:
172
本篇主要讲述: 1 目录和文件 2 目录和文件的操作(复制,删除,移动) 3 查看文件内容的命令 4 搜寻命令(which,whereis,locate,find); 5 文件内容的过滤grep; 1、目录和文件 1.1 查看及切换目录 查看当前目录:pwd(print working direct ...
分类:
系统相关 时间:
2020-05-17 13:38:01
阅读次数:
91
查看日志rsyslogd是否启动和自启动 ps aux | grep rsyslogd 查看自启动(CentOS 7使用,CentOS 6可以使用chkconfig命令) systemctl list-unit-files | grep rsyslog 常见日志及其作用 ...
分类:
系统相关 时间:
2020-05-17 13:35:10
阅读次数:
68
linux下使用awk命令按时间段筛选日志 zcat com.log20160529.gz | grep 'dianping_reply'| awk '{split($4,array,"[");if(array[2]>="29/May/2016:00:00:26" && array[2]<="29/ ...
分类:
系统相关 时间:
2020-05-17 10:31:06
阅读次数:
251
bash: service: command not found 解决步骤如下:1、 输入 yum list | grep initscripts 会出现: initscripts.x86_64 2、 上面给出了可安装软件的yum源版本,然后执行 yum install initscripts -y ...
分类:
其他好文 时间:
2020-05-16 19:09:58
阅读次数:
62
1、 secureCRT远程虚拟机,输入 netstat -anp| grep 3306 如上图结果中显示mysql 3306前面的ip不是0.0.0.0 2.修改/etc/mysql/mysql.conf.d/mysqld.cnf 把 bind-address = 127.0.0.1 改为 bin ...
分类:
数据库 时间:
2020-05-16 16:35:13
阅读次数:
68
1.关机重启 2.echo 3.vim 4.拷贝/删除/移动/更换文件名字 5.打包压缩 6.常用查找命令的使用 7.grep命令 8.linux文件权限的描述格式解读linux文件权限的描述格式解读 9.修改文件权限 10.修改文件所有权 11.统计文件或文件夹的大小 ...
分类:
系统相关 时间:
2020-05-16 12:15:59
阅读次数:
73
查看当前系统已经挂载的分区,mount -l mount -l | grep /dev/vda1,查看根分区的挂载 mount -a:依据/etc/fstab的内容,进行自动挂载 挂载命令:mount [-t 文件系统] [-L 卷标名] [-o 特殊选项] 设备文件名 挂载点 ...
分类:
系统相关 时间:
2020-05-16 00:44:41
阅读次数:
70
在 Linux 命令行下进行文本关键字的搜索,大家肯定第一时间会想到 命令。grep 命令确实十分强大,但如果需要用到它更加灵活的功能时,可能命令就会显得十分复杂。 于是,为了简化 grep 的语句并达到同等效果,很多业内高手开发出了很多同样强大的工具,在某些程度上甚至可以替代 grep 。 下面我 ...
分类:
系统相关 时间:
2020-05-15 19:40:42
阅读次数:
81
--> yum search java | grep openjdk --> yum install java-1.8.0-openjdk-headless.x86_64 --> yum install java-1.8.0-openjdk-devel.x86_64 --> update-alter ...
分类:
其他好文 时间:
2020-05-15 15:28:43
阅读次数:
330