当前位置: 首页>>技术问答>>正文


为什么Teamviewer会在后台运行?

,

问题描述

在Ubuntu 12.10上安装TeamViewer 8之后,我注意到了一个名为’teamviewerd’的正在运行的进程,更具体地说:

/opt/teamviewer8/tv_bin/teamviewerd -f
/opt/teamviewer8/tv_bin/wine/bin/wineserver

当我试图杀死它时它就是auto-reopens,我想知道为什么会这样。

提前致谢。

最佳解决办法

因为这是团队观察者的本质:它是建立重生的。

/opt/teamviewer8/tv_bin/script/teamviewerd.sysv可能对此负责。

要停止团队使用者:

sudo teamviewer --daemon stop 

它会显示……

initctl stop teamviewerd
teamviewerd stop/waiting

它消失了……

rinzwind@discworld:/opt/teamviewer8/tv_bin/script$ ps -ef|grep teamviewer
rinzwind 12712 12428  0 18:11 pts/0    00:00:00 grep --color=auto teamviewer

操作守护进程的命令:

teamviewer --daemon status        show current status of the TeamViewer daemon
teamviewer --daemon start         start TeamViewer daemon
teamviewer --daemon stop          stop  TeamViewer daemon
teamviewer --daemon restart       stop/start TeamViewer daemon
teamviewer --daemon disable       disable TeamViewer daemon - don't start daemon on system startup
teamviewer --daemon enable        enable TeamViewer daemon - start daemon on system startup (default)

关于评论:

来自teamviewer 9的帮助:

$teamviewer --help

 TeamViewer                      9.0.32150 

 teamviewer                      start TeamViewer user interface (if not running) 

 teamviewer --help               print this help screen 
 teamviewer --version            print version information 
 teamviewer --info               print version, status, id 
 teamviewer --ziplog             create a zip containing all teamviewer logs (useful when contacting support) 

 teamviewer --passwd [PASSWD]    set a password (useful when installing remote (ssh) 

 teamviewer --daemon status      show current status of the TeamViewer daemon 
 teamviewer --daemon start       start      TeamViewer daemon 
 teamviewer --daemon stop        stop       TeamViewer daemon 
 teamviewer --daemon restart     stop/start TeamViewer daemon 
 teamviewer --daemon disable     disable    TeamViewer daemon - don't start daemon on system startup 
 teamviewer --daemon enable      enable     TeamViewer daemon - start daemon on system startup (default) 

电视9中仍有选项。

次佳解决办法

如果您从.deb文件安装Teamviewer 10,上面推荐的--daemon stop将无法在Ubuntu 14.04 LTS(以及其他?)中使用。不知道为什么。

守护程序是’upstart’作业,因此它从/etc/init/teamviewerd.conf而不是/etc/init.d进行控制。

不幸的是,对我来说,initctl stop teamviewerdservice teamviewerd stop都会导致:

initctl: Unknown instance: 

teamviewerd.sysv安装在/opt中。所以,要阻止它,你需要做:

$ sudo /opt/teamviewer/tv_bin/script/teamviewerd.sysv stop

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/2074.html,未经允许,请勿转载。