解决打开firefox 报错Error: GDK_BACKEND does not match available displays

[root@svr7 ~]# firefox 192.168.4.7
Error: GDK_BACKEND does not match available displays
 

检测httpd服务是否开启

[root@svr7 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: active (running) since 一 2018-10-29 09:14:45 CST; 2h 12min ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 2383 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
 Main PID: 2387 (httpd)
   Status: "Total requests: 6; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/httpd.service
           ├─2387 /usr/sbin/httpd -DFOREGROUND
           ├─2388 /usr/sbin/httpd -DFOREGROUND
           ├─2389 /usr/sbin/httpd -DFOREGROUND
           ├─2390 /usr/sbin/httpd -DFOREGROUND
           ├─2391 /usr/sbin/httpd -DFOREGROUND
           ├─2392 /usr/sbin/httpd -DFOREGROUND
           └─2443 /usr/sbin/httpd -DFOREGROUND


阿帕奇服务已经打开,远程的时候可能是图形界面未开 (远程是未加-X选项)

[root@svr7 ~]# exit
登出
Connection to 192.168.4.7 closed.


[root@room9pc01 ~]# ssh -X 192.168.4.7
[email protected]'s password: 
Last login: Mon Oct 29 11:24:50 2018 from 192.168.4.254
[root@svr7 ~]# firefox 192.168.4.7        ================> 可以正常访问,不在报错。
 

 

你可能感兴趣的:(linux,基础)