RHEL 6 未指定协议,无法打开显示

use*_*956 1 rhel6

当我尝试在 RHEL 6.3 中打开 nco_event 时得到这个

[netcool@noi bin64]$ nco_event&
[1] 19962
[netcool@noi bin64]$ No protocol specified
Fatal Error:  /opt/IBM/tivoli/netcool/omnibus/platform/linux2x86/bin64/nco_event: can't open display
Run Code Online (Sandbox Code Playgroud)

有什么想法可以解决这个问题吗?

Nu-*_*ONE 7

When executing the command xhost, you are probably receiving

No protocol specified
xhost: unable to open display ":0"
Run Code Online (Sandbox Code Playgroud)

Issue is your user is not allowed to access the X server.

You can use xhost to limit access for X server for security reasons.

Switch back to default user and execute xhost again. You should see something like

SI:localuser:nuwan
Run Code Online (Sandbox Code Playgroud)

解决办法是将oracle加入访问控制列表

xhost +SI:localuser:youruser
Run Code Online (Sandbox Code Playgroud)

现在切换回原始用户“youruser”。它现在应该可以工作了。