摘要: 微服务之间相互调用采用域名,可以改本地hosts文件来做域名解析,并必须用nginx配合域名做反向代理 hosts: /etc/hosts 宝塔nginx配置文件的路径: nginx.conf文件路径:/www/server/nginx/conf/nginx.conf 多域名Nginx配置文件:/w 阅读全文
posted @ 2021-10-25 16:57 theseal 阅读(454) 评论(0) 推荐(0)
摘要: 先说结论!!! nginx做反向代理的时候在location里面添加proxy_set_header location /xxx/ { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_he 阅读全文
posted @ 2021-10-25 16:43 theseal 阅读(1016) 评论(0) 推荐(0)
摘要: 先说结论!!! 命令:dpkg-reconfigure tzdata 步骤:会出一个选择时区的界面(第一次看见linux服务器有这么好看的界面的——有颜色的界面),跟着一步步选就可以了 其他:重启服务器、重启服务端程序就可以了 验证方法!! 命令:data -R 结果:Sun, 11 Jan 201 阅读全文
posted @ 2021-10-25 16:10 theseal 阅读(323) 评论(0) 推荐(0)