-
July 20th, 2013, 00:18
#1
آموزش نصب Nginx بر روی Kloxo
ابتدا با دسترسی ریشه به سرور متصل شوید .
حال با استفاده از دستور زیر httpd را Stop می کنیم :
service httpd stop
حالا وقت نصب کردن فرا رسیده است.فایل را بر روی سرور دانلود کنید و سپس از حالت فشرده خارج کنید:
wget http://nginx.org/download/nginx-0.8.33.tar.gz
tar -zxf nginx-0.8.33.tar.gz
با دستور زیر وارد فلدر nginx شوید:
cd nginx-0.8.33
حال وقت کامپایل کردن و نصب نهایی nginx می باشد.
از دستور بسیار طویل زیر برای این کار استفاده کنید:
./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
make
make install
نصب به اتمام رسیده وقت آن فرا رسیده که بیایم nginx را فعال کنیم.
وارد فلدر Nginx می شویم:
cd /etc/nginx/
=================
با دستور nano فایل nginx.conf باز و خط 32 آن را به صورت زیر ویرایش می کنیم.
(این قسمت لزوم به ویرایش ندارد چون نسخه ی nginx/0.6.39 به صورت پیش فرض این قسمت را انجام داده)
nano nginx.conf
این را در خط 32 وارد میکنیم . و در نهایت ذخیره ....
include /etc/nginx/conf.d/*.conf;
================
حالا پرمیشن nginx را به 755 تغییر می دهیم:
chmod 755 /etc/init.d/nginx
با استفاده از یکی از 2 دستور زیر nginx را start کنید:
/etc/init.d/nginx start
یا
service nginx start
باید تصویری رویت شود تا نوید نصب کامل و فعال سازی nginx را به شما بدهد.
آیا با نصب این وب سرور , آپاچی کنار میرود و کارهای آن را nginx انجام خواهد داد ؟
اگر جواب مثبت است تکلیف برنامه هایی که باید برای نصب و استفاده از آنها آپاچی روی سرور نصب باشه چی میشه ؟
بله ، باید قید آن نوع برنامه ها را بزنید .
-
تعداد تشکر ها ازlnspiron به دلیل پست مفید
-
July 20th, 2013 00:18
# ADS
-
July 26th, 2013, 04:07
#2
پاسخ : آموزش نصب Nginx بر روی Kloxo
برای من موقع نصب روی سرور مجازی این خطارو میده. مشکل از چیه؟
./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl=<path> options.
-
تعداد تشکر ها از s_dastjani به دلیل پست مفید
-
July 26th, 2013, 09:03
#3
پاسخ : آموزش نصب Nginx بر روی Kloxo

نوشته اصلی توسط
s_dastjani
برای من موقع نصب روی سرور مجازی این خطارو میده. مشکل از چیه؟
./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl=<path> options.
OpenSSL شما نصب نیست و یا در مسیر درست قرار داده نشده : openssl=/usr/lib/openssl
باید نصبش کنید یا مسیر صحیحش رو پیدا کنید و در دستور configure جای گذاریش کنید.
-
تعداد تشکر ها ازmehrdd به دلیل پست مفید
-
July 26th, 2013, 11:48
#4
پاسخ : آموزش نصب Nginx بر روی Kloxo

نوشته اصلی توسط
lnspiron
ابتدا با دسترسی ریشه به سرور متصل شوید .
حال با استفاده از دستور زیر httpd را Stop می کنیم :
service httpd stop
حالا وقت نصب کردن فرا رسیده است.فایل را بر روی سرور دانلود کنید و سپس از حالت فشرده خارج کنید:
wget http://nginx.org/download/nginx-0.8.33.tar.gz
tar -zxf nginx-0.8.33.tar.gz
با دستور زیر وارد فلدر nginx شوید:
cd nginx-0.8.33
حال وقت کامپایل کردن و نصب نهایی nginx می باشد.
از دستور بسیار طویل زیر برای این کار استفاده کنید:
./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
make
make install
نصب به اتمام رسیده وقت آن فرا رسیده که بیایم nginx را فعال کنیم.
وارد فلدر Nginx می شویم:
cd /etc/nginx/
=================
با دستور nano فایل nginx.conf باز و خط 32 آن را به صورت زیر ویرایش می کنیم.
(این قسمت لزوم به ویرایش ندارد چون نسخه ی nginx/0.6.39 به صورت پیش فرض این قسمت را انجام داده)
nano nginx.conf
این را در خط 32 وارد میکنیم . و در نهایت ذخیره ....
include /etc/nginx/conf.d/*.conf;
================
حالا پرمیشن nginx را به 755 تغییر می دهیم:
chmod 755 /etc/init.d/nginx
با استفاده از یکی از 2 دستور زیر nginx را start کنید:
/etc/init.d/nginx start
یا
service nginx start
باید تصویری رویت شود تا نوید نصب کامل و فعال سازی nginx را به شما بدهد.
آیا با نصب این وب سرور , آپاچی کنار میرود و کارهای آن را nginx انجام خواهد داد ؟
اگر جواب مثبت است تکلیف برنامه هایی که باید برای نصب و استفاده از آنها آپاچی روی سرور نصب باشه چی میشه ؟
بله ، باید قید آن نوع برنامه ها را بزنید .
بنده مراحل رو انجام دادم ، سرور رو ریست کردم اما هرکاری میکنیم ngnix استارت نمیشه مشکل از چیه ؟
-
تعداد تشکر ها از liveserver به دلیل پست مفید
-
July 26th, 2013, 16:56
#5
عضو جدید
پاسخ : آموزش نصب Nginx بر روی Kloxo

نوشته اصلی توسط
mehrdd
OpenSSL شما نصب نیست و یا در مسیر درست قرار داده نشده : openssl=/usr/lib/openssl
باید نصبش کنید یا مسیر صحیحش رو پیدا کنید و در دستور configure جای گذاریش کنید.
openssl در همون مسیر /usr/lib/openssl موجود هست ، ولی باز هم همون پیغام رو میده
-
تعداد تشکر ها از HKraToS به دلیل پست مفید
-
August 20th, 2013, 23:03
#6
پاسخ : آموزش نصب Nginx بر روی Kloxo
می شه بپرسم این جا چرا همه ماژول ها رو صرف نظر کردین با دصتور without ??
-
تعداد تشکر ها از DjMohsen به دلیل پست مفید
-
September 14th, 2013, 16:20
#7
پاسخ : آموزش نصب Nginx بر روی Kloxo
این خطا رو موقع نصب میده
./configure
checking for OS
+ Linux 2.6.18-348.16.1.el5 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.1.2 20080704 (Red Hat 4.1.2-54)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE, TCP_KEEPINTVL, TCP_KEEPCNT ... found
checking for TCP_INFO ... not found
checking for accept4() ... not found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for PCRE library ... found
checking for PCRE JIT support ... not found
checking for md5 in system md library ... not found
checking for md5 in system md5 library ... not found
checking for md5 in system OpenSSL crypto library ... not found
checking for sha1 in system md library ... not found
checking for sha1 in system OpenSSL crypto library ... not found
checking for zlib library ... not found
./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.
-