![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx
STC灬漠然
这个作者很懒,什么都没留下…
展开
-
Nginx代理配置
1、进入nginx/conf目录下,编辑nginx.confserver { listen 8080;#监听的端口号 server_name localhost; #监听地址 location / { # 斜杠(/)代表根目录 # root html; #代表html路径 proxy_pass http://127.0.0.1:1001; //转发地址 index index.html index.htm; }}2、以上代码的实现效果是:如果访问http://localh..原创 2022-01-10 21:34:23 · 21823 阅读 · 0 评论 -
Linux下安装Nginx
备注:在安装nginx前首先要确认系统中安装了gcc、pcre-devel、zlib-devel、openssl-devel。如果没安装,需要安装一下yum -y install gcc pcre-devel zlib-devel openssl openssl-devel一、yum源安装# 执行如下命令进行yum安装nginxyum install nginx# 查看nginx版本nginx -v# 查看编译参数nginx -V# 查看安装目录rpm -ql n..原创 2022-01-05 23:17:41 · 177 阅读 · 0 评论