歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> Linux操作系統下Xmanager工具登錄配置

Linux操作系統下Xmanager工具登錄配置

日期:2017/3/2 16:48:11   编辑:Linux服務器

1. [root@localhost ~]# cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd

2. [root@localhost ~]# vi /etc/init.d/httpd

3. 在第二行加入(必須,否則無法加入)

# chkconfig: 2345 85 15

# description: httpd is web server(此處為描述)。

說明:2345表示在2345這四種啟動級別裡面加載這個服務,85表示啟動(開機時)順序號,15表示關閉(關機時)順序號。

4. [root@localhost ~]# chkconfig -add httpd

5. [root@localhost ~]# chkconfig ——level 35 httpd on

修改 /etc/X11/xdm/Xaccess,將下面的行:

#* # any host can get a login window

改為:

* # any host can get a login window

修改/etc/X11/gdm/gdm.conf,找到下面的信息:或Enable=false

修改為:或Enable=true

另外,去掉#Port=177前面的注釋

修改/etc/inittab,將

id:3:initdefault:

修改為:

id:5:initdefault:

並將最後一行改為:

確保/etc/X11/xdm/Xservers的屬性為444,/etc/X11/xdm/Xsetup_0的屬性為755(一般系統默認就是這個了)

# ls -l /etc/X11/xdm/Xservers

-r——r——r—— 1 root root 487 Jul 12 2006 /etc/X11/xdm/Xservers

# ls -l /etc/X11/xdm/Xsetup_0

-rwxr-xr-x 1 root root 935 Apr 21 2006 /etc/X11/xdm/Xsetup_0

最後,重啟一下服務器,再使用xbrowser登錄就OK了

Copyright © Linux教程網 All Rights Reserved