在centos中安装Google浏览器时 执行[root@server1 opt]# rpm ivh install google-chrome-stable_current_x86_64.rpm 爆出提示:This program may be freely redistributed under the terms of the GNU GPL 解决方法: 将执行语句改为 [root@server1 opt]# rpm -ivh google-chrome-stable_current_x8…
系统使用时间长后会产生临时文件(/tmp下),需要清理.但清理的时候不推荐使用rm -rf.这样有时会引起程序的僵死. tmpwatch的说明: [root@AY121231034820cd91077 ~]# tmpwatch tmpwatch - (C) - Red Hat, Inc. All rights reserved. This program may be freely redistributed under the terms of the GNU General Public L…
一.Linux网络配置文件 1.  /etc/sysconfig/network-scripts/ifcfg-eth0 文件 在Red Hat系统中,系统网络设备的配置文件保存在/etc/sysconfig/network-scripts目录下,其中文件ifcfg-eth0包含第一块网卡的配置信息,文件ifcfg-eth1包含第二块网卡的配置信息,文件ifcfg-lo包含回路IP地址信息. [root@redhat2 ~]# ls /etc/sysconfig/network-scripts i…
一.Linux网络配置文件 1.  /etc/sysconfig/network-scripts/ifcfg-eth0 文件 在Red Hat系统中,系统网络设备的配置文件保存在/etc/sysconfig/network-scripts目录下,其中文件ifcfg-eth0包含第一块网卡的配置信息,文件ifcfg-eth1包含第二块网卡的配置信息,文件ifcfg-lo包含回路IP地址信息. [root@redhat2 ~]# ls /etc/sysconfig/network-scripts i…
简介 Func自带的模块已经非常丰富,但在日常系统运维当中,尤其是面对大规模的服务器集群.不同类别的业务平台,次是Func自带的模块或许已经不能满足我们的需求,所以有必要通过自定义模块来填补这块的不足. 自定义模块的步骤 生成模块----->编写逻辑----->分发模块----->执行模块 生成模块:通过fun-create-module命令创建模块初始模板 编写逻辑:即填充我们的业务功能逻辑 分发模块:将编写完成的模块分发到所有被控主机 执行模块:执行已分发完成的模块,调用方法与Fun…
参考: http://lionbule.iteye.com/blog/717722 http://manpages.ubuntu.com/manpages/oneiric/man8/update-alternatives.8.html http://blog.chinaunix.net/uid-9185047-id-445077.html http://blog.csdn.net/heyutao007/article/details/5441482 =======================…
自定义Func模块 (1)自定义模块步骤 (2)生成模块 [root@controller modules]# cd /usr/lib/python2.7/site-packages/func/minion/modules 执行: [root@controller modules]# func-create-module Module Name: mymodule Description: tesy Author: a Email: a@qq.com Leave blank to finish.…
Linux中也有类似于Window中的开机自启动服务,主要是通过chkconfig命令来设置.它主要用来更新(启动或停止)和查询系统服务的运行级信息.谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接. 参数说明: [root@DB-Server rc2.d]# chkconfig --help chkconfig version 1.3.30.2 - Copyright (C) 1997-2000 Red Hat, Inc. This may be freely…
alternatives命令使用方法 alternatives是Linux下的一个功能强大的命令.仅仅能在root权限下运行.如系统中有几个命令功能十分相似,却又不能任意删除,那么能够用 alternatives 来指定一个全局的设置. alternatives经常使用于同一个系统中安装同一软件的多个版本号.比方为了开发须要,我须要安装JDK1.4.2,同一时候还须要JDK1.6.10,我怎么样才干忽略安装路径,依照我自己的意思,使用我想要的java版本号呢? 以下为您一一道来. alterna…
在服务器上运行 crontab -e编辑定时任务 结果提示 command not found命令找不到,这就说明没安装crontab 由于 完整操作如下: [root@iZ11pvsxisqZ /]# yum install vixie-cron crontabs Loaded plugins: security Setting up Install Process Package cronie--.el6_7..x86_64 already installed and latest vers…