-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(openresty): add openresty install
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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的进程号} | ||
``` |