十二月 4, 2008 at 6:22 下午
by Kim Chow · Filed under linux, 操作系统
- rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
- vi /etc/yum.repos.d/utterramblings.repo
- [utterramblings]
- name=Jason's Utter Ramblings Repo
- baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
- enabled=1
- gpgcheck=1
- gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
-
- yum install php php-mysql mysql-server php-gd php-mbstring php-pear php-pear-MDB2 php-pear-MDB2-Driver-mysql php-pecl-Fileinfo php-soap postgres ImageMagick ImageMagick-devel cachefilesd
-
- chkconfig --level 2345 iptables off
- chkconfig --level 2345 ip6tables off
-
- pecl install memcache
-
- libevent以及memcache默认安装
-
- vi /etc/ld.so.conf.d/memcache.conf
- /usr/local/lib
- ldconfig
-
- memcached -u apache -d -m 64 -l 127.0.0.1 -p 11211
-
- 编辑/etc/php.d/memcache.ini
- 将Session设置用Memcache保存
-
-
- 编辑
- /etc/cachefilesd.conf
- 缓存目录位置
-
- /etc/sysctl.conf
- net.ipv4.conf.default.arp_ignore = 1
- net.ipv4.conf.default.arp_announce = 2
- net.ipv4.conf.all.arp_ignore = 1
- net.ipv4.conf.all.arp_announce = 2
-
-
- chkconfig --level 2345 httpd on
- chkconfig --level 2345 cachefilesd on
Permalink
catch said,
十二月 10, 2008 at 12:29 上午
还没有时间把这些的资料整理一下。