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

agent 里可以用这个插件吗?? #36

Closed
tansuozhe123 opened this issue May 22, 2019 · 4 comments
Closed

agent 里可以用这个插件吗?? #36

tansuozhe123 opened this issue May 22, 2019 · 4 comments

Comments

@tansuozhe123
Copy link

No description provided.

@tansuozhe123
Copy link
Author

需要配置什么参数吗??

@tansuozhe123
Copy link
Author

config.mongo = {
	client: {
		host: mongo_server_ip,
		port: '27017',
		name: 'example',
		user: 'gitxxxx',
		password: '123456',
		options: {
			useNewUrlParser: true
		},
	}
};

这样配置,可以直接在agent通过agent.mongo直接使用吗?还是需要通过其他方式调用??

@brickyang
Copy link
Owner

不好意思,只能通过 app 操作数据库连接实例。我看了下 agent 中好像是不能访问到 app,那么就不能使用插件。

p.s. 在 agent 中操作数据库是不建议的。

@tansuozhe123
Copy link
Author

ok,非常感谢。

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

No branches or pull requests

2 participants