Building High Performance Web Server nginx, luajit, phpfm on Centos

These are my logs for building a high performance ngnix luajit based server. I have added phpfm also as component. Please note these are actual dump of command and use it with your own discreation

4 cd /usr/local/src
5 yum groupinstall “Development Tools”
7 wget http://nginx.org/download/nginx-1.2.4.tar.gz
11 yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel
25 git clone http://luajit.org/git/luajit-2.0.git
27 cd luajit-2.0/
29 git pull
30 make
31 make install
32 lua
33 ln -sf luajit-2.0.0-beta10 /usr/local/bin/luajit
44 cd /usr/local/src
46 git clone https://github.com/simpl/ngx_devel_kit.git
86 tar -zxvf nginx-1.2.4.tar.gz
91 git clone https://github.com/chaoslawful/lua-nginx-module.git
103 export LUA_LIB=/usr/local/lib/
104 export LUA_INC=/usr/local/include/luajit-2.0/
124 ln -s /usr/local/lib/libluajit-5.1.so.2.0.0 /usr/local/lib/liblua.so
126 cd /usr/local/src/nginx-1.2.4
130 yum install openssh pcre pcre-devel
152 ./configure –prefix=/opt/nginx –with-http_ssl_module –add-module=/usr/local/src/ngx_devel_kit/ –add-module=/usr/local/src/lua-nginx-module/
153 make -j2
154 make install
155 export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
156 cd /opt/
157 cd ngnix/
158 cd sbin/
159 ./nginx
160 ps aux | grep ngnix
161 ps aux | grep nginx
162 exit
163 ps aux | grep nginx
171 ls -al
172 vi nginx
173 chmod +x nginx
174 chkconfig nginx on
175 chkconfig –list nginx
176 service nginx start
177 service nginx stop
178 ps aux | grep nginx
179 service nginx start
180 ps aux | grep nginx
181 ps aux | grep nginx
182 /etc/init.d/nginx start
183 ps aux | grep nginx
184 vi nginx
185 service nginx start
186 ps aux | grep nginx

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