نویسنده: سینا - سه شنبه هفتم تیر 1390
حالا وقت کامپایل کردن و نصب نهایی nginx می باشد . از دستور بسیار طویله
زیر برای این کار استفاده کنید .
وارد فلدر Nginx میشیم
=================
با دستور nano فایل nginx.conf باز و خط 32 آن را به صورت زیر ویرایش می کنیم . (این قسمت لزوم به ویرایش ندارد چون نسخه ی nginx/0.6.39 به صورت پیش فرض این قسمت را انجام داده .
این را در خط 32 وارد میکنیم . و در نهایت ذخیره ....
================
حالا پرمیشن nginx را به 755 تغییر می دهیم .
با استفاده از یکی از 2 دستور زیر nginx را start کنید .
یا
زیر برای این کار استفاده کنید .کد:
./configure --without-select_module --without-poll_module
--without-http_charset_module --without-http_gzip_module
--without-http_ssi_module --without-http_userid_module
--without-http_access_module
--without-http_auth_basic_module
--without-http_autoindex_module
--without-http_geo_module
--without-http_map_module
--without-http_referer_module
--without-http_rewrite_module
--without-http_fastcgi_module
--without-http_memcached_module
--without-http_limit_zone_module
--without-http_limit_req_module
--without-http_empty_gif_module
--without-http_browser_module
--without-http_upstream_ip_hash_module
--without-mail_pop3_module
--without-mail_imap_module
--without-mail_smtp_module
--without-pcre --with-openssl=/usr/lib/openssl --with-ipv6
نصب به اتمام رسیده وقت آن فرا رسیده که بیایم nginx را فعال کنیم .
وارد فلدر Nginx میشیم
کد:
cd /etc/nginx/
=================
با دستور nano فایل nginx.conf باز و خط 32 آن را به صورت زیر ویرایش می کنیم . (این قسمت لزوم به ویرایش ندارد چون نسخه ی nginx/0.6.39 به صورت پیش فرض این قسمت را انجام داده .
کد:
nano nginx.conf
کد:
include /etc/nginx/conf.d/*.conf;
حالا پرمیشن nginx را به 755 تغییر می دهیم .
کد:
chmod 755 /etc/init.d/nginx
کد:
/etc/init.d/nginx start
کد:
service nginx start
امیدوارم خوشتون اومده باشه ! موفق باشید
سینا احمدی /

