Kod:
mysql -uadmin -p$(cat /etc/psa/.psa.shadow) -D psa -e'replace into misc (param, val) values ("http_port", 8080);' /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Kod:
nano /etc/httpd/conf/httpd.conf
Kod:
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
Kod:
yum install varnish
Kod:
nano /etc/yum.repos.d/atomic.repo
Kod:
nano /etc/sysconfig/varnish
Kod:
VARNISH_LISTEN_PORT=80 VARNISH_STORAGE_SIZE=1G VARNISH_STORAGE="malloc,${VARNISH_STORAGE_SIZE}"
Kod:
/etc/init.d/httpd restart
Kod:
/etc/init.d/varnish start
Kod:
chkconfig varnish on