Linux上快捷安装nginx整流程

1.确认gcc g++开发类库是否安装,默认已经安装

apt-get update
apt-get install build-essential
apt-get install libtool

2.安装PRCR库

cd /usr/local
apt-get install wget
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
tar -zxvf pcre-8.39.tar.gz
cd pcre-8.39
./configure
make
make install

3.安装zlib库

cd /usr/local
wget http://zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make
make install

4.安装openssl

cd /usr/local
wget https://www.openssl.org/source/openssl-1.0.1t.tar.gz
tar -zxvf openssl-1.0.1t.tar.gz

5.安装nginx

cd /usr/local
wget http://nginx.org/download/nginx-1.1.10.tar.gz
tar -zxvf nginx-1.1.10.tar.gz
cd nginx-1.1.10
./configure
make
make install

#### 如果出现报错
apt-get install openssl
apt-get install libssl-dev

6.nginx重启、关闭、启动

#启动
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

# 关闭
ps -ef|grep nginx
kill -f xxxxx

# 重启
/usr/local/nginx/sbin/nginx -s reload

# 检测配置是否正确
/usr/local/nginx/sbin/nginx -t

文章来源:www.rakbuluo.com/p77

原文链接:,转发请注明来源!

发表评论

  • 7 Responses to “Linux上快捷安装nginx整流程”
    • where to buy viagra online kxkxmf

      canadian pharmacies shipping usa <a href="http://edpharmacystore.com/">a total noob</a> cialis canadian pharmacy
      <a href=http://edpharmacystore.com/>click to find out more</a>

      回复
    • viagra substitute iplzuw

      canada online pharmacy <a href="http://edpharmacystore.com/">click this link here now</a> canadian pharmacy cialis
      <a href=http://edpharmacystore.com/>find</a>

      回复
    • cialis generic canada kuelvn

      cialis from canada pharmacy <a href=http://www.canada1drugstore.com/tadalafil/>5mg cialis</a> price viagra
      <a href="http://www.canada1drugstore.com/tadalafil/">order viagra from canada</a> alternative to viagra

      回复
    • mail order viagra csfhuq

      approved canadian pharmacies online <a href="http://45.79.134.238/forum/member.php?action=profile&uid=42064">online pharmacy without a prescription</a> buy pfizer viagra <a href=http://fluencyuniversity.com/members/perez11povlsen/activity/497914/>where to buy viagra online</a> viamedic .com
      cost of viagra in canada <a href="https://media.skyegrid.id/members/thorhaugemcgarry9/activity/36573/">buy medication online</a> viagra generic online <a href=http://idea.informer.com/users/begumkvist9/?what=personal>canadian pharmacy no prescription</a> best price cialis
      new viagra <a href="https://pattern-wiki.win/wiki/Heartburn_Advice_That_Anyone_Can_Use">medicine from canada</a> viagra.com canada <a href=http://bookmarketmaven.com/story8260343/top-tips-to-solve-any-hairy-situation>drug online</a> viagra cialis
      natural alternatives to viagra

      回复
    • buy cialis canada itlxjl

      viagra pharmacy <a href=http://www.canada1drugstore.com/tadalafil/>generic cialis in canada</a> ed drugs
      <a href="http://www.canada1drugstore.com/tadalafil/">discount rx drugs</a> buy medication online

      回复
    • qrdzdaqsdfkq

      kmdncjhtz online no prescription cialis <a href=https://gitlab.pagedmedia.org/washingtonmohamed99>cialis sale</a> purchase cialis online where to buy viagra without a prescription <a href="http://www.russtars.tv/user/BramsenBallard57/">get cialis online</a>
      cheap cialis from usa <a href=http://scoringcentral.mattiaswestlund.net/member.php?action=profile&uid=49182>discount generic cialis</a> buy cialis online without prescription cialis without prescription <a href="http://forum.mele.cn/user-65815.html">cialis for daily use online</a>

      回复
    • Stephenpeaky

      best over the counter viagra <a href=" http://sild100fast.com/# ">viagra</a> how much does viagra cost

      回复