随笔分类 -  linux

摘要:sed sed [ nefri] ‘command’ 输入文本 常用选项: n 只有经过sed处理的那一行(或者动作)才会被打印出来。 e 直接在指令列模式上进行 sed 的动作编辑; f 直接将 sed 的动作写在一个档案内, f filename 则可以执行 filename 内的sed 动作; 阅读全文
posted @ 2018-04-11 13:09 Focusing 阅读(149) 评论(0) 推荐(0)
摘要:什么是集群 一种计算机系统,通过一组松散集成的计算机软件或硬件连接起来高度紧密地协作完成计算工作。 可被看作是一台计算机。 集群系统中的单个计算机通常称为节点,通常通过局域网连接,但也有其它的可能连接方式。 集群计算机通常用来改进单个计算机的计算速度和可靠性。 LVS在企业架构中的位置: 以上的架构 阅读全文
posted @ 2018-04-11 13:08 Focusing 阅读(286) 评论(0) 推荐(0)
摘要:一 linux服务器性能查看 1.1 cpu性能查看 1、查看物理cpu个数: cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc l 2、查看每个物理cpu中的core个数: cat /proc/cpuinfo |grep "cpu cores"| 阅读全文
posted @ 2018-04-11 13:07 Focusing 阅读(293) 评论(0) 推荐(0)
摘要:完成基础知识后,多搜索网络综合文档,整理为我所用 /sed /模式空间 /awk seq split Network iptables selinux watch crontab eval expr FTP SSH /LVM /Heartbeat /Keepalived /linux服务器优化 /负 阅读全文
posted @ 2018-04-11 13:06 Focusing 阅读(244) 评论(0) 推荐(0)
摘要:一、文件 touch file 创建空白文件 rm rf 目录名 不提示删除非空目录( r:递归删除 f强制) dos2unix windows文本转linux文本 unix2dos linux文本转windows文本 enca filename 查看编码 安装 yum install y enca 阅读全文
posted @ 2018-04-11 13:03 Focusing 阅读(141) 评论(0) 推荐(0)
摘要:文件命令 cd 切换为之前目录 wc l w file cmd help apropos keyword apropos cpu type foo 检查命令类型,是否已被占用 alias foo='cd;ll;cd ' foo ll /etc/passwd pw.txt (输出重定向时, 自动创建不 阅读全文
posted @ 2018-04-11 13:02 Focusing 阅读(181) 评论(0) 推荐(0)
摘要:ubuntu下自己制作程序图标,并添加到左侧启动栏和dash 阅读全文
posted @ 2017-10-08 17:02 Focusing 阅读(2280) 评论(0) 推荐(0)