<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>夜行人 &#187; CentOS</title>
	<atom:link href="http://www.187299.com/archives/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.187299.com</link>
	<description>寻觅生命中的那一片浅草......</description>
	<lastBuildDate>Wed, 16 Nov 2011 11:25:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>RHEL5.4和BCM5709网卡驱动问题</title>
		<link>http://www.187299.com/archives/1431</link>
		<comments>http://www.187299.com/archives/1431#comments</comments>
		<pubDate>Wed, 30 Dec 2009 14:52:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1431</guid>
		<description><![CDATA[前段时间最折腾的事莫属：RHEL5.4和BCM5709网卡驱动问题。 系统：rhel5.4 64bit 服务器：DELL R710 默认RHEL5.4 64bit的驱动对BCM5709的网卡支持不好，网卡一遇到流量比较大就会hung up，后来不得已去dell官... ]]></description>
			<content:encoded><![CDATA[<p>前段时间最折腾的事莫属：RHEL5.4和BCM5709网卡驱动问题。</p>
<p>系统：rhel5.4 64bit</p>
<p>服务器：DELL R710</p>
<p>默认RHEL5.4 64bit的驱动对BCM5709的网卡支持不好，网卡一遇到流量比较大就会hung up，后来不得已去dell官方去寻找驱动，同时将kernel降级为：2.6.18-128.el5（系统安装好后，我做了一个kernel的升级）这样就没有出现过hung up的情况。</p>
<p>既然64bit有问题，32bit的也是逃脱不了。</p>
<p>转载自：http://www.ourlinux.net/life/rhel54-bcm5709-nic-drivers-problem/</p>
<p>我们公司用 DELL_R410+CentOS 5.3 64bit也有这个问题</p>
<p>去BCM下载新的驱动安装就好了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1431/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS5.3_64位编译PHP出错</title>
		<link>http://www.187299.com/archives/1347</link>
		<comments>http://www.187299.com/archives/1347#comments</comments>
		<pubDate>Thu, 19 Nov 2009 08:02:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1347</guid>
		<description><![CDATA[64位的系统给php添加curl的时候, cd /usr/local/src/php-5.2.6/ext/curl/ /usr/local/php-fcgi/bin/phpize ./configure --with-php-config=/usr/local/php-fcgi/bin/php-config 居然出现一下错误! checking for gnutls support in libcurl... no checking... ]]></description>
			<content:encoded><![CDATA[<p>64位的系统给php添加curl的时候,<br />
cd  /usr/local/src/php-5.2.6/ext/curl/<br />
/usr/local/php-fcgi/bin/phpize<br />
./configure  --with-php-config=/usr/local/php-fcgi/bin/php-config<br />
居然出现一下错误!<br />
checking  for gnutls support in libcurl... no<br />
checking for curl_easy_perform in  -lcurl... no<br />
configure: error: There is something wrong. Please check  config.log for more information.</p>
<p>我赶紧检查有没有装curl的devel<br />
rpm -qa |grep  curl</p>
<p>全都有!<br />
查了半天资料, 还是找到结果了, 只要以下包都安装了,  就可以完美通过!<br />
curl-devel-7.15.5-2.el5<br />
e2fsprogs-devel-1.39-15.el5<br />
krb5-devel-1.6.1-25.el5<br />
libidn-devel-0.6.5-1.1<br />
openssl-devel-0.9.8b-10.el5<br />
至于每个包的作用,  自己去查吧! 呵呵</p>
<p>转载自：</p>
<p>http://www.linuxquestions.org/questions/linux-software-2/install-php-on-a-64bit-centos-problem.-help.-673530/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1347/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS5.2安装后的一些初始化操作</title>
		<link>http://www.187299.com/archives/1008</link>
		<comments>http://www.187299.com/archives/1008#comments</comments>
		<pubDate>Tue, 23 Jun 2009 14:15:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1008</guid>
		<description><![CDATA[1、建立一个普通权限的用户 因为root用户对系统具有全权的操作权限，为了避免一些失误的操作，建议在一般情况下，以一般用户登录系统，必要的时候需要root操作权限时，再通过“su -”命令... ]]></description>
			<content:encoded><![CDATA[<p>1、建立一个普通权限的用户<br />
因为root用户对系统具有全权的操作权限，为了避免一些失误的操作，建议在一般情况下，以一般用户登录系统，必要的时候需要root操作权限时，再通过“su  -”命令来登录为root用户进行操作。</p>
<p><code><br />
useradd pysche<br />
passwd pysche<br />
usermod -G wheel  pysche<br />
</code></p>
<p>修改pam配置，使非wheel组用户不能使用su命令登录为root：<br />
<code>vi /etc/pam.d/su</code></p>
<p>找到<br />
<code>#auth required /lib/security/$ISA/pam_wheel.so use_uid</code></p>
<p>将行首的 # 去掉。</p>
<p>然后<br />
<code>vi /etc/login.defs</code></p>
<p>在文件末尾加上</p>
<p><code>SU_WHEEL_ONLY yes</code></p>
<p>2、安装yum加速工具，并更新系统<br />
<code><br />
yum install yum-fastestmirror -y<br />
yum  upgrade -y<br />
</code></p>
<p>3、安装mlocate工具</p>
<p><code>yum install mlocate -y</code></p>
<p>4、root邮件的修改<br />
在系统出现错误或有重要通知发送邮件给root的时候，让系统自动转送到我们通常使用的邮箱中，这样方便查阅相关报告和日志。<br />
<code>vi  /etc/aliases</code></p>
<p>在文件末尾加上<br />
<code>root: pysche@ipbfans.org</code></p>
<p>5、locate命令设置</p>
<p><code>vi /etc/updatedb.conf</code></p>
<p>在末尾增加<br />
<code>DAILY_UPDATE=yes</code></p>
<p>然后运行<br />
<code>updatedb</code></p>
<p>6、关闭不必要的服务</p>
<p>比如cups</p>
<p><code>/etc/init.d/cups stop<br />
chkconfig cups off</code></p>
<p>除了以下服务以外，其他服务默认的都可以采用刚才的方法关闭：</p>
<p><code>atd<br />
crond<br />
irqbalance<br />
lvm2-monitor<br />
microcode_ctl<br />
network<br />
sendmail<br />
sshd<br />
syslog</code></p>
<p>7、停止ipv6</p>
<p><code>vi /etc/modprobe.conf</code></p>
<p>在文件末尾加上<br />
<code>alias net-pf-10 off<br />
alias ipv6 off</code></p>
<p>8、关闭SELinux</p>
<p><code>vi /etc/selinux/config</code></p>
<p>改为<br />
<code>SELINUX=disabled</code></p>
<p>安装sudo工具</p>
<p><code>yum install sudo -y</code></p>
<p>安装好了以后，修改sudo的配置</p>
<p><code>vi /etc/sudousers</code></p>
<p>将<br />
<code># %wheel ALL=(ALL) NOPASSWORD:ALL</code><br />
去掉前面的 # ，  然后保存文件。<br />
这样修改了以后，只有所有属于wheel组的用户能执行sudo命令，并且执行sudo命令时只需要输入自己的密码即可。</p>
<p>10、修改SSH配置</p>
<p><code>vi /etc/ssh/sshd_config</code></p>
<p>增加ServerKey的强度<br />
找到</p>
<p><code>#ServerKeyBits 768</code></p>
<p>改为</p>
<p><code>ServerKeyBits 1024</code></p>
<p>不允许root用户直接登录</p>
<p><code>#PermitRootLogin Yes</code></p>
<p>改为</p>
<p><code>PermitRootLogin no</code></p>
<p>禁止空密码登录</p>
<p><code>#PermitEmptyPasswords no</code></p>
<p>去掉前面的 #</p>
<p>全部修改完了以后，重启服务器</p>
<p>转载自：<a href="http://blog.qqpsp.com/?p=31" target="_blank">http://blog.qqpsp.com/?p=31</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1008/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS5.2如何显示中文</title>
		<link>http://www.187299.com/archives/100</link>
		<comments>http://www.187299.com/archives/100#comments</comments>
		<pubDate>Fri, 17 Apr 2009 09:02:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://www.momati.net/archives/100</guid>
		<description><![CDATA[安装时选择英文了，为显示中文，执行以下命令 yum -y install Deployment_Guide-zh-TW Deployment_Guide-zh-CN fonts-chines... ]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: small;">安装时选择英文了，为显示中文，执行以下命令</span></p>
<p><span style="font-size: small;">yum -y install Deployment_Guide-zh-TW Deployment_Guide-zh-CN fonts-chinese</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/100/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RedHat/CentOS下的cherokee的启动脚本</title>
		<link>http://www.187299.com/archives/111</link>
		<comments>http://www.187299.com/archives/111#comments</comments>
		<pubDate>Sat, 04 Apr 2009 12:37:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Cherokee]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.momati.net/archives/111</guid>
		<description><![CDATA[转载的： 原文地址：http://ipbfans.org/2009/01/redhat-centos-cherokee-init-script 我根据自己的情况，做了简单修改，这个脚本适合用默认方式安装的情况 #!/bin/bash # # chkconfig: 2345 55 25 # description: Cherokee http ... ]]></description>
			<content:encoded><![CDATA[<p>转载的：</p>
<p>原文地址：http://ipbfans.org/2009/01/redhat-centos-cherokee-init-script</p>
<p>我根据自己的情况，做了简单修改，这个脚本适合用默认方式安装的情况</p>
<p><span id="more-111"></span></p>
<p>#!/bin/bash</p>
<p>#</p>
<p># chkconfig: 2345 55 25</p>
<p># description: Cherokee http server</p>
<p>#</p>
<p>. /etc/rc.d/init.d/functions</p>
<p>RETVAL=0</p>
<p>prog="cherokee"</p>
<p>worker="$prog"</p>
<p>#base_dir="/usr/local/cherokee"</p>
<p>conf_file=/etc/cherokee/cherokee.conf</p>
<p>bin_file=/usr/sbin/${worker}</p>
<p>pid_file=/var/run/cherokee.pid.worker</p>
<p>start() {</p>
<p>echo -n $"Starting $prog: "</p>
<p>daemon $bin_file -C $conf_file -d &amp;&amp; success || failure</p>
<p>RETVAL=$?</p>
<p>echo</p>
<p>[ $RETVAL = 0 ] &amp;&amp; touch /var/lock/subsys/${prog}</p>
<p>return $RETVAL</p>
<p>}</p>
<p>stop() {</p>
<p>echo -n $"Stopping $prog: "</p>
<p>if [ -r "$pid_file" ]; then</p>
<p>if [ -n `cat $pid_file` ]; then</p>
<p>killproc $bin_file -TERM</p>
<p>else</p>
<p>failure $"Stopping $prog"</p>
<p>fi</p>
<p>else</p>
<p>failure $"Stopping $prog"</p>
<p>fi</p>
<p>RETVAL=$?</p>
<p>echo</p>
<p>[ $RETVAL = 0 ] &amp;&amp; rm -rf /var/lock/subsys/${prog} ${pid_file}</p>
<p>}</p>
<p>restart() {</p>
<p>stop</p>
<p>sleep 1</p>
<p>start</p>
<p>}</p>
<p>reload() {</p>
<p>echo -n $"Reloading configuration of $prog: "</p>
<p>killproc $bin_file -HUP</p>
<p>RETVAL=$?</p>
<p>echo</p>
<p>}</p>
<p>logrotate() {</p>
<p>echo -n $"Rotating logs of $prog: "</p>
<p>killproc $bin_file -USR2</p>
<p>RETVAL=$?</p>
<p>echo</p>
<p>}</p>
<p>case "$1" in</p>
<p>start)</p>
<p>start</p>
<p>;;</p>
<p>stop)</p>
<p>stop</p>
<p>;;</p>
<p>restart)</p>
<p>restart</p>
<p>;;</p>
<p>reload)</p>
<p>reload</p>
<p>;;</p>
<p>logrotate)</p>
<p>logrotate</p>
<p>;;</p>
<p>status)</p>
<p>status $prog</p>
<p>RETVAL=$?</p>
<p>;;</p>
<p>*)</p>
<p>echo $"Usage: $0 {start|stop|restart|reload|status|logrotate}"</p>
<p>exit 1</p>
<p>;;</p>
<p>esac</p>
<p>exit $RETVAL</p>
<p>在Windows里改好，用sftp传上服务器，结果报错<br />
/etc/init.d/cherokee<br />
-bash: /etc/init.d/cherokee: /bin/bash^M: bad interpreter: No such file or directory</p>
<p>将脚本编码改为UTF8，结果又报错<br />
/etc/init.d/cherokee<br />
: No such file or directory1: 锘?!/bin/bash<br />
: command not founde: line 6:<br />
: No such file or directory7: /etc/rc.d/init.d/functions<br />
: command not founde: line 8:<br />
: command not founde: line 16:<br />
'etc/init.d/cherokee: line 17: syntax error near unexpected token `{<br />
'etc/init.d/cherokee: line 17: `start() {<br />
[root@localhost init.d]# /etc/init.d/cherokee<br />
-bash: /etc/init.d/cherokee: /bin/bash^M: bad interpreter: No such file or directory</p>
<p>经原作者提示，这个不是编码问题，是因为win和*nix系统换行符不同导致的</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/111/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

