CentOS内存清理 占用内存过大 禁止iscsiuio启动

试用top命令查看时候 会发现 iscsiuio 占用很大内存
iscsiuio没什么用直接kill掉

防止重启iscsiuio复活
查看启动后开启的服务

chkconfig –list | grep ‘3:on’

会发现 iscsi 和 iscsid 两个服务,执行下列命令关闭它们

chkconfig iscsi off
chkconfig iscsid off

以下引用国外的几篇关于CentOS的文章,还不错
http://www.cyberciti.biz/faq/linux-default-services-which-are-enabled-at-boot

CentOS源 yum源 网易yum源 epel软件源 remi软件库

参考: http://blog.csdn.net/seanchan/article/details/7680354


CentOS源位置
/etc/yum.repos.d/

网易源

使用说明

首先备份/etc/yum.repos.d/CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做好相应备份)

运行yum makecache生成缓存
详细帮助见http://mirrors.163.com/.help/centos.html

增加额外资源库 EPEL Remi
默认情况下,CentOS的官方资源是没有php-fpm的, 但我们可以从Remi的RPM资源中获得,它依赖于EPEL资源。我们可以这样增加两个资源库:

yum install yum-priorities -y
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

其他相关
rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm 32位
rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm 64位
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

设置 /etc/yum.repos.d/epel.repo 中源的级别为 priority=11(比上面高就行)。

ubuntu 12.10 软件源更新列表

安装ubuntu12.10之后,第一件事就是更换源,ubuntu网易163的更新源速度一直很好。
1.首先备份源,sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

2.更换源,sudo gedit /etc/apt/sources.list
将下边的源直接覆盖掉:

deb http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted

运行 sudo apt-get update