Category: Hệ thống

Cài đặt memcache, memcache PHP extension (Linux)

Bài viết hướng đẫn cài đặt Memcached, thư viện để php có thể kết nối tới memcached.   Bước 1 Download libevent , cài đặt : #tar -xvf libevent-1.3b.tar.gz #cd libevent-1.3b #./configure #make #make install; Bước 2 Download memcache, cài đặt : #gunzip memcached-1.2.1.tar.gz #tar -xvf memcached-1.2.1.tar #cd memcached-1.2.1 #./configure #make #make install; Bước 3

Tối ưu Nginx

I – Tối ưu Nginx: 1) Bố trí lại các tệp tin cấu hình: Thông thường thì các tệp tin cấu hình của Nginx sẽ được lưu trữ trong thư mục “/etc/nginx”. Một cách tổ chức lại việc lưu trữ  tốt hơn theo phong cách của Apache như sau ## Tệp tin cấu hình chính

How to set a default gateway on CentOS

A default gateway is a remote host or router that your Linux host forwards traffic to when the destination IP address of outgoing traffic does not match any route in your local routing table. Configuring a default gateway on CentOS is quite straightforward. If you wish to change a default gateway temporarily at run time,

Install Redis on CentOS 6.5

Perform an update to ensure you’ve got the latest of everything in the base package. yum update Install wget so you can download a few things. yum install wget Allow yum to locate/install redis, per this page here. http://thoughts.z-dev.org/2013/05/27/install-redis-on-centos-6-4/ wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm" Now, install all the prerequisites yum install tar

Redis – Environment

Install Redis on Ubuntu To install the Redis on Ubuntu, go to terminal and type the following commands: $sudo apt-get update $sudo apt-get install redis-server This will install redis on your machine. Start Redis $redis-server Check if redis is working? $redis-cli This will open a redis prompt, as shown below: redis 127.0.0.1:6379> In the above

25 Apache Performance Tuning Tips

We all know and love Apache.  Its great, it allows us to run websites on the Internet with minimal configuration and administration. However, this same ease of flexibility and lack of tuning, is typically what leads Apache to becoming a memory hog.  Utilizing these easy to understand tips, you can gain a significant performance boost