标签:down sse 下载 default lis 配置 error download 一个
yum install pcre-devel openssl-devel gcc curl
wget https://openresty.org/download/openresty-1.13.6.2.tar.gz
tar -xzvf openresty-1.13.6.2.tar.gz
cd openresty-1.13.6.2
./configure
make
sudo make install
sudo dnf install 'dnf-command(copr)'
sudo dnf copr enable openresty/openresty
# 安装相关依赖包
sudo apt install libpcre3-dev openssl libssl-dev ruby zlib1g zlib1g.dev
# 下载源码
wget https://openresty.org/download/openresty-1.13.6.2.tar.gz
# 解压、配置、编译、安装:
tar xzvf openresty-1.13.6.2.tar.gz
cd openresty-1.13.6.2/
./configure
make
sudo make install
创建以下目录
mkdir ~/work
cd ~/work
mkdir logs/ conf/
创建一个conf/nginx.conf
文件
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
server {
listen 8080;
location / {
default_type text/html;
content_by_lua '
ngx.say("<p>hello, world ! </p>")
';
}
}
}
标签:down sse 下载 default lis 配置 error download 一个
原文地址:https://www.cnblogs.com/zmf96/p/11219769.html