Skip to content

Commit

Permalink
feat(openresty): add openresty install
Browse files Browse the repository at this point in the history
  • Loading branch information
miaoyc666 committed Oct 8, 2024
1 parent 7fc84bf commit efe512c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Nginx/install-openresty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
编译安装openresty
=

```bash
# 更新系统包
sudo apt update
sudo apt upgrade -y

# 安装依赖
sudo apt install -y curl build-essential libpcre3-dev libssl-dev zlib1g-dev

# 下载openresty,略
# curl -LO https://openresty.org/download/openresty-1.19.3.1.tar.gz

# install
tar -xzvf openresty-1.19.3.1.tar.gz
cd openresty-1.19.3.1
./configure
gmake
sudo gmake install
echo 'export PATH=$PATH:/usr/local/openresty/bin' >> ~/.bashrc
source ~/.bashrc

# check
openresty -v

# run
openresty

# kill
kill -9 {openresty的进程号}
```

0 comments on commit efe512c

Please sign in to comment.