最近想试一下openresty的性能,所以准备安装测试下openresty。下边的折腾的记录。
openresty官方网站:http://openresty.org/cn/
yum install -y gcc-c++ pcre pcre-devel openssl openssl-devel zlib zlib-devel
任意目录均可
wget https://openresty.org/download/openresty-1.17.8.2.tar.gz
tar -zxvf openresty-1.17.8.2.tar.gz
cd openresty-1.17.8.2
首先要配置/usr/local/nginx目录
./configure --prefix=/usr/local/nginx
make
make install
[root@hecs-65b5 nginx]# pwd
/usr/local/nginx
[root@hecs-65b5 nginx]# ll
total 276
drwxr-xr-x 2 root root 4096 Apr 1 08:40 bin
-rw-r--r-- 1 root root 22924 Apr 1 08:40 COPYRIGHT
drwxr-xr-x 6 root root 4096 Apr 1 08:40 luajit
drwxr-xr-x 6 root root 4096 Apr 1 08:40 lualib
drwxr-xr-x 11 root root 4096 Apr 1 08:42 nginx
drwxr-xr-x 47 root root 4096 Apr 1 08:40 pod
-rw-r--r-- 1 root root 229856 Apr 1 08:40 resty.index
drwxr-xr-x 5 root root 4096 Apr 1 08:40 site
进入nginx目录
cd /usr/local/nginx/nginx/sbin
./nginx
查看是否启动
[root@hecs-65b5 nginx]# ps -ef|grep nginx
root 1742 1 0 08:42 ? 00:00:00 nginx: master process ./nginx
nobody 1743 1742 0 08:42 ? 00:00:00 nginx: worker process
root 1756 25171 0 08:46 pts/1 00:00:00 grep --color=auto nginx
腾云先锋(TDP,Tencent Cloud Developer Pioneer)是腾讯云GTS官方组建并运营的技术开发者群体。这里有最专业的开发者&客户,能与产品人员亲密接触,专有的问题&需求反馈渠道,有一群志同道合的兄弟姐妹。来加入属于我们开发者的社群吧!
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。