OS:CentOS-6.2-x86_64-minimal.iso
iptables:
#vi /etc/sysconfig/iptables //add this port #ssh connection -A INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT #http connection -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #https connection -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT #according to your choice to allow remote mysql connection -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #/etc/init.d/iptables restart
third software source:EPEL
#wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm #rpm -ivh epel-release-6-7.noarch.rpm #rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Install the Varnish YUM Repository
# rpm -Uhv http://repo.varnish-cache.org/redhat/varnish-3.0/el5/noarch/varnish-release-3.0-1.noarch.rpm # yum install varnish Enable Varnish web accelerator at startup # chkconfig varnish on #service varnish start
varnish config is /etc/varnish/default.vcl
最新评论