{"id":4487,"date":"2014-04-07T14:10:24","date_gmt":"2014-04-07T09:40:24","guid":{"rendered":"https:\/\/parspack.com\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d9%86%d8%b5%d8%a8-%d9%88%d8%a8-%d8%b3%d8%b1%d9%88%d8%b1-nginx-%d8%a8%d8%b1-%d8%b1%d9%88%db%8c-%d8%b3%db%8c%d8%b3%d8%aa%d9%85-%d8%b9%d8%a7%d9%85%d9%84-centos-%d9%88\/"},"modified":"2022-10-22T21:30:06","modified_gmt":"2022-10-22T18:00:06","slug":"install-nginx-centos","status":"publish","type":"post","link":"https:\/\/parspack.com\/blog\/hosting\/learn-server\/install-nginx-centos","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u06a9\u0627\u0646\u0641\u06cc\u06af \u0648\u0628 \u0633\u0631\u0648\u0631 Nginx"},"content":{"rendered":"<div dir=\"rtl\" style=\"text-align: justify;\">\u0646\u0635\u0628 \u0648\u0628 \u0633\u0631\u0648\u0631 Nginx\u061b \u0627\u0646\u062c\u06cc\u0646 \u0627\u06cc\u06a9\u0633 ( Nginx ) \u06cc\u06a9\u06cc \u0627\u0632 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0647\u0627\u06cc\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0645\u062f\u06cc\u0631\u0627\u0646 \u0633\u0627\u06cc\u062a \u0647\u0627\u06cc \u067e\u0631\u0628\u0627\u0632\u062f\u06cc\u062f \u0631\u0627 \u0628\u0647 \u0633\u0648\u06cc \u062e\u0648\u062f \u062c\u0644\u0628 \u0646\u0645\u0648\u062f\u0647 \u0627\u0633\u062a. \u0627\u0646\u062c\u06cc\u0646 \u0627\u06cc\u06a9\u0633 \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0648\u0628 \u0633\u0631\u0648\u0631\u060c \u0631\u06cc\u0648\u0631\u0633 \u067e\u0631\u0627\u06a9\u0633\u06cc \u0633\u0631\u0648\u0631 ( reverse proxy server ) \u0648 \u0645\u06cc\u0644 \u067e\u0631\u0627\u06a9\u0633\u06cc \u0633\u0631\u0648\u0631 ( mail proxy server ) \u0646\u06cc\u0632 \u0645\u06cc \u0628\u0627\u0634\u062f \u06a9\u0647\u00a0 \u0628\u0635\u0648\u0631\u062a \u0645\u062a\u0646 \u0628\u0627\u0632 ( open source ) \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a . \u0642\u0628\u0644 \u0627\u0632 \u0646\u0635\u0628 nginx\u00a0 \u0628\u0627\u06cc\u062f \u06af\u0641\u062a \u0627\u06cc\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0627\u0632 \u067e\u0631\u0648\u062a\u06a9\u0644 \u0647\u0627\u06cc http , https , SMTP , POP3 \u0648 IMAP \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc \u06a9\u0646\u062f. \u0627\u0646\u062c\u06cc\u0646 \u0627\u06cc\u06a9\u0633 \u0628\u0647 \u06af\u0648\u0646\u0647 \u0627\u06cc \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0647\u0645\u0632\u0645\u0627\u0646 \u0628\u0627 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0627\u0632 \u062a\u0639\u062f\u0627\u062f \u06a9\u0627\u0646\u06a9\u0634\u0646 \u0647\u0627\u06cc \u0628\u0633\u06cc\u0627\u0631 \u0628\u0627\u0644\u0627 \u060c \u0639\u0645\u0644\u06a9\u0631\u062f \u0645\u0646\u0627\u0633\u0628 \u0648 \u0645\u0635\u0631\u0641 \u06a9\u0645 \u0631\u0645 \u0631\u0627 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f.<\/div>\n<div dir=\"rtl\"><\/div>\n<div dir=\"rtl\" style=\"text-align: justify;\">\u0627\u06cc\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0645\u062d\u0628\u0648\u0628 \u0628\u0631 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0627\u0632 \u062c\u0645\u0644\u0647 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u060c mac os \u0648 \u0633\u0648\u0644\u0627\u0631\u06cc\u0633 \u0642\u0627\u0628\u0644 \u0646\u0635\u0628 \u0645\u06cc \u0628\u0627\u0634\u062f. nginx \u062a\u0648\u0633\u0637 \u0627\u06cc\u06af\u0648\u0631 \u0633\u06cc\u0633\u0648\u06cc\u0648 ( igor sysoev ) \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0627\u06cc\u06af\u0648\u0631 \u062f\u0631 \u0633\u0627\u0644 1970 \u062f\u0631 \u0634\u0647\u0631 \u0622\u0644\u0645\u0627\u062a\u06cc \u0642\u0632\u0627\u0642\u0633\u062a\u0627\u0646 \u0628\u0647 \u062f\u0646\u06cc\u0627 \u0622\u0645\u062f\u0647 \u0627\u0633\u062a \u0648 \u0641\u0627\u0631\u063a \u0627\u0644\u062a\u062d\u0635\u06cc\u0644 \u062f\u0627\u0646\u0634\u06af\u0627\u0647 \u0627\u06cc\u0627\u0644\u062a\u06cc \u0645\u0633\u06a9\u0648 \u0645\u06cc \u0628\u0627\u0634\u062f.<\/div>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u06a9\u0627\u0631 \u0633\u0627\u062e\u062a nginx \u0627\u0632 \u0633\u0627\u0644 2002 \u0622\u063a\u0627\u0632 \u06af\u0631\u062f\u06cc\u062f \u0648 \u0627\u0648\u0644\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0622\u0646 \u062f\u0631 \u0633\u0627\u0644 2004 \u0645\u0646\u062a\u0634\u0631 \u06af\u0631\u062f\u06cc\u062f. \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0646\u0632\u062f\u06cc\u06a9 \u0628\u0647 12 \u062f\u0631\u0635\u062f \u0648\u0628 \u0633\u0627\u06cc\u062a \u0647\u0627\u06cc \u062c\u0647\u0627\u0646 \u06cc\u0639\u0646\u06cc \u0686\u06cc\u0632\u06cc \u062f\u0631 \u062d\u062f\u0648\u062f 22 \u0645\u06cc\u0644\u06cc\u0648\u0646 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0627\u0632 nginx \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u0646\u062f.<\/p>\n<h2 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #3366ff;\"><strong>\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648\u0628 \u0633\u0631\u0648\u0631 Nginx \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633<\/strong><\/span><\/h2>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u062e\u0648\u0634\u0628\u062e\u062a\u0627\u0646\u0647 \u0645\u062f\u062a\u06cc \u0627\u0633\u062a \u06a9\u0647 nginx \u067e\u06a9\u06cc\u062c \u0628\u0627\u06cc\u0646\u0631\u06cc \u0622\u0646 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0631\u06cc\u067e\u0627\u0632\u06cc\u062a\u0648\u0631\u06cc nginx \u0627\u0631\u0627\u0626\u0647 \u0646\u0645\u0648\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0627\u06cc\u0646 \u0645\u0647\u0645 \u0646\u0635\u0628 \u0622\u0646 \u0631\u0627 \u0628\u0633\u06cc\u0627\u0631 \u062a\u0633\u0647\u06cc\u0644 \u0645\u06cc \u0646\u0645\u0627\u06cc\u062f. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0645\u0631\u0627\u062d\u0644 \u0646\u0635\u0628 \u0622\u0646 \u0631\u0627 \u0631\u0648\u06cc <a title=\"\u062e\u0631\u06cc\u062f \u0633\u0631\u0648\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 \" href=\"\/servers\/linux\" target=\"_blank\" rel=\"noopener\">\u0633\u0631\u0648\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 <\/a> \u0645\u0631\u0648\u0631 \u0645\u06cc \u0646\u0645\u0627\u0626\u06cc\u0645:<\/p>\n<h3 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #0000ff;\"><strong>&#8211; \u0645\u0631\u062d\u0644 \u0627\u0648\u0644: \u0646\u0635\u0628 nginx repo<\/strong><\/span><\/h3>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0627\u0628\u062a\u062f\u0627 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">cd \/tmp<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0627\u06af\u0631 \u0627\u0632 \u0646\u0633\u062e\u0647 centos 6 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">wget http:\/\/nginx.org\/packages\/centos\/6\/noarch\/RPMS\/nginx-release-centos-6-0.el6.ngx.noarch.rpm<br \/>\nrpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm<\/p>\n<\/blockquote>\n<h3 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #0000ff;\"><strong>\u00a0&#8211; \u0645\u0631\u062d\u0644\u0647 \u062f\u0648\u0645: \u0646\u0635\u0628 \u0648\u0628 \u0633\u0631\u0648\u0631 nginx<\/strong><\/span><\/h3>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u067e\u0633 \u0627\u0632 \u0646\u0635\u0628 \u0631\u06cc\u067e\u0648 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 nginx \u0631\u0627 \u0646\u0635\u0628 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">yum install nginx<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0627\u062d\u062a\u0645\u0627\u0644\u0627 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u06a9\u0646\u0633\u0648\u0644 \u062f\u0631\u06cc\u0627\u0641\u062a \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<blockquote>\n<p style=\"direction: ltr;\">Loaded plugins: product-id, rhnplugin, security, subscription-manager<\/p>\n<p style=\"direction: ltr;\">Updating certificate-based repositories.<\/p>\n<p style=\"direction: ltr;\">Unable to read consumer identity<\/p>\n<p style=\"direction: ltr;\">nginx | 1.3 kB 00:00<\/p>\n<p style=\"direction: ltr;\">nginx\/primary | 4.8 kB 00:00<\/p>\n<p style=\"direction: ltr;\">nginx 33\/33<\/p>\n<p style=\"direction: ltr;\">Setting up Install Process<\/p>\n<p style=\"direction: ltr;\">Resolving Dependencies<\/p>\n<p style=\"direction: ltr;\">&#8211;&gt; Running transaction check<\/p>\n<p style=\"direction: ltr;\">&#8212;&gt; Package nginx.x86_64 0:1.2.6-1.el6.ngx will be installed<\/p>\n<p style=\"direction: ltr;\">&#8211;&gt; Finished Dependency Resolution<\/p>\n<p style=\"direction: ltr;\">Dependencies Resolved<\/p>\n<p style=\"direction: ltr;\">=====================================================<\/p>\n<p style=\"direction: ltr;\">Package Arch Version Repository Size<\/p>\n<p style=\"direction: ltr;\">=====================================================<\/p>\n<p style=\"direction: ltr;\">Installing:<\/p>\n<p style=\"direction: ltr;\">nginx x86_64 1.2.6-1.el6.ngx nginx 361 k<\/p>\n<p style=\"direction: ltr;\">Transaction Summary<\/p>\n<p style=\"direction: ltr;\">=====================================================<\/p>\n<p style=\"direction: ltr;\">Install 1 Package(s)<\/p>\n<p style=\"direction: ltr;\">Total download size: 361 k<\/p>\n<p style=\"direction: ltr;\">Installed size: 835 k<\/p>\n<p style=\"direction: ltr;\">Is this ok [y\/N]: y<\/p>\n<p style=\"direction: ltr;\">Downloading Packages:<\/p>\n<p style=\"direction: ltr;\">nginx-1.2.6-1.el6.ngx.x86_64.rpm | 361 kB 00:00<\/p>\n<p style=\"direction: ltr;\">Running rpm_check_debug<\/p>\n<p style=\"direction: ltr;\">Running Transaction Test<\/p>\n<p style=\"direction: ltr;\">Transaction Test Succeeded<\/p>\n<p style=\"direction: ltr;\">Running Transaction<\/p>\n<p style=\"direction: ltr;\">Warning: RPMDB altered outside of yum.<\/p>\n<p style=\"direction: ltr;\">Installing : nginx-1.2.6-1.el6.ngx.x86_64 1\/1<\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: left;\">Thanks for using NGINX!<\/p>\n<p style=\"text-align: left;\">Check out our community web site:<br \/>\n* <a href=\"http:\/\/nginx.org\/en\/support.html\" class=\"broken_link\" target=\"_blank\" rel=\"noopener\">http:\/\/nginx.org\/en\/support.html<\/a><\/p>\n<p style=\"text-align: left;\">If you have questions about commercial support for NGINX please visit:<br \/>\n* <a href=\"https:\/\/www.nginx.com\/support\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.nginx.com\/support\/\u00a0<\/a><\/p>\n<p style=\"text-align: left;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nInstalled products updated.<br \/>\nVerifying : nginx-1.2.6-1.el6.ngx.x86_64 1\/1<\/p>\n<p style=\"text-align: left;\">Installed:<br \/>\nnginx.x86_64 0:1.2.6-1.el6.ngx<\/p>\n<p style=\"text-align: left;\">Complete!<\/p>\n<\/blockquote>\n<h3 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #0000ff;\"><strong>&#8211; \u0645\u0631\u062d\u0644\u0647 \u0633\u0648\u0645 : \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 Nginx<\/strong><\/span><\/h3>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0645\u06cc \u0628\u0627\u06cc\u0633\u062a \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0641\u0639\u0627\u0644 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">chkconfig nginx on<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0646\u06cc\u0632 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0631\u0627\u06cc \u0645\u062a\u0648\u0642\u0641 \u06a9\u0631\u062f\u0646 \u060c \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0645\u062c\u062f\u062f \u0648 \u06cc\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u0648\u0636\u0639\u06cc\u062a \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0641\u0631\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">service nginx start<br \/>\nservice nginx stop<br \/>\nservice nginx restart<br \/>\nservice nginx status<br \/>\nservice nginx reload<\/p>\n<\/blockquote>\n<h3 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #0000ff;\"><strong>&#8211; \u0645\u0631\u062d\u0647 \u0686\u0647\u0627\u0631\u0645 : \u06a9\u0627\u0646\u0641\u06cc\u06af \u0648\u0628 \u0633\u0631\u0648\u0631 <\/strong><\/span><span style=\"color: #0000ff;\"><strong>Nginx<\/strong><\/span><\/h3>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0645\u0633\u06cc\u0631 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u06a9\u0627\u0646\u0641\u06cc\u06af \u0627\u0646\u062c\u06cc\u0646 \u0627\u06cc\u06a9\u0633 \u0631\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0631 \u0632\u06cc\u0631 \u0628\u06cc\u0627\u0628\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">Default configuration directory: \/etc\/nginx\/<br \/>\nDefault SSL and vhost config directory: \/etc\/nginx\/conf.d\/<br \/>\nDefault log file directory: \/var\/log\/nginx\/<br \/>\nDefault document root directory: \/usr\/share\/nginx\/html<br \/>\nDefault configuration file: \/etc\/nginx\/nginx.conf<br \/>\nDefault server access log file: \/var\/log\/nginx\/access.log<br \/>\nDefault server access log file: \/var\/log\/nginx\/error.log<\/p>\n<\/blockquote>\n<h4 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0648\u06cc\u0631\u0627\u06cc\u0634 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0648\u0628 \u0633\u0631\u0648\u0631 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u0626\u06cc\u062f:<\/span><\/h4>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">vim \/etc\/nginx\/nginx.conf<\/p>\n<\/blockquote>\n<h4 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u062a\u0639\u062f\u0627\u062f \u067e\u0631\u062f\u0627\u0632\u0634\u06af\u0631 \u0631\u0627 \u0627\u0635\u0644\u0627\u062d \u0646\u0645\u0648\u062f\u0647 \u0648 gzip \u0631\u0627 \u0641\u0639\u0627\u0644 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/span><\/h4>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">worker_processes\u00a0 2;<br \/>\ngzip\u00a0 on;<\/p>\n<\/blockquote>\n<h4 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0633\u062a\u0647 \u0648 \u0641\u0627\u06cc\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0627\u0632 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/span><\/h4>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">vim \/etc\/nginx\/conf.d\/default.conf<\/p>\n<\/blockquote>\n<h4 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u0646\u0627\u0645 \u0633\u0631\u0648\u0631 \u060c \u0627\u06cc \u067e\u06cc \u0648 \u067e\u0648\u0631\u062a tcp \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/span><\/h4>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">listen\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 202.54.1.1.1:80;<br \/>\nserver_name\u00a0 <a href=\"https:\/\/parspack.com\">www.parspack.com;<\/a><\/p>\n<\/blockquote>\n<h4 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0633\u062a\u0647 \u0648 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/span><\/h4>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">service nginx start<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0622\u06cc\u0627 nginx \u0628\u062f\u0631\u0633\u062a\u06cc \u0639\u0645\u0644 \u0645\u06cc \u06a9\u0646\u062f \u06cc\u0627 \u062e\u06cc\u0631:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">netstat -tulpn | grep :80<br \/>\nps aux | grep nginx<\/p>\n<\/blockquote>\n<h3 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #0000ff;\"><strong>&#8211; \u0645\u0631\u062d\u0644\u0647 \u067e\u0646\u062c\u0645 : \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0648\u0628 \u0633\u0631\u0648\u0631 <\/strong><\/span><span style=\"color: #0000ff;\"><strong>Nginx<\/strong><\/span><\/h3>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0641\u0627\u06cc\u0644 iptables \u0631\u0627 \u0628\u0627\u0632 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">vim \/etc\/sysconfig\/iptables<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0628\u0627\u0632\u0646\u0645\u0648\u062f\u0646 \u067e\u0648\u0631\u062a 80 \u062e\u0637 \u0632\u06cc\u0631 \u0631\u0627 \u0642\u0628\u0644 \u0627\u0632 LOG \u0627\u0646\u062a\u0647\u0627\u06cc\u06cc \u0648 \u062e\u0637 DROP \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 INPUT chain \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">-A INPUT -m state &#8211;state NEW -p tcp &#8211;dport 80 -j ACCEPT<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">service iptables restart<\/p>\n<\/blockquote>\n<h2 dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #3366ff;\"><strong>\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 nginx \u0631\u0648\u06cc \u062f\u0627\u06cc\u0631\u06a9\u062a \u0627\u062f\u0645\u06cc\u0646 ( Directadmin ) :<\/strong><\/span><\/h2>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0627\u06af\u0631 \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u062f\u0627\u06cc\u0631\u06a9\u062a \u0627\u062f\u0645\u06cc\u0646 \u0631\u0627 \u0646\u0635\u0628 \u0646\u0645\u0648\u062f\u0647 \u0627\u06cc\u062f \u0648 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u0632 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0627\u0646\u062c\u06cc\u0646 \u0627\u06cc\u06a9\u0633 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f\u060c \u067e\u0633 \u0627\u0632 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u06a9\u0646\u0633\u0648\u0644 \u0628\u0647 \u0645\u0633\u06cc\u0631 \u0632\u06cc\u0631 \u0645\u0631\u0627\u062c\u0639\u0647 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">cd \/usr\/local\/directadmin\/<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0645\u06cc \u0628\u0627\u06cc\u0633\u062a \u0646\u0633\u062e\u0647 2 custombuild \u062f\u0627\u06cc\u0631\u06a9\u062a \u0627\u062f\u0645\u06cc\u0646 \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u0644\u0628\u062a\u0647 \u0627\u0632 \u0622\u0646\u062c\u0627\u06cc\u06cc \u06a9\u0647 \u0646\u0633\u062e\u0647 \u067e\u0627\u06cc\u062f\u0627\u0631 \u0646\u0645\u06cc \u0628\u0627\u0634\u062f\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0645\u0634\u06a9\u0644\u0627\u062a\u06cc \u0631\u0627 \u0646\u06cc\u0632 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u062f\u0631 \u0635\u0648\u0631\u062a \u062a\u0645\u0627\u06cc\u0644 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">mv custombuild custombuild-01<br \/>\nwget http:\/\/files.directadmin.com\/services\/custombuild\/2.0\/custombuild.tar.gz<br \/>\ntar xvzf custombuild.tar.gz<br \/>\ncd custombuild<br \/>\n.\/build<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u062d\u0627\u0644 \u0628\u0627 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0648\u06cc\u0631\u0627\u06cc\u0634 custombuild \u0631\u0627 \u0645\u0644\u0627\u062d\u0638\u0647 \u0646\u0645\u0627\u0626\u06cc\u062f:<\/span><\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">vim options.conf<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u0646\u062a\u06cc\u062c\u0647 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0628\u0627\u0634\u062f:<\/span><\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">Custombuild optionscustombuild=2.0<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u062d\u0627\u0644 \u0645\u0642\u062f\u0627\u0631 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0627\u0632 \u0622\u067e\u0627\u0686\u0647 ( Aapche ) \u0628\u0647 nginx \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/span><\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">HTTP server. Possible values: apache, nginxwebserver=apache<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 php1_mode \u0631\u0627 \u0628\u0647 php-fpm \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/span><\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">php1_mode=php-fpm<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u062d\u0627\u0644 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u0626\u06cc\u062f:<\/span><\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">.\/build all -y<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0627\u062d\u062a\u0645\u0627\u0644 \u062f\u0627\u0631\u062f \u06a9\u0647 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0622\u067e\u062f\u06cc\u062a \u0644\u0627\u06cc\u0633\u0646\u0633 \u062f\u0627\u06cc\u0631\u06a9\u062a \u0627\u062f\u0645\u06cc\u0646 \u0648\u062c\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u06a9\u0647 \u062f\u0631 \u0635\u0648\u0631\u062a \u0646\u06cc\u0627\u0632 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0644\u06cc\u0646\u06a9 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/span><\/p>\n<p dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\">\u0628\u0627 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u0631\u0627\u062d\u0644 \u0628\u0647 \u0627\u062a\u0645\u0627\u0645 \u062e\u0648\u0627\u0647\u062f \u0631\u0633\u06cc\u062f:<\/span><\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">.\/build rewrite_confs<\/p>\n<\/blockquote>\n<p dir=\"rtl\" style=\"text-align: justify;\"><span style=\"color: #000080;\"><strong>\u062a\u0648\u062c\u0647 :<\/strong><\/span><\/p>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u062e\u0637\u0627 502 : \u0627\u06af\u0631 \u062e\u0637\u0627\u06cc &#8220;502 Bad Gateway&#8221; \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u06cc\u062f\u060c \u0627\u062d\u062a\u0645\u0627\u0644\u0627 \u0645\u0642\u062f\u0627\u0631 hostname \u0628\u062f\u0631\u0633\u062a\u06cc \u0648\u0627\u0631\u062f \u0646\u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0645\u06cc \u0628\u0627\u06cc\u0633\u062a \u0627\u0635\u0644\u0627\u062d \u06af\u0631\u062f\u062f.<\/p>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u062e\u0637\u0627\u06cc 503 : \u0627\u06af\u0631 \u0628\u0627 \u0627\u06cc\u0646 \u062e\u0637\u0627 \u0631\u0648\u0628\u0631\u0648 \u0634\u062f\u06cc\u062f\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0633\u0631\u0648\u0631 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u0626\u06cc\u062f:<\/p>\n<blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">chown webapps:nginx \/var\/www<\/p>\n<\/blockquote>\n<p dir=\"ltr\" style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u0646\u062c\u06cc\u0646 \u0627\u06cc\u06a9\u0633 \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0648\u0628 \u0633\u0631\u0648\u0631\u060c \u0631\u06cc\u0648\u0631\u0633 \u067e\u0631\u0627\u06a9\u0633\u06cc \u0633\u0631\u0648\u0631 ( reverse proxy server ) \u0648 \u0645\u06cc\u0644 \u067e\u0631\u0627\u06a9\u0633\u06cc \u0633\u0631\u0648\u0631 ( mail proxy server ) \u0646\u06cc\u0632 \u0645\u06cc \u0628\u0627\u0634\u062f \u06a9\u0647\u00a0 \u0628\u0635\u0648\u0631\u062a \u0645\u062a\u0646 \u0628\u0627\u0632 ( open source ) \u0627\u0631\u0627\u0626\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n","protected":false},"author":87,"featured_media":35642,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-4487","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learn-server"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/posts\/4487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/comments?post=4487"}],"version-history":[{"count":1,"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/posts\/4487\/revisions"}],"predecessor-version":[{"id":45479,"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/posts\/4487\/revisions\/45479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/media\/35642"}],"wp:attachment":[{"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/media?parent=4487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/categories?post=4487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/parspack.com\/blog\/wp-json\/wp\/v2\/tags?post=4487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}