十二 302009

前段时间最折腾的事莫属:RHEL5.4和BCM5709网卡驱动问题。

系统:rhel5.4 64bit

服务器:DELL R710

默认RHEL5.4 64bit的驱动对BCM5709的网卡支持不好,网卡一遇到流量比较大就会hung up,后来不得已去dell官方去寻找驱动,同时将kernel降级为:2.6.18-128.el5(系统安装好后,我做了一个kernel的升级)这样就没有出现过hung up的情况。

既然64bit有问题,32bit的也是逃脱不了。

转载自:http://www.ourlinux.net/life/rhel54-bcm5709-nic-drivers-problem/

我们公司用 DELL_R410+CentOS 5.3 64bit也有这个问题

去BCM下载新的驱动安装就好了

Posted by admin Tagged with: ,
十一 192009

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 for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.

我赶紧检查有没有装curl的devel
rpm -qa |grep curl

全都有!
查了半天资料, 还是找到结果了, 只要以下包都安装了, 就可以完美通过!
curl-devel-7.15.5-2.el5
e2fsprogs-devel-1.39-15.el5
krb5-devel-1.6.1-25.el5
libidn-devel-0.6.5-1.1
openssl-devel-0.9.8b-10.el5
至于每个包的作用, 自己去查吧! 呵呵

转载自:

http://www.linuxquestions.org/questions/linux-software-2/install-php-on-a-64bit-centos-problem.-help.-673530/

Posted by admin Tagged with: ,
232009

1、建立一个普通权限的用户
因为root用户对系统具有全权的操作权限,为了避免一些失误的操作,建议在一般情况下,以一般用户登录系统,必要的时候需要root操作权限时,再通过“su -”命令来登录为root用户进行操作。


useradd pysche
passwd pysche
usermod -G wheel pysche

修改pam配置,使非wheel组用户不能使用su命令登录为root:
vi /etc/pam.d/su

找到
#auth required /lib/security/$ISA/pam_wheel.so use_uid

将行首的 # 去掉。

然后
vi /etc/login.defs

在文件末尾加上

SU_WHEEL_ONLY yes

2、安装yum加速工具,并更新系统

yum install yum-fastestmirror -y
yum upgrade -y

3、安装mlocate工具

yum install mlocate -y

4、root邮件的修改
在系统出现错误或有重要通知发送邮件给root的时候,让系统自动转送到我们通常使用的邮箱中,这样方便查阅相关报告和日志。
vi /etc/aliases

在文件末尾加上
root: pysche@ipbfans.org

5、locate命令设置

vi /etc/updatedb.conf

在末尾增加
DAILY_UPDATE=yes

然后运行
updatedb

6、关闭不必要的服务

比如cups

/etc/init.d/cups stop
chkconfig cups off

除了以下服务以外,其他服务默认的都可以采用刚才的方法关闭:

atd
crond
irqbalance
lvm2-monitor
microcode_ctl
network
sendmail
sshd
syslog

7、停止ipv6

vi /etc/modprobe.conf

在文件末尾加上
alias net-pf-10 off
alias ipv6 off

8、关闭SELinux

vi /etc/selinux/config

改为
SELINUX=disabled

安装sudo工具

yum install sudo -y

安装好了以后,修改sudo的配置

vi /etc/sudousers


# %wheel ALL=(ALL) NOPASSWORD:ALL
去掉前面的 # , 然后保存文件。
这样修改了以后,只有所有属于wheel组的用户能执行sudo命令,并且执行sudo命令时只需要输入自己的密码即可。

10、修改SSH配置

vi /etc/ssh/sshd_config

增加ServerKey的强度
找到

#ServerKeyBits 768

改为

ServerKeyBits 1024

不允许root用户直接登录

#PermitRootLogin Yes

改为

PermitRootLogin no

禁止空密码登录

#PermitEmptyPasswords no

去掉前面的 #

全部修改完了以后,重启服务器

转载自:http://blog.qqpsp.com/?p=31

Posted by admin Tagged with: ,
172009

安装时选择英文了,为显示中文,执行以下命令

yum -y install Deployment_Guide-zh-TW Deployment_Guide-zh-CN fonts-chinese

Posted by admin Tagged with: , ,
042009

转载的:

原文地址:http://ipbfans.org/2009/01/redhat-centos-cherokee-init-script

我根据自己的情况,做了简单修改,这个脚本适合用默认方式安装的情况

Continue reading »

Posted by admin Tagged with: , , ,