ﺖﺳﺍ ﺱﺮﭘﺩﺭﻭ ﻥﺎﺑﺰﯿﻣ ﺖﺳﻭﺩ ﻦﯾﺮﺘﻬﺑ nginx ﺍﺮﭼ


.ﺖﺳﺍ ﺭﻭﺮﺳ ﺏﻭ ﺖﺑﻮﻧ ﺯﻭﺮﻣﺍ ﻪﻟﺎﻘﻣ ﺭﺩ ﻭ ﺖﺳﺍ ﺱﺮﭘﺩﺭﻭ ﯼﺍﺮﺑ ﯽﻫﺍﺭ PHP7 ﺍﺮﭼ ﻪﮐ ﻡﺩﺮﮐ ﯽﺳﺭﺮﺑ

؟ﺭﻮﻄﭼ ﯽﻌﻗﺍﻭ ﺭﻭﺮﺳ ﺏﻭ ﺩﺭﻮﻣ ﺭﺩ ﺎﻣﺍ ،ﺖﺳﺍ ﺱﺮﭘﺩﺭﻭ ﺩﺮﮑﻠﻤﻋ ﺭﺎﮐﺩﻮﺧ ﺩﻮﺒﻬﺑ ﯼﺍﺮﺑ ﯽﺑﻮﺧ ﻩﺍﺭ

!ﺖﺳﺍ ﺏﻮﺧ ﺭﺎﯿﺴﺑ nginx ﺍﺮﭼ ﻭ ﺖﺴﯿﭼ ﺎﻬﻧﺁ ﻦﯾﺮﺗ ﺏﻮﺒﺤﻣ ،ﺖﺴﯿﭼ ﺭﻭﺮﺳ ﺏﻭ :ﻢﻫﺩ ﺢﯿﺿﻮﺗ ﻢﻫﺍﻮﺧ

ﺭﻭﺮﺳ ﺏﻭ

.ﺪﻨﮐ ﯽﻣ ﻞﻤﻋ ،ﺪﻨﮐ ﯽﻣ ﺖﺳﺍﻮﺧﺭﺩ ﺍﺭ ﻥﺁ ﻪﮐ (ﺎﻤﺷ) ﯼﺮﺘﺸﻣ ﻭ (ﺍﻮﺘﺤﻣ ﻩﺪﻨﻫﺩ ﻪﺋﺍﺭﺍ) ﺭﻭﺮﺳ ﮏﯾ

.ﺪﻨﺘﺴﻫ nginx ﻪﺘﺒﻟﺍ ﻭ ﺖﻓﺎﺳﻭﺮﮑﯾﺎﻣ ﺯﺍ Apache، IIS ﺎﻫﺭﻭﺮﺳ ﺏﻭ ﻦﯾﺮﺗ

.ﺪﻨﮐ ﯽﻤﻧ ﺭﺎﮐ ﻥﺁ ﻡﺎﺠﻧﺍ ﯼﺍﺮﺑ ﯽﺟﺭﺎﺧ ﻩﺪﻧﺯﺍﺩﺮﭘ ﮏﯾ ﻪﺑ ﺯﺎﯿﻧ ﻞﯿﻟﺩ ﻪﺑ nginx ،ﺪﻨﮐ ﺖﯾﺮﯾﺪﻣ

!ﺖﺴﯿﻧ ﻩﺩﺎﺳ ﺭﺎﮑﻫﺎﺷ ﮏﯾ ،ﺪﻨﻫﺩ ﯽﻣ ﻞﯿﮑﺸﺗ ﺍﺭ ﻥﺎﻬﺟ ﮏﯿﻓﺍﺮﺗ ﻞﮐ ﺯﺍ ٪50 ﺎًﺒﯾﺮﻘﺗ ﻢﻫ ﺎﺑ ﺎﻬﻧﺁ

؟ﺖﺴﯿﭼ ﯽﭼﺎﭘﺁ

.ﺖﺳﺍ ﻩﺪﺷ ﻩﺪﻧﺎﺠﻨﮔ ﺰﯿﻧ ﻥﺎﻬﺟ ﺭﺩ ﻞﻨﭘ ﻝﺮﺘﻨﮐ ﻦﯾﺮﺗﺩﺮﺑﺭﺎﮐﺮﭘ ،cPanel ﺭﺩ ﯽﺘﺣ .ﺖﺳﺍ ﯽﻠﺻﺍ ﺏ

