Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.


安裝oracle數據時需要用到圖形界面安裝,當我們用root用戶登錄后切換到oracle用戶時運行./runInstaller
提示報錯: Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.

這是因為沒有賦予oracle運行圖形界面的權限,這時只要在root下運行xhost + 然后回車即可解決問題。
[root@oracle ~]# xhost +
access control disabled, clients can connect from any host
[root@oracle ~]#
[root@oracle ~]# su - oracle
 再運行./runInstaller就可以出安裝界面了。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM