<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_AnyKoro_分类_Centos</title><id>http://feed.cnblogs.com/blog/u/53802/category/312692/rss</id><updated>2012-05-27T23:40:11Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/category/312692.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/53802/category/312692/rss"/><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/10/28/2228172.html</id><title type="text">CentOS的IP配置专题</title><summary type="text">【修改IP地址】1、使用Setup命令使用setup命令进入图形界面，根据提示进入Network Configuration，Edit Device，根据提示进行ip设置2、直接编辑文件进行修改#vi/etc/sysconfig/network-scripts/ifcfg-eth0此处的ifcfg-eth0为对应的网卡配置文件文件中的配置项：DEVICE=eth0#描述网卡对应的设备别名，例如ifcfg-eth0的文件中它为eth0 BOOTPROTO=static#设置网卡获得ip地址的方式，可能的选项为static，dhcp或bootp，分别对应静态指定的ip地址，通过dhcp协议获得的i</summary><published>2011-10-28T13:56:00Z</published><updated>2011-10-28T13:56:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/28/2228172.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/28/2228172.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/10/28/2227241.html</id><title type="text">centos 双网卡双IP设置</title><summary type="text">系统环境：CentOS Linux网络环境： 两个IP地址，192.168.0.10和10.10.30.2，掩码是255.255.255.0，这两个子网的网关地址分别是192.168.0.1和10.10.30.1。1. 为网卡eth0配置ip地址192.168.0.10，为网卡eth1配置ip地址为10.10.30.2配置文件为：/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-eth12. 配置默认网关为任意一个。这个默认网关，决定了系统主动去使用网络时，使用的接口。配置文件：/etc/</summary><published>2011-10-28T01:00:00Z</published><updated>2011-10-28T01:00:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/28/2227241.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/28/2227241.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/10/10/2205257.html</id><title type="text">Linux中最需要知道的基础知识（不断更新中）</title><summary type="text">1、硬盘硬件结构硬盘是由一片一片的盘片组成，每个盘片有两面，每面都有磁头。扇区：盘片上扇形的区域，每个扇区都有特点的字节数。磁道：一个盘片上一个同心圆为一个磁道。柱面：各盘片同一磁道组成的面为柱面。2、linux中对设备的理解在linux中将所有的设备都映射成了文件，并存放在/dev/目录下，每个设备对会对应其中的一个文件，注意是文件不是目录。3、linux和windows的分区差别，及命名方式linux：hd（IDE硬盘），sd（SCSI硬盘）硬盘插槽：a,b分区（（这个个windows是一致的最多四个））主分区、扩展分区等：1-4逻辑分区：5-更大eg：hda1(第一块IDE硬盘的第一分区</summary><published>2011-10-10T03:52:00Z</published><updated>2011-10-10T03:52:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/10/2205257.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/10/10/2205257.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2121065.html</id><title type="text">CentOS中安装SNMP，以使用监控宝</title><summary type="text">切换到系统管理员帐户安装snmp确认snmp代理已安装rpm -q net-snmp 如果未安装，安装snmpyum install net-snmp设置开机自动运行snmp/sbin/chkconfig snmpd on查找代码：#sec.name source community将com2sec notConfigUser default public此句注释掉。# vi /etc/snmp/snmpd.conf然后添加一个只读帐号，如下：rouser jiankongbao auth创建监控宝账户#mkdir /var/net-snmp#vi /var/net-snmp/snmpd.co</summary><published>2011-07-29T07:15:00Z</published><updated>2011-07-29T07:15:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2121065.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2121065.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2120844.html</id><title type="text">Centos时间校正</title><summary type="text">使用crontab自动进行时间校正是很有必要的。首先cron在centos中的启动方法/sbin/service crond start //启动服务/sbin/service crond stop //关闭服务/sbin/service crond restart //重启服务/sbin/service crond reload //重新载入配置把cron设置为开机自动启动，在/etc/rc.d/rc.local脚本中加入/sbin/service crond start接下来就是编辑cron，使用命令crontab -e (注意“查看”为-l,“删除”-r)对于编辑指定用户的crontab</summary><published>2011-07-29T03:54:00Z</published><updated>2011-07-29T03:54:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2120844.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2120844.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2120663.html</id><title type="text">discuz的目录未找到或者无法访问/data/template问题的解决</title><summary type="text">目录未找到或者无法访问/data/template问题的解决这个问题往往是在搬家的时候出现的。这里提供一个Centos5.6下的解决方案这里我使用的http server是nginx出现这种问题，主要是权限问题。一般是权限不够。最简单的方法是将所有的权限调整成777，但是这样做不安全。所以做好是调整成755如果调整成755的话，就需要改拥有者了。chown -R www:www directory我这里采用安全性较高的方案总共需要的代码是两条chown -R www:www 整个web目录 #注意路径chmod -R 755 date #注意路径</summary><published>2011-07-29T02:16:00Z</published><updated>2011-07-29T02:16:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2120663.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2120663.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2120613.html</id><title type="text">Centos搭配5709c网卡抽风情况解决方案</title><summary type="text">centos服务器网络出现“抽风式”故障—公网网络不定时突然自动down掉，也没查看到特别异常的log记录，都只能通过局域网服务连接执行service network restart重启网络服务才能恢复正常，这种情况就应该是网卡驱动兼容性问题。OS:CentOS5.6 64Bit 网卡:Broadcom Corporation NetXtreme II BCM5709 系统自带的默认驱动比较老。解决方法：去除使用系统自带的网卡驱动，手动安装更新网卡驱动。1、先确认当前驱动版本：#modinfo bnx2 #或直接ethtool -i eth0 可以查看到固件版本filename: /lib/m</summary><published>2011-07-29T01:35:00Z</published><updated>2011-07-29T01:35:00Z</updated><author><name>AnyKoro</name><uri>http://www.cnblogs.com/JosephLiu/</uri></author><link rel="alternate" href="http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2120613.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/JosephLiu/archive/2011/07/29/2120613.html"/><content type="html"/></entry></feed>
