无题

配置dns

Dnsmasq 和 resolv.conf 是什么关系?

resolv.conf 指定本机的dns?有先后优先级顺序

发出网络请求后首先会根据resolv.conf的配置去访问对应服务器

dnsmasq配置文件中由选项可以控制是否使用resolv.conf
# If you don't want dnsmasq to read /etc/resolv.conf or any other
# file, getting its servers from this file instead (see below), then
# uncomment this.
#no-resolv

/etc/dnsmasq.conf 里面配置了各种hosts
在这个里头把courseware.aixuexi.com配一下
然后重启dns的方法 systemctl restart dnsmasq

 

docker项目想要进入到容器去查看日志或者apollo拉取下来的配置,可以使用命令:docker exec -it Hulk_alitest2 bash   Hulk_alitest2是你的项目启动用的名字
docker exec -it manage-web_alitest2 bash 进入到docker的虚拟主机
/usr/local/tomcat7 文件路径 find /usr/local/tomcat7 -name *.properties
查找到配置文件路径

nginx添加路径配置,location中添加一条 /xxxx

posted @ 2019-12-26 15:57  xiaojinniu425  阅读(131)  评论(0编辑  收藏  举报