CentOS 6.4 安装配置心得

为DSMS系统配置了一个测试环境,装的CentOS 6.4,有些心得记录如下:

1、和Debian相比,CentOS的SELinux很恶心,配置后需要开启一些规则才能正常工作,一不小心就死活无法正常工作

2、yum类似apt,可以网络升级、安装,和Debian类似,如果需要一些特殊的包,需要用非官方的源,比如FFMPEG,最常用的是RPMREPO:

http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

Edit /etc/yum.repos.d/rpmforge.repo to enable extras for newer version, such as subversion.

3、Install Java

http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-6-on-fedora-centos-red-hat-rhel/

http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/

4、SELinux相关

/etc/sysconfig/iptables,注意文件中配置的顺序,别弄错地方了

SAMBA配置之后,需要setsebool -P samba_enable_home_dirs on

HTTPD配置了代理,需要setsebool -P httpd_can_network_connect true

5、其他

服务:service httpd start

启动:chkconfig –list 和 chkconfig httpd on

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s