我通过命令行安装了teamviewer,并且设置了密码,当我想获取id来连接它时,却没有id
root@gpms:[/root/MyCode]teamviewer --info
TeamViewer 12.0.76279 (RPM)
teamviewerd status ● teamviewerd.service - TeamViewer remote control daemon
Loaded: loaded (/etc/systemd/system/teamviewerd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2017-04-24 13:29:37 HKT; 15s ago
Process: 1740 ExecStart=/opt/teamviewer/tv_bin/teamviewerd -d (code=exited, status=0/SUCCESS)
Main PID: 3265 (teamviewerd)
CGroup: /system.slice/teamviewerd.service
└─3265 /opt/teamviewer/tv_bin/teamviewerd -d
Apr 24 13:29:32 gpms systemd[1]: Starting TeamViewer remote control daemon...
Apr 24 13:29:36 gpms systemd[1]: PID file /var/run/teamviewerd.pid not readable (yet?) after start.
Apr 24 13:29:37 gpms systemd[1]: Started TeamViewer remote control daemon.
TeamViewer ID:
Try restarting the TeamViewer daemon (e.g. teamviewer --daemon restart)
并且 teamviewerd.pid 是可读的
root@gpms:[/root/MyCode]ls -l /var/run/teamviewerd.pid
-rw-r--r--. 1 root root 4 Apr 24 13:29 /var/run/teamviewerd.pid
操作系统:CentOS 7
我怎样才能获得该 ID?
答案1
当您没有网络连接时,Teamviewer 不会生成 ID。既然您没有提到这一点,我猜您有网络连接。我猜是其他东西阻止了 teamviewer 连接到互联网 - 可能性较小 - 防火墙,可能性较大 - SElinux。
有一些关于如何配置 SElinux 以允许 Teamviewer 正常工作的很好的文章,例如这个(它适用于 Fedora,但它也适用于 CentOS)。