Centos
服务器需要停止的服务: NetworkManager dnsmasq 域名不能解析,resolv.conf被修改 cat /etc/resolv.conf # Generated by NetworkManager chkconfig dnsmasq off chkconfig –list dnsmasq Dec 1 13:39:04 dhcpd: No subnet declaration for eth0 (no IPv4 addresses). Dec 1 13:39:04 dhcpd: ** Ignoring requests on eth0. If this is not what Dec 1 13:39:04 dhcpd: you want, please write a subnet declaration Dec 1 [...]
由于centos 6标准内核不包含raid驱动,需要单独安装或者在安装是加载,服务器是惠普ProLiant DL120 G7,阵列是HP Smart Array B110i SATA-3G RAID控制器(RAID 0/1/1+0),。 进到BIOS里配置好raid。 在hp网站下载 Driver Diskette for HP Smart Array B110i SATA RAID Controller for Red Hat Enterprise Linux 6 (AMD64/EM64T) 。 输出到u盘上 For a USB key for Red Hat and SuSE dd if=hpahcisr-1.2.6-7.rhel6.x86_64.dd of=/dev/sd? 解压出了一个dd.img文件 At boot prompt type “linux nostorage” 光驱放入安装光盘,在安装界面的第一个画面输入 :linux nostorage (用linux [...]
centos 4升级yum后yum不能使用解决办法。 Yum fails "GLib-CRITICAL" yum check-update (process:25406): GLib-CRITICAL **: file gtimer.c: line 106 (g_timer_stop): assertion `timer != NULL' failed (process:25406): GLib-CRITICAL **: file gtimer.c: line 88 (g_timer_destroy): assertion `timer != NULL' failed TypeError: Can not create index on requires table: near "NOT": syntax error 方法: rpm -Uvh http://mirrors.sohu.com/centos/4.8/os/i386/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm rpm -Uvh http://mirrors.sohu.com/centos/4.8/os/i386/CentOS/RPMS/sqlite-devel-3.3.6-2.i386.rpm 然后 mv /etc/yum.repos.d/CentOS-Base.repo [...]
LSB是Linux Standard Base的缩写,lsb_release命令用来显示LSB和特定版本的相关信息,centos可通过 yum -y install redhat-lsb 命令安装。如果使用该命令时不带参数,则默认加上-v参数。 查看Linux发行版信息: lsb_release -a 查询rpm安装包名称: yum whatprovides */lsb_release
安装字体: yum install fonts-chinese fonts-ISO8859-2-75dpi 对于centos6以后版本: yum -y groupinstall chinese-support 编辑 .bash_profile 添加 export LANG="zh_CN.UTF-8"
centos4.2 升级到内核linux-2.6.34后iptables无法使用,升级iptables: wget http://www.netfilter.org/projects/iptables/files/iptables-1.4.9.1.tar.bz2 tar xjf iptables-1.4.9.1.tar.bz2 -C /usr/local/src cd /usr/local/src/iptables-1.4.9.1 ./configure –prefix=/usr –with-ksource=/usr/src/linux-2.6.34.1 make && make install /usr/sbin/iptables -V 给系统的/sbin/iptables做个符号链接即可。 升级内核过程: tar xfj linux-2.6.34.1.tar.bz2 -C /usr/src cd /usr/src /bin/rm -f linux ln -s linux-2.6.34.1 linux cd linux make mrproper cp /boot/config-2.6.9-22.el .config make menuconfig make -j6 && make modules && make modules_install && make [...]
Continue reading about centos4 升级内核linux-2.6.34.1及iptables升级到v1.4.9.1
一台centos 4.2系统,yum升级gcc时中途停止。发现postfix出错: maildrop -v maildrop: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libgcc_s.so.1) 试图编译maildrop报错: configure: error: in `/usr/local/src/maildrop-2.5.0': configure: error: C compiler cannot create executables See `config.log' for more details. configure:3188: checking whether the C compiler works configure:3210: gcc conftest.c >&5 /usr/lib/gcc/i386-redhat-linux/3.4.6/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4' collect2: ld returned 1 exit status 一时找不到centos 4的光盘,安装centos 5的gcc不能解决。 [...]
yum search fastestmirror yum install yum-fastestmirror* -y yum update yum* yum update kernel* yum update CentOS 中国科学技术大学 USTC mirror(每小时更新一次) http://centos.ustc.edu.cn/ cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.save-`date +%F` wget http://centos.ustc.edu.cn/CentOS-Base.repo.5 mv CentOS-Base.repo.5 CentOS-Base.repo centos 4: cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.save wget http://centos.ustc.edu.cn/CentOS-Base.repo sohu开源镜像站 http://mirrors.sohu.com/help/centos.html wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo yum makecache 生成缓存 网易开源镜像站 http://mirrors.163.com/.help/centos.html wget http://mirrors.163.com/.help/CentOS-Base-163.repo yum makecache 生成缓存 * [...]
近期评论