.ﺩﻮﺷ ﯼﺪﻨﺑﺮﮑﯿﭘ ﯽﺘﺣﺍﺭ ﻪﺑ ﺪﻧﺍﻮﺗ ﯽﻣ (ﺪﻨﮐ ﯽﻣ ﺭﺎﮐ ﻥﺁ ﯼﻭﺭ ﺯﻮﻨﻫ nginx ﻪﮐ ﯼﺰﯿﭼ) ﺪﻨﮐ ﯼﺮﯿ

.ﺪﻫﺩﯽﻣ ﻡﺎﺠﻧﺍ ﺩﺮﮑﻠﻤﻋ ﺖﻤﯿﻗ ﻪﺑ ﺍﺭ ﺭﺎﮐ ﻦﯾﺍ (ﺩﺭﺍﺩ ﺩﻮﺟﻭ ﺎﻣﺍ ﻪﺸ

.ﺪﻧﻮﺷﯽﻣ nginx ﻞﻣﺎﺷ ،ﺪﻧﺩﺮﮐﯽﻣ ﺭﺎﮐ ﯽﭼﺎﭘﺁ ﯼﻭﺭ ﻂﻘﻓ ﻼًﺒﻗ ﻪﮐ ﯼﺮﺘﺸﯿﺑ ﯼﺎﻫﺭﺍﺰﻓﺍ

؟ﺭﻮﻄﭼ Nginx ﺩﺭﻮﻣ ﺭﺩ

Nginx ﯼﻭﺭ ﺮﺑ ﺭﺎﮐ ﻪﺑ ﻉﻭﺮﺷ ﻒﯾﻮﺴﯿﺳ ﺭﻮﮕﯾﺍ ﻡﺎﻧ ﻪﺑ ﺲﯾﻮﻧ ﻪﻣﺎﻧﺮﺑ ﮏﯾ 2002 ﻝﺎﺳ ﺭﺩ .ﺪﯾﺁ ﯽ

.ﺪﻨﮐ ﺭﺎﮐ ﺮﺗﻊﯾﺮﺳ ﯽﻠﯿﺧ ﺖﺴﻧﺍﻮﺗﯽﻣ ،ﻦﯾﺍﺮﺑﺎﻨﺑ ﻭ ﺪﺷﯽﻤﻧ ﺩﻭﺪﺤﻣ ﺮﮔﺭﺎﮐ ﻥﺎﻤ

Nginx ﻊﯾﺮﺳ ﯼﺍﻮﺘﺤﻣ ﻪﺋﺍﺭﺍ ﺭﺩﻪﺑ ﺖﺒﺴﻧ ﺕﻻﺎﺼﺗﺍ ﺯﺍ ﯼﺮﺗﻻﺎﺑ ﺭﺎﯿﺴﺑ ﻢﺠﺣ ﻪﺑ ﺮﺗ Apache

.ﺖﺳﺍ ﻪﺘﻓﺎﯾ ﺩﻮﺒﻬﺑ ﺭﺎﯿﺴﺑ ﮎﺭﺍﺪﻣ ﻭ ﺩﺎﻨﺳﺍ ،ﺪﻨﻨﮐﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ nginx ﺯﺍ ﺩﺍﺮﻓﺍ ﺯﺍ ﯼﺮ

.ﺪﺷﺎﺑ ﻪﺘﺷﺍﺩ ﺖﻘﺑﺎﻄﻣ ﯽﭼﺎﭘﺁ ﯼﺮﯾﺬﭘﻑﺎﻄﻌﻧﺍ ﺎﺑ ﺎﺗ ﺩﺭﺍﺩ ﺯﺎﯿﻧ ﻥﺎﻣﺯ ﻪﺑ ﻥﺎﻨﭽﻤﻫ ﺎﻣﺍ ،

. .ﺪﺷﺎﺑ ﻪﺘﺷﺍﺩ Apache ﻪﺑ ﺖﺒﺴﻧ ﯼﺮﺗﻻﺎﺑ ﺯﺎﯿﺘﻣﺍ ﺮﻈﻧ ﺮﻫ ﺯﺍ ﻡﻭﺍﺪﻣ ﺭﻮﻃ ﻪﺑ ﺪﻧﺍﻮﺗ ﯽﻣ ﻪﮐ

؟ﺖﺳﺍ ﺱﺮﭘﺩﺭﻭ ﯽﻧﺎﺑﺰﯿﻣ ﯼﺍﺮﺑ ﺢﺟﺭﺍ ﺏﺎﺨﺘﻧﺍ Nginx ﺍﺮﭼ

.ﻢﻨﮐ ﻪﺻﻼﺧ ﺮﯾﺯ ﺖﺴﯿﻟ ﺭﺩ ﺍﺭ ﻦﯾﺍ ﻢﻨﮐ ﯽﻣ ﯽﻌﺳ ﻦﻣ .ﺖﺳﺍ ﯽﭼﺎﭘﺁ ﺯﺍ ﺮﺘﻬﺑ ﺐﺗﺍﺮﻣ ﻪﺑ ﯽﺳﺮﭘﺩﺭﻭ

ﻥﺎﺳﺁ ﺐﺼﻧ

Nginx ﺖﺳﺍ ﺯﺎﯿﻧ ﻥﺁ ﻥﺩﺮﮐ ﻝﺎﻌﻓ ﯼﺍﺮﺑ ﺲﮐﻮﻨﯿﻟ ﺭﺩ ﻂﺧ ﮏﯾ ﻂﻘﻓ ﻊﻗﺍﻮﻣ ﺮﺜﮐﺍ ﺭﺩ ﻭ ﺩﺭﺍﺩ ﺯﺎﯿﻧ

apt-get install nginx

yum install nginx

.ﺖﺳﺍ ﺕﺎﻤﯿﻈﻨﺗ ﺭﺩ ﻪﯿﻘﺑ .ﺪﺷﺎﺑ ﻝﺎﻌﻓ ﺲﯾﻭﺮﺳ ﮏﯾ ﻥﺍﻮﻨﻋ ﻪﺑ nginx ﺖﺳﺍ ﻡﺯﻻ ﻪﮐ ﯼﺰﯿﭼ ﻡﺎﻤﺗ

ﺪﻨﮐ ﺭﺎﮐ ﯼﺮﮕﯾﺩ ﺭﻭﺮﺳ ﺏﻭ ﺮﻫ ﺎﯾ ﯽﭼﺎﭘﺁ ﯼﺍﺮﺑ ﯽﺴﮐﻭﺮﭘ ﮏﯾ ﻥﺍﻮﻨﻋ ﻪﺑ ﺪﻧﺍﻮﺗ ﯽﻣ

Nginx ﯽﻣﻪﺑ ﯼﺍﺮﺟﺍ ﺎﺑ ﺪﻧﺍﻮﺗﺏﻭ ﯼﺪﻨﺑﺮﮑﯿﭘ ﺮﻫ ﯼﺍﺮﺑ ﺍﺭ ﯽﻧﺁ ﺩﺮﮑﻠﻤﻋ ،ﺩﺭﺍﺬﮕﺑ ﺮ

ﺪﻨﮐ ﺭﺎﮐ fastcgi ﺶﮐ ﯽﺘﺣ ﺎﯾ ﻥﺎﻬﻨﭘ ﻪﻈﻓﺎﺣ ﺎﺑ ﻢﯿﻘﺘﺴﻣ ﺭﻮﻃ ﻪﺑ ﺪﻧﺍﻮﺗ ﯽﻣ

Nginx ﺭﺩ ﻪﮑﻨﯾﺍ ﻞﯿﻟﺩ ﻪﺑ microcache ﺶﮐ ﮏﯾ ﺎﺑ ﺪﻧﺍﻮﺗ ﯽﻣ ﯽﺘﺣ ﻭ ﺖﺳﺍ ﯽﻟﺎﻋ ﺖﺳﺍ ﻩﺪﺷ ﻪﺘﺧ

ﺖﺳﺍ ﻊﯾﺮﺳ ﻩﺩﺎﻌﻟﺍ ﻕﻮﻓ ﺍﻮﺘﺤﻣ ﻪﺋﺍﺭﺍ ﯼﺍﺮﺑ

Nginx ﻪﺑ .ﺪﺸﺨﺑ ﺩﻮﺒﻬﺑ ﺍﺭ ﻥﺁ ﺩﺮﮑﻠﻤﻋ ﻭ ﺪﻨﮐ ﻝﺎﻌﻓ ﺍﺭ ﮏﯿﺗﺎﺘﺳﺍ ﯼﺍﻮﺘﺤﻣ ﺪﻨﻧﺎﻣ ﺎﻫ ﻞﯾﺎﻓ ﻦ

ﻥﺎﻣﺰﻤﻫ ﺕﻻﺎﺼﺗﺍ Apache ﺯﺍ ﺮﺘﺸﯿﺑ ﺮﺑﺍﺮﺑ 4 ﺎﺒﯾﺮﻘﺗ

:ﺖﺳﺍ ﺰﯿﭼ ﻭﺩ ﯼﺎﻨﻌﻣ ﻪﺑ ﻪﮐ ،ﺪﻨﮐ ﺵﺯﺍﺩﺮﭘ ﺍﺭ Apache ﻥﺎﻣﺰﻤﻫ ﺕﻻﺎﺼﺗﺍ ﻥﺍﺰﯿﻣ ﺮﺑﺍﺮﺑ ﺭﺎﻬﭼ ﺪ

  • ﺩﻮﺑ ﺪﻫﺍﻮﺧ ﺮﺘﻌﯾﺮﺳ ﯽﻠﮐ ﺭﻮﻃ ﻪﺑ ﺎﻤﺷ ﺖﯾﺎﺳ ﺏﻭ
  • .ﺖﺷﺍﺩ ﺪﯿﻫﺍﻮﺧ ﺯﺎﯿﻧ ﯽﭼﺎﭘﺁ ﻪﺑ ﺖﺒﺴﻧ ﯼﺮﺘﻤﮐ ﻊﺑﺎﻨﻣ ﻪﺑ ﺭﺎﮐ ﻦﯾﺍ ﻡﺎﺠﻧﺍ ﯼﺍﺮﺑ

.ﺩﺭﺍﺩ ﻩﺪﻬﻋ ﺮﺑ ﺍﺭ ﯼﺪﻌﺑ ﺖﯾﺰﻣ ﺖﯿﻟﻮﺌﺴﻣ ﻭ ﺖﺳﺍ nginx ﺭﻮﺤﻣ ﺩﺍﺪﯾﻭﺭ ﺖﯿﻫﺎﻣ ﻞﯿﻟﺩ ﻪﺑ ﻦﯾﺍ

ﻥﺯﻭ ﮏﺒﺳ ﺭﺎﯿﺴﺑ

Nginx ﺯﺍ ﻝﺎﺼﺗﺍ ﺖﺳﺍﻮﺧﺭﺩ ﺮﻫ ﺵﺯﺍﺩﺮﭘ ﯼﺍﺮﺑ ﻪﮐ ﺖﺳﺎﻨﻌﻣ ﻥﺍﺪﺑ ﻦﯾﺍ .ﺖﺳﺍ ﻥﺯﻭ ﮏﺒﺳ ﺭﺎﯿﺴﺑ ﻊﺑ

.ﺩﻮﺑ ﻩﺪﺸﻧ ﻪﺘﺧﺎﺳ ﺭﻮﺤﻣ ﺩﺍﺪﯾﻭﺭ ﺭﻭﺮﺳ ﺏﻭ ﮏﯾ ﻥﺍﻮﻨﻋ ﻪﺑ ﯽﭼﺎﭘﺁ ﺍﺮﯾﺯ ﺩﺭﻮﺧ ﺖﺴﮑﺷ ﯼﺪﺑ ﺯﺮﻃ ﻪ

ﺪﻫﺩ ﻡﺎﺠﻧﺍ ﺍﺭ Load Balance ﺪﻧﺍﻮﺗ ﯽﻣ

Nginx ﺪﻨﮐ ﯽﻣ ﻝﺁ ﻩﺪﯾﺍ ﺪﻨﺘﺴﻫ ﻥﺎﻣﺰﻤﻫ ﺕﻻﺎﺼﺗﺍ ﺯﺍ ﯽﯾﻻﺎﺑ ﺭﺎﯿﺴﺑ ﺭﺎﺑ ﯼﺍﺭﺍﺩ ﻪﮐ ﯽﯾﺎﻫ ﻩﮊﻭﺮ

؟ﺖﺳﺎﻨﻌﻣ ﻪﭼ ﻪﺑ ﻪﻤﻫ ﻦﯾﺍ

.ﺖﺳﺍ ﺩﺎﯾﺯ ﺎًﻌﻗﺍﻭ ،ﺪﻨﮐ ﻞﻤﻋ ﺮﺗﻊﯾﺮﺳ ،ﺪﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ nginx ﺯﺍ ﺎﻤﺷ ﺖﺳﺎﻫ ﻪﮑﻨﯾﺍ ﻝﺎﻤﺘ

.ﺖﺳﺍ ﻩﺪﺷ ﻩﺪﻧﺎﺠﻨﮔ ﻪﺘﺸﭘ ﺯﺍ ﯽﺸﺨﺑ ﺭﺩ nginx ،ﺪﺷﺎﺑ ﯽﺘﯿﻔﯿﮐ ﺎﺑ ﺲﯾﻭﺮﺳ ﺮﮔﺍ ﻪﮐ ﻢﻫﺩ ﻦﯿﻤﻀﺗ


تمامی حقوق محفوظ است. © Word-Press.Day • 2023-2024