![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux日常操作管理
charliye
这个作者很懒,什么都没留下…
展开
-
buffer cache和 cache memory
buffer cache -- Stores the most-recently accessed blocks on block devices. This avoids having to re-read the blocks from the physical device.buffer flushing daemon -- Writes the contents of delayed-原创 2016-03-01 11:23:55 · 551 阅读 · 0 评论 -
CentOS7中如何让Linux在启动时就将CPU分离并将hugepage设置为初始1GB
1. 修改grubCentOS7中grub存放位置在:/etc/default/grub初始内容如下:GRUB_TIMEOUT=5GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"GRUB_DEFAULT=savedGRUB_DISABLE_SUBMENU=trueGRUB_TERMINAL原创 2017-09-12 11:20:09 · 6281 阅读 · 1 评论 -
【VNC】Linux环境VNC服务安装、配置与使用
前言:作为一名DBA,在创建Oracle数据库的过程中一般要使用dbca和netca图像化进行建库和创建监听(如果使用脚本建库另说),如果您身体好估计可以在瑟瑟发抖的机房中完成数据库的创建过程,由于本人对寒冷比较敏感,又不想通过这样的方式锻炼身体,所以更愿意在舒适的房间内一边品味着咖啡的浓香,顺便度过相对枯燥的数据库安装和配置的过程,So,图形化操作工具是必不可少的,在Linux操作系统最流行的图转载 2016-05-25 09:35:46 · 859 阅读 · 0 评论 -
linux下hosts文件和alias
由于日常工作需要经常登录不同的server,整天记IP地址太麻烦,所以修改了一下hosts文件,将常用的IP地址设置成通俗易懂的别名方便登录和管理。hosts文件位置:/etc/hostshosts文件内容:127.0.0.1 localhost.localdomain localhost172.18.3.9 shm1172.24.179.66 router1172.原创 2016-03-22 11:18:08 · 2542 阅读 · 0 评论 -
Linux下实现ssh的自动登录
当我们需要ssh到某个特定的额server的时候,每次都要输入IP,密码等信息,非常的不方便。为了实现简单的登录,特地学习了相关资料,我们可以通过shell脚本来实现这个需求。代码示例:#!/usr/bin/expectspawn ssh root@172.17.3.110expect "*password:"send "alcatel\r"expect "*#"interact原创 2016-03-22 10:10:11 · 643 阅读 · 0 评论 -
Logsurfer--Linux系统日志的管理利器
1.简介Logsurfer是一个实时监控系统log的进程,并且会在发生事件的时候按照配置文件中的相关配置上报消息或者执行操作。它跟我们熟知的Swatch相似,并且是基于Swatch的,但是它也提供了一系列swatch不支持的更高级的功能。Logsurfer能够将相关的log分类管理--比如当一个系统自启动的时候会创建很多的log messages。在这种情况下,logsurfer可以将这些翻译 2016-02-22 11:38:49 · 1580 阅读 · 0 评论 -
Linux之awk
awk是一个非常棒的数字处理工具。相比于sed常常作用于一整行的处理,awk则比较倾向于将一行分为数个“字段”来处理。运行效率高,而且代码简单,对格式化的文本处理能力超强。先来一个例子: 文件a,统计文件a的第一列中是浮点数的行的浮点数的平均值。用awk来实现只需要一句话就可以搞定$cat a1.021 331#.ll 442.53 6ss 7awk '转载 2016-03-02 16:48:02 · 323 阅读 · 0 评论 -
How the buffer cache works
On a typical system approximately 85% of disk I/O can be avoided by using the buffer cache, though this depends on the mix of jobs running. The buffer cache is created in an area of kernel memory an翻译 2016-03-01 11:38:26 · 592 阅读 · 0 评论 -
How to use logrotate to manage log files in linux(如何在Linux中使用logrotate去管理日志文件)
Log files contain useful information about what is going on within the system. They are often inspected during troubleshooting processes or as part of server performance analysis. For a busy server, l翻译 2016-02-29 16:28:34 · 619 阅读 · 0 评论 -
Linux下用户和密码相关
Linux下新建用户:useradd username 【回车】passwd userpassword【回车】新建成功Linux下新建用户:userdel username【回车】Linux下修改密码:修改root用户密码:passwd root【回车】输入新密码:xxx【回车】再输入一遍:xxx【回车】成功修改普通用户密码:r原创 2016-03-03 11:46:07 · 383 阅读 · 0 评论