ubuntu系统,下载nginx源码,
./configure --with-stream
make
make install安装
vi /usr/local/nginx/conf/nginx.conf
增加以下内容
stream {
# TCP代理配置
server {
listen 192.168.81.62:11434;
proxy_pass 127.0.0.1:11434;
}
}
ubuntu系统,下载nginx源码,
./configure --with-stream
make
make install安装
vi /usr/local/nginx/conf/nginx.conf
增加以下内容
stream {
# TCP代理配置
server {
listen 192.168.81.62:11434;
proxy_pass 127.0.0.1:11434;
}
}