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

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
D
Docker
Vercel News
Vercel News
IT之家
IT之家
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
腾讯CDC
Google DeepMind News
Google DeepMind News
I
InfoQ
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
博客园 - Franky
The Cloudflare Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
T
Tenable Blog
P
Proofpoint News Feed
Recorded Future
Recorded Future
Security Latest
Security Latest
H
Hackread – Cybersecurity News, Data Breaches, AI and More
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 聂微东
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google Online Security Blog
Google Online Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
U
Unit 42
The Hacker News
The Hacker News
Martin Fowler
Martin Fowler
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
F
Full Disclosure
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
Project Zero
Project Zero

博客园 - 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的情况下进行的)