标签:tab oda localhost table hello file github redirect 执行
nginx 安装与卸载
进入 http://nginx.org/en/download.html
下载自己想要的版本,我选择的stable版本
tar -zxvf nginx.tar.gz
cd nginx
./configure
make
make install # 如果报错 使用 sudo make install
upstream hello.com {
server 127.0.0.1:8084 weight=1;
server 127.0.0.1:8084 weight=1;
}
server {
location / {
proxy_pass http://hello.com;
proxy_redirect default;
}
}
接下来访问 http://localhost:8080/hello
来测试
sudo ./nginx -c /usr/local/nginx/conf/nginx.conf
标签:tab oda localhost table hello file github redirect 执行
原文地址:https://www.cnblogs.com/Draymonder/p/11901550.html