Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect Fail 连接agent失败的常见原因 #10

Open
yuzd opened this issue Mar 19, 2019 · 4 comments
Open

Connect Fail 连接agent失败的常见原因 #10

yuzd opened this issue Mar 19, 2019 · 4 comments
Labels
good first issue Good for newcomers

Comments

@yuzd
Copy link
Owner

yuzd commented Mar 19, 2019

如下图:
image

1.1 agent是否启动成功

进入windows服务管理器查看下 agent的服务是否运行中

image

如果没有启动成功,可能端口号冲突了,建议agent的端口配置成一个不常用的端口号

1.2 如果agent服务运行中 确定下在Host 和 Token是否填写正确

这里强调一下 Host 填写的是如下格式 192.168.0.0.1:8888
这个192.168.0.0.1 是 agent所在服务器的ip地址
8888 是agent的配置文件中配置的端口号
Token是agent的配置文件中配置的Token

1.3 确认是否端口号开通了

比如阿里云服务器就需要在阿里云配置页里面开通端口的对外开放才行

使用agent服务安装工作测试在服务器是否能连接agent成功

image

点击 本机测试连接agent按钮
image

image

也可以手动在服务器的浏览器输入如下地址

http://ip:port/publish?Token=xxx
ip替换成你服务器的ip
port替换成你agent配置的port
token你替换成agent配置的token
如果访问内容是true说明agent是部署成功的。
问题出在了外网访问不到!可以查查是不是防火墙拦住了或者策略限制了等!

1.4确认是否走了代理 关闭代理在试试

@ShaolongGao
Copy link

并没有出现这个服务,好奇怪

@yuzd
Copy link
Owner Author

yuzd commented Mar 19, 2019

@ShaolongGao 加群488312978 我看下

@rebelboy
Copy link

System.IO.FileNotFoundException: 未能加载文件或程序集“AntDeployAgentWindows, Version=3.2.0.0, Culture=neutral,

@yuzd
Copy link
Owner Author

yuzd commented Mar 21, 2019

@rebelboy 抱歉 刚提交漏了一个dll 补上了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants