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

推荐订阅源

N
News and Events Feed by Topic
D
Docker
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
F
Full Disclosure
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
L
LangChain Blog
H
Help Net Security
B
Blog
T
Tailwind CSS Blog
V
V2EX
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
Recent Announcements
Recent Announcements
aimingoo的专栏
aimingoo的专栏
美团技术团队
A
About on SuperTechFans
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
I
InfoQ
Project Zero
Project Zero
I
Intezer
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Threat Research - Cisco Blogs
Last Week in AI
Last Week in AI
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AWS News Blog
AWS News Blog
Spread Privacy
Spread Privacy
S
Securelist
Recorded Future
Recorded Future
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园 - 叶小钗
S
Security Affairs
Blog — PlanetScale
Blog — PlanetScale
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
The Hacker News
The Hacker News

博客园 - s3

RC4 加密算法asp版 汇编指令速查(转) C#实现VB中的asc和chr函数,字符(含中文)转ASCII 飘零网络验证-商业版3和金盾版1.5-研究中 virtualbox安装mac os x雪豹 最新的IP数据库备份 安装.net framework 4.0出错 “不信任的操作” ubuntu11.10安装redmine1.3 Cosign安装-iis过滤模块介绍 fedora16安装mysql fedora16安装slickedit (转)SlickEdit的备份功能 (转)Slickedit的版本控制 (转)SlickEdit的按需显示 ubuntu11.10下使用slickedit16编译nginx(一) FreeBSD8.2安装GNOME(转) FreeBSD8.2安装(转) FreeBSD安装时的参考文章 Loong SSO安装部署
Fedora安装openresty
s3 · 2012-01-22 · via 博客园 - s3

安装参考

openresty.org   

安装依赖库
yum install readline-devel pcre-devel openssl-devel

 解压

tar xzvf ngx_openresty-VERSION.tar.gz

配置

./configure --prefix=/opt/openresty --with-libdrizzle=/usr/local --with-http_drizzle_module --with-luajit --with-http_iconv_module -j2 --with-http_postgres_module

 然后就是make和make install

升级openresty

下载最新的openresty包

tar\configure\make\make install.在安装前需要将运行的nginx进程kill

将nginx的路径加入到环境变量中

PATH=/usr/local/openresty/nginx/sbin:$PATH export PATH

这个好像是在当前登录会话中起作用,退出就失效了,好像有个办法能让一直在环境变量中,再试

开机自动运行nginx

好像是在/etc/rc.d/rc.local中加入nginx启动的脚本就行了,回头试下

至于nginx的安装路径,配置文件路径,日志路径等,都是在./configure中指定的,在make install后,命令行输出里也有详细内容。

nginx版本查看,nginx -v

nginx详细配置参数查看  nginx -V

验证环境变量中是否存在nginx的路径等,可以通过export命令

验证nginx是否启动可以通过curl http://localhost:8080  (我这个地址是openresyt官方默认的)

或者用htop工具查看进程里是否有nginx。

本文章,只是个人在熟悉过程中的笔记,方便日后回顾使用。也许也会对不熟悉linux的人员参考(本人是没用过linux的情况下进行的)