开始配我的CentOS 6.2的服务器了

终于想开工把服务器转到CentOS了,以前没怎么真正玩过Linux,就在这里记录碰到的各种问题吧。先开个头,慢慢再加了,会是一个漫长的过程的^_^

查看程序版本信息:
#rpm -qi httpd
#rpm -qi mysql
#rpm -qi php

查看文件大小:ls -lh
查看目录大小:du -sh *
查看磁盘分区的使用情况:df -lh
删除非空目录: rm -rf <dir name>

 更新源:

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever – Base
baseurl=http://mirrors.ustc.edu.cn/centos/6.2/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever – Updates
baseurl=http://mirrors.ustc.edu.cn/centos/6.2/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever – Addons
#baseurl=http://mirrors.ustc.edu.cn/centos/$releasever/addons/$basearch/
#gpgcheck=1
#gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever – Extras
baseurl=http://mirrors.ustc.edu.cn/centos/6.2/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever – Plus
baseurl=http://mirrors.ustc.edu.cn/centos/6.2/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-6

安装epel 和rpmfushion
rpm -Uvh http://mirrors.sohu.com/fedora-epel//6/x86_64/epel-release-6-5.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/6/x86_64/rpmfusion-free-release-6-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/6/x86_64/rpmfusion-nonfree-release-6-0.1.noarch.rpm

 Ref:

http://library.linode.com/lamp-guides/centos-6
http://www.cnblogs.com/buffer/archive/2011/07/27/2118118.html
http://alexduan.com/2011/08/17/centos-6-subversion-svnssh/
http://www.server-world.info/en/note?os=CentOS_6&p=subversion
http://yingchao.iteye.com/blog/628097
http://blog.csdn.net/flcandclf/article/details/1859499
http://hi.baidu.com/xcmh/blog/item/ddd4ec1fff4d7270f624e48e.html
http://www.cnblogs.com/yren/articles/439088.html
http://www.cnblogs.com/cryinstall/archive/2011/09/25/2189900.html
FTP: http://www.server-world.info/en/note?os=CentOS_6&p=ftp
http://hi.baidu.com/tjhaocai/blog/item/f4f2ce12b1caf3c5c2fd7840.html
http://nixcraft.com/file-servers/15931-550-create-directory-operation-failed.html
SVN: http://fangl99.iteye.com/blog/1205576
http://wordaligned.org/articles/a-subversion-pre-commit-hook
PHP: http://apps.hi.baidu.com/share/detail/1814958
SELinux: http://forum.ivorde.ro/vsftpd-and-selinux-making-them-work-together-for-system-users-t44.html
http://tech.amikelive.com/node-426/fedora-quick-tip-resolving-permission-denied-issues-in-http-and-ftp-services-with-getsebool-and-setsebool/
git: http://apps.hi.baidu.com/share/detail/22815438

You may also like...

发表评论

邮箱地址不会被公开。 必填项已用*标注