标签:RoCE http dir 括号 ima cat mkdir test 创建
首先创建upstreamps -ef | grep nginx
cd /usr/local/openresty/nginx/conf/
vi nginx.conf
在最后添加
include vhosts/*.conf;
注:大括号里面
mkdir vhosts
cd vhosts/
vi nginx.conf
server {
listen 80;
server_name www.test.com;
location / {
proxy_pass http://www.test.com:8000;
}
}
/usr/local/openresty/nginx/sbin/nginx -t
/usr/local/openresty/nginx/sbin/nginx
vi /etc/hosts
192.168.195.128 www.test.com
标签:RoCE http dir 括号 ima cat mkdir test 创建
原文地址:http://blog.51cto.com/10158955/2286792