Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÏÂVNCSERVERµÄʹÓýéÉÜ

telnetÓësshÖ»ÊÇ»ùÓÚ×Ö·û½çÃæµÄÔ¶³Ì¿ØÖÆ£¬Èç¹ûÏëÒª¶Ôlinux·þÎñÆ÷ʱÐÐ×ÀÃæµÄÔ¶³Ì¿ØÖƵĻ°£¬ÎÒÃÇ¿ÉÒÔ°²
×°vnc-server·þÎñÀ´ÊµÏÖ
1. ²é¿´Vnc°²×°°æ±¾¡£
ps aux|grep Xvnc
2.ÉèÖÃVNC×ÀÃæ
2.1
ÎÒÃÇҪΪÓÐȨ¿ÉÒԵǼµÄÓû§ÉèÖõǼ×ÀÃ棬ÐÞ¸ÄÅäÖÃÎļþ/etc/sysconfig/vncservers £º
VNCSERVERS="2:username"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd"
-geometry 800x600 ×ÀÃæ·Ö±æÂÊ
-nolisten tcp ×èֹͨ¹ýTCPÁ¬½ÓVNC·þÎñÆ÷
-nohttpd ×èÖ¹»ùÓÚä¯ÀÀÆ÷µÄVNC¿Í»§¶ËÁ¬½Ó
2.2.Èç¹ûûÓз¢ÏÖÓû§Ä¿Â¼ÏÂÓÐ .vnc £¨Òþ²ØµÄ£©Ä¿Â¼£¬ÎÒÃÇÐèÒª¸øÓû§Ð½¨¸ÃĿ¼£¬ÏÈת»»Óû§½ÇÉ«£¬ÓÉ
rootÓû§±äΪusernameÓû§
  su username
  mkdir .vnc
  cd .vnc/
  vncpasswd
  XXX
2.3. service vncserver restart
3. web ·½Ê½Á¬È룬Ìæ´úVNCView
  http://ip:port .port as 5801,5802,.....
  ×ÀÃæºÅÊÇ1µÄ»°£¬ ¶Ë¿ÚºÅʹÓÃ5801
4. ɱËÀijVNC×ÀÃæ
  service vncserver stop
5.VNC·þÎñʹÓõĶ˿ںÅÓë×ÀÃæºÅÏà¹Ø£¬VNCʹÓÃTCP¶Ë¿Ú´Ó5900¿ªÊ¼£¬¶ÔÓ¦¹ØϵÈçÏÂ
×ÀÃæºÅΪ“1”  ---- ¶Ë¿ÚºÅΪ5901
×ÀÃæºÅΪ“2”  ---- ¶Ë¿ÚºÅΪ5902
×ÀÃæºÅΪ“3”  ---- ¶Ë¿ÚºÅΪ5903
……
»ùÓÚJavaµÄVNC¿Í»§³ÌÐòWeb·þÎñTCP¶Ë¿Ú´Ó5800¿ªÊ¼£¬Ò²ÊÇÓë×ÀÃæºÅÏà¹Ø£¬¶ÔÓ¦¹ØϵÈçÏÂ
×ÀÃæºÅΪ “1”  ---- ¶Ë¿ÚºÅΪ5801
×ÀÃæºÅΪ“2”  ---- ¶Ë¿ÚºÅΪ5802
×ÀÃæºÅΪ“3”  ---- ¶Ë¿ÚºÅΪ5803
»ùÓÚÉÏÃæµÄ½éÉÜ£¬Èç¹ûLinux¿ªÆôÁË·À»ðǽ¹¦ÄÜ£¬¾ÍÐèÒªÊÖ¹¤¿ªÆôÏàÓ¦µÄ¶Ë¿Ú£¬ÒÔ¿ªÆô×ÀÃæºÅΪ“1”ÏàÓ¦µÄ¶Ë
¿ÚΪÀý£¬ÃüÁîÈçÏÂ
[root@testdb ~]# iptables -I INPUT -p tcp --dport 5901 -j ACCEPT
[root@testdb ~]# iptables -I INPUT -p tcp --dport 5801 -j ACCEPT
6.ÉèÖÃVNC·þÎñËæϵͳÆô¶¯×Ô¶¯¼ÓÔØ
µÚÒ»ÖÖ·½·¨£ºÊ¹Óà “ntsysv”ÃüÁîÆô¶¯Í¼Ðλ¯·þÎñÅäÖóÌÐò£¬ÔÚvncserver·þÎñÇ°¼ÓÉÏÐǺţ¬µã»÷È·¶¨£¬ÅäÖÃ
Íê³É¡£
µÚ¶þÖÖ·½·¨£ºÊ¹ÓÓchkconfig”ÔÚÃüÁîÐÐģʽϽøÐвÙ×÷£¬ÃüÁîʹÓÃÈçÏ£¨Ô¤ÖªchkconfigÏêϸʹÓ÷½·¨Çë×Ô
Öúʽmanһϣ©
[root@testdb ~]# chkconfig vncserver on
[root@testdb ~]# chkconfig --list vncserver
vncserver       0:off&n


Ïà¹ØÎĵµ£º

±¾È˳£ÓõĻù´¡ linuxÃüÁî

  Ò» »ù±¾µÄÎļþ²Ù×÷¼°ÏµÍ³²Ù×÷
н¨Ä¿Â¼                              mkdir –Ŀ¼Ãû
½«¹¤×÷Ŀ¼¸Ä±äµ½Dir        ......

¡¾linux¡¿c++ ÄÚ´æ¹ÜÀí£¨Ò»£©

1. ÄÚ´æ·ÖÅ䷽ʽ
(1) ´Ó¾²Ì¬´æ´¢ÇøÓò·ÖÅä¡£ÄÚ´æÔÚ³ÌÐò±àÒëµÄʱºò¾ÍÒѾ­·ÖÅäºÃ£¬Õâ¿éÄÚ´æÔÚ³ÌÐòµÄÕû¸öÔËÐÐÆڼ䶼´æÔÚ¡£ÀýÈ磺ȫ¾Ö±äÁ¿£¬static±äÁ¿¡£
(2) ÔÚÕ»ÉÏ´´½¨¡£ÔÚÖ´Ðк¯Êýʱ£¬º¯ÊýÄÚ¾Ö²¿±äÁ¿µÄ´æ´¢µ¥Ôª¶¼¿ÉÒÔÔÚÕ»ÉÏ´´½¨£¬º¯ÊýÖ´ÐнáÊøµÄʱºòÕâЩ´æ´¢µ¥Ôª×Ô¶¯±»ÊÍ·Å¡£Õ»ÄÚ´æ·ÖÅäÔËËãÄÚÖÃÓÚ´¦ÀíÆ÷µÄÖ¸ÁÖУ¬Ð§Âʺܸ ......

ÅäÖÃLinux wget,yum ʹÓôúÀí·ÃÎÊÍøÂç

ÅäÖÃLinux wget,yum ʹÓôúÀí·ÃÎÊÍøÂç¡£
Èç¹ûÄãµÄlinuxÖ÷»úÐèҪͨ¹ý´úÀí·þÎñÆ÷²ÅÄÜ·ÃÎÊÍⲿÍøÂç¡£¿ÉÒÔͨ¹ýÈçÏ·½Ê½ÊµÏÖ¡£
1.wget
ÐèÒªÔÚµ±Ç°Óû§µÄĿ¼Ï´´½¨Ò»¸ö".wgetrc"Îļþ
[root@linux ~]#vi .wgetrc
http-proxy = 10.1.18.34:3128
ftp-proxy = 10.1.18.34:3128
·Ö±ð±íʾhttpµÄ´úÀí·þÎñÆ÷ºÍftpµÄ´úÀí·þÎñÆ÷¡£Èç ......

linux µÄºÃ°ïÊÖ yum

Ò». yumÊÇʲô
yum = Yellow dog Updater, Modified
Ö÷Òª¹¦ÄÜÊǸü·½±ãµÄÌí¼Ó/ɾ³ý/¸üÐÂRPM°ü.
ËüÄÜ×Ô¶¯½â¾ö°üµÄÒÐÀµÐÔÎÊÌâ.
ËüÄܱãÓÚ¹ÜÀí´óÁ¿ÏµÍ³µÄ¸üÐÂÎÊÌâ
¶þ. yumÌصã
*¿ÉÒÔͬʱÅäÖöà¸ö×ÊÔ´¿â(Repository)
*¼ò½àµÄÅäÖÃÎļþ(/etc/yum.conf
*×Ô¶¯½â¾öÔö¼Ó»òɾ³ýrpm°üʱÓöµ½µÄÒÐÀµÐÔÎÊÌâ
*ʹÓ÷½±ã
*± ......

(ת)LINUX ÐźŻúÖÆ¡¾ÁÐ±í¡¿

Ðźű¾ÖÊ
ÐźÅÊÇÔÚÈí¼þ²ã´ÎÉ϶ÔÖжϻúÖƵÄÒ»ÖÖÄ£Ä⣬ÔÚÔ­ÀíÉÏ£¬Ò»¸ö½ø³ÌÊÕµ½Ò»¸öÐźÅÓë´¦ÀíÆ÷ÊÕµ½Ò»¸öÖжÏÇëÇó¿ÉÒÔ˵ÊÇÒ»ÑùµÄ¡£ÐźÅÊÇÒì²½µÄ£¬Ò»¸ö½ø³Ì²»±Øͨ¹ýÈκβÙ×÷À´µÈ´ýÐźŵĵ½´ï£¬ÊÂʵÉÏ£¬½ø³ÌÒ²²»ÖªµÀÐźŵ½µ×ʲôʱºòµ½´ï¡£
ÐźÅÊǽø³Ì¼äͨÐÅ»úÖÆÖÐΨһµÄÒ첽ͨÐÅ»úÖÆ£¬¿ÉÒÔ¿´×÷ÊÇÒ첽֪ͨ£¬Í¨Öª½ÓÊÕÐźŵĽø³Ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