【赛迪网-it技术报道】今天安装oracle时,在启动xhost服务时出现:
_x11transsocketinetconnect() can't get address for localhost:6001: name> > or service not known error: can't open display: localhost:1.0
解决方法:
1、看/etc/hosts中是否有127.0.0.1 localhost.localdomain localhost,没有则
配置主机名;
编辑配置文件:
/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost
192.2.3.38 gxnndb gxnndb.happyu.cn gxnndb
其中 192.2.3.38 为本机地址,gxnndb 为主机名
2、用oracle用户登录,设置 display 环境变量;
export display=your_ipaddress:0.0
注:你的_ipaddress 是a机器的ip地址
闽公网安备 35060202000074号