惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Engineering at Meta
Engineering at Meta
T
Tenable Blog
C
Cisco Blogs
T
The Blog of Author Tim Ferriss
NISL@THU
NISL@THU
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
P
Privacy & Cybersecurity Law Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Secure Thoughts
N
News and Events Feed by Topic
Google DeepMind News
Google DeepMind News
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
H
Hacker News: Front Page
I
InfoQ
L
LangChain Blog
Security Latest
Security Latest
The Cloudflare Blog
Forbes - Security
Forbes - Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Stack Overflow Blog
Stack Overflow Blog
TaoSecurity Blog
TaoSecurity Blog
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
Scott Helme
Scott Helme
爱范儿
爱范儿
A
Arctic Wolf
F
Full Disclosure
酷 壳 – CoolShell
酷 壳 – CoolShell
Schneier on Security
Schneier on Security
N
News and Events Feed by Topic
C
CXSECURITY Database RSS Feed - CXSecurity.com
L
LINUX DO - 最新话题
V2EX - 技术
V2EX - 技术
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
Application and Cybersecurity Blog
Application and Cybersecurity Blog

博客园 - 微雨杏花村

CentOS firewalld 防火墙操作 CentOS 安装 dotnetcore CentOS7防火墙设置--iptables Win10下Hyper-V设置网络连接 亲测Google开源JPEG图片压缩算法,可将JPEG文件缩小%35 android 术语 一些比较好用的网站整站下载工具 ASP.NET Page Life Cycle 获取网页URL地址及参数等的两种方法(js和C#) SQL跨数据库读取数据的方法 .net 注册和删除Windows服务 IIS7 下部署 MVC的注意事项 下载的四种方法 生成网站页面的截图 windows 下andriod 开发环境的搭建 无法上网,无线网络总是受限制或无连接 bcp命令详解-转载 searcherinder.exe .net 生成静态页
CentOS7.0 安装 Nginx
微雨杏花村 · 2017-05-16 · via 博客园 - 微雨杏花村

记录下,方便以后查阅。

1.安装依赖库

yum install gcc-c++ 
yum install pcre pcre-devel 
yum install zlib zlib-devel 
yum install openssl openssl--devel

2.下载、安装nginx

首先进入/usr/local目录

首先进入/usr/local目录
从官网下载最新版的nginx
wget http://nginx.org/download/nginx-1.12.0.tar.gz 
解压nginx压缩包
tar -zxvf nginx-1.12.0.tar.gz 
会产生一个nginx-1.12.0 目录,这时进入nginx-1.12.0目录
cd nginx-1.12.0
接下来安装,使用--prefix参数指定nginx安装的目录,make、make install安装
./configure --prefix=/usr/local/nginx 
make 
make install

3.启动 nginx

#启动:
/usr/local/nginx/sbin/nginx 

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


#查询nginx主进程号 
ps -ef | grep nginx
#停止进程 
kill -QUIT 主进程号 
#快速停止 
kill -TERM 主进程号 
#强制停止 
pkill -9 nginx

参考网址:http://www.cnblogs.com/yushuo/p/6737420.html

http://www.cnblogs.com/xxx91hx/p/4245901.html