|
6000/tcp open X11能不能关?
源码:--------------------------------------------------------------------------------Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on localhost.localdomain (127.0.0.1):
(The 1597 ports scanned but not shown below are in state: closed)
Port State Service
80/tcp open http
443/tcp open https
631/tcp open ipp
6000/tcp open X11
Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds--------------------------------------------------------------------------------
我用nmap扫了一下本机有个6000/tcp open X11,应该是xwindow吧,是不是我在xwindow下开apache就有这个,哪果我用到 xwindow那这个6000的端口就不能关吧?
--------------------------------------------------------------------------------
由 Glue 在 07-30-2003 14:39 发表:
怎么关?
你开了Xwindow,它就会开端口6000
如果是服务器,用不到X,那就没有。
127.0.0.1是本地,防火墙也管不了的吧。
__________________
-_-
--------------------------------------------------------------------------------
由 Snoopy 在 07-30-2003 16:05 发表:
可以关,我关了,但占用了,2cpu和1点多内存,
不知道有没什么办法降低它的用量?
__________________
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
--------------------------------------------------------------------------------
由 Snoopy 在 07-30-2003 16:07 发表:
6000端口的监听,你需要在X启动脚本那里加一个 -nolisten tcp这个参数,它就不会继续监听了。
/etc/X11/gdm/gdm.conf
这个文件里,有这么一行
command=/usr/X11R6/bin/X
把它变成
command=/usr/X11R6/bin/X -nolisten tcp
__________________
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
--------------------------------------------------------------------------------
由 iceco 在 07-30-2003 20:32 发表:
它会不会用这个端口和外部连接?
__________________
我一腿踢死你!
--------------------------------------------------------------------------------
由 llcspring 在 07-30-2003 20:37 发表:
IBM上介绍了一个标准改法
#vi /usr/X11R6/bin/startx
#!/bin/sh
# $Xorg: startx.cpp,v 1.3 2000/08/17 19:54:29 cpqbld Exp $
#
# This is just a sample implementation of a slightly less primitive
# interface than xinit. It looks for user .xinitrc and .xserverrc
# files, then system xinitrc and xserverrc files, else lets xinit choose
# its default. The system xinitrc should probably do things like check
# for .Xresources files and merge them in, startup up a window manager,
# and pop a clock and serveral xterms.
#
# Site administrators are STRONGLY urged to write nicer versions.
#
# $XFree86: xc/programs/xinit/startx.cpp,v 3.16 2003/01/24 21:30:02 herrb Exp $
userclientrc=$HOME/.xinitrc
userserverrc=$HOME/.xserverrc
sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
ysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc
defaultclient=/usr/X11R6/bin/xterm
defaultserver=/usr/X11R6/bin/X
defaultclientargs=""
defaultserverargs=""
clientargs=""
serverargs="-nolisten tcp"
__________________
欢迎光临我的网站
http://ws953-45.jlu.edu.cn/
ftp://ws953-45.jlu.edu.cn/
提供Debian镜像
100多G的Linux|Unix数据等您下载 。
--------------------------------------------------------------------------------
由 Snoopy 在 07-30-2003 21:16 发表:
quote:
--------------------------------------------------------------------------------
最初由 iceco 发表
它会不会用这个端口和外部连接?
--------------------------------------------------------------------------------
都关掉了怎么还跟外部连啊??
__________________
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
--------------------------------------------------------------------------------
由 iceco 在 07-30-2003 21:22 发表:
我是说没关掉
__________________
我一腿踢死你!
--------------------------------------------------------------------------------
由 llcspring 在 07-30-2003 22:37 发表:
没关可以和外界联结
可以为远程的登陆用户服务。
__________________
欢迎光临我的网站
http://ws953-45.jlu.edu.cn/
ftp://ws953-45.jlu.edu.cn/
提供Debian镜像
100多G的Linux|Unix数据等您下载 。
--------------------------------------------------------------------------------
由 Snoopy 在 07-30-2003 22:42 发表:
你的关不掉意思是不是服务没关掉?你要关掉xfs?
关掉xfs就没界面了啊,
__________________
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
--------------------------------------------------------------------------------
由 iceco 在 07-30-2003 23:57 发表:
quote:
--------------------------------------------------------------------------------
最初由 llcspring 发表
没关可以和外界联结
可以为远程的登陆用户服务。
--------------------------------------------------------------------------------
是吗?难道像2000的3389?
ssh还是telnet?怎样连?难道telnet IP 6000
--------------------------------------------------------------------------------
由 iceco 在 07-31-2003 00:02 发表:
quote:
--------------------------------------------------------------------------------
最初由 pinksnoopy 发表
你的关?/span>
--
+
------------------------------------------
无奈中,抓紧写程序!!
+
[m[1;32m※ 来源:.放鹤亭 BBS bbs.cumt.edu.cn.[FROM: 211.70.212.200][m |
|