基本的设置命令:setup(由setuptool包提供) /etc/yum/yum.conf /etc/yum/repos.d/ /etc/yum/pluginconf.d/ /var/cache/yum/ CentOS的yum文件: /etc/yum.conf /etc/yum.repos.d/ /etc/yum/pluginconf.d/ /var/cache/yum/ 系统服务设置:chkconfig 添加启动项:chkconfig sshd on 删除启动项:chkconfig sshd off 设置时区: Command-not-foundUbuntu下用惯了command-not-found,执行一个没有安装的命令会告诉你安装哪个包可以提供该命令。在AWS EC2(基于Centos 5)上也有类似的功能,包名叫PackageKit-command-not-found。不过在Console下根本不起作用。重新安装该包,虽然显示安装成功,但还会显示Unable to connect to dbus。 因为该包依赖dbus,要开了桌面才可以用的,所以是比较废柴的。相比之下,Debian/Ubuntu下的command-not-found依赖非常简单,在没有开启桌面的情况下也能用。 默认网关系统为CentOS 6.2。在静态IP,多个网卡的情况下,在/etc/sysconfig/networking-scripts/ifcfg-eth1里面用GATEWAY指定默认网关无效,路由里面没有默认路由。在/etc/sysconfig/network里面制定也竟然无效,最后是在/etc/sysconfig/network里面用GATWAYDEV=eth1来制定,service restart network后就有了默认路由。http://www.cyberciti.biz/faq/howto-rhel-fedora-linux-setup-default-gateway/ |
Linux >