linuxÔ¶³ÌͼÐνçÃæ·ÃÎÊ
СµÜ×î½üÔÚѧlinux£¬ÔÚVMÉÏ×°µÄrhel 4 £¬Ô¶³ÌͼÐηÃÎÊÅäºÃÁË£¬ÓõÄxming.
/etc/inittabÅäÖÃÈçÏÂ
id:5:initdefault:
# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon
rhel4»ù±¾²»ÓøÄÕâÀï¾Í¿ÉÒÔÔ¶³ÌÁ¬½ÓÉÏ¡£
ÓÃÔ¶³ÌͼÐηÃÎʱØÐërunlevelΪ5 Âð£¿
ÏëÇë½ÌÄܲ»Äܳõʼ»¯Ä¬ÈÏʹÓÃÎı¾½çÃæÆô¶¯£¬È»ºóÒ²ÄÜÓÃxming½øÐÐÔ¶³ÌͼÐνçÃæ·ÃÎÊ£¬¾ÍÏñaixϵͳÄÇÑù£¿
Ô¶³ÌÎı¾µÇ¼¿ÉÒÔʹÓà telnet ssh µÈ¹¤¾ß£¬
1. Îı¾½çÃæÓÃputty·ÃÎÊ¡£
2. Ô¶³ÌͼÐνçÃæÓÃVNC.
²»ÊÇÁ¬½ÓµÄÎÊÌâ
runlevelΪ5ʱ£¬Æô¶¯ºóĬÈÏÊÇͼÐνçÃæµÄ¡£
ÎÒÏëÈÃlinuxÆô¶¯ÊÇÎı¾½çÃ棬Ҳ¾ÍÊÇrunlevelΪ3,ÕâÑùÅäÖõĻ°£¬²»ÄÜʹÓÃÓÃÔ¶³ÌͼÐνçÃæ·ÃÎÊ¡£
ÎÒÏëÖªµÀÔõôÅäÖÿÉÒÔÈÃlinux±¾»úÆô¶¯ÔËÐÐÊÇÎı¾µÄ½çÃ棬¶øÎÒÓÖ¿ÉÒÔÔÚÔ¶³ÌʹÓÃͼÐνçÃæÀ´·ÃÎÊ
ʹÓÃVNCʱ£¬Ö÷»ú¿ÉÒÔÊÇ×Ö·û½çÃæµÄÂð£¿
xdmcp²»ÐУ¿
debianϵÁУ¬¶¼ÓÐ×Ô´øÔ¶³ÌµÄ¹¤¾ß£¬µ«ÊDz
Ïà¹ØÎÊ´ð£º
ÎÒÄ¿Ç°ÔÚ±¾µØµÄlinuxÉÏдÁËÒ»¸öswingµÄ½çÃ棬Ïëͨ¹ýÕâ¸ö½çÃæÀ´¿ØÖÆÆäËüµçÄÔµÄlinuxÖØÆô¡£
ÎÒÖªµÀÓÃRuntime.getRuntime().exec("shutdown -r");¿ÉÒÔ¿ØÖƱ¾»úLinuxÖØÆô£¬µ«ÊÇÔõô¿ØÖÆÔ¶³ÌµÄlinuxÖØÆôÄØ£¿ ......
СµÜ×î½üÐèÒªÒ»¸öÓÃsocket»ñÈ¡htmlÎĵµµÄ´úÂ룬µ«ÊÇÀÏÊDz»ÄÜ»ñÈ¡ÍêÕûµÄhtmlÔ´Âë¡£ÔÒò²»Ã÷£¬Íû¸ßÊÖÖ¸µã£¡
C/C++ code:
char *Http_GET(char *host,int port,char *data) //·¢ËÍGETÇëÇó
{
char response[2 ......
ÎÒÃÇÁ¥ÊôÖпÆÔº¼ÆËãËùÍøÂçÖصãʵÑéÊÒ(http://www.ict.ac.cn/survey/channel/detail443.asp)»ù´¡ÉèÊ©¿ÎÌâ×é.
ÏÖÒòÏîÄ¿ºÍÒµÎñÍØÕ¹µÄÐèÒª,ÌØÐèÒªÕÐƸÓëÏîÄ¿Ïà¹ØµÄÍøÂçÓ¦Óù¤³Ìʦ1-2Ãû¡£
¾ßÌåÒªÇóÈçÏ¡£ÓÐÒâÕß ......
while(1)
{
time_t now;
time(&now);
struct tm* pt=localtime(&now);
cout < < "µ±Ç°Ê±¼ä" < < pt->t ......
Ó¦ÓÃϵͳÊÇ°²×°ÔÚ /opt Ŀ¼Ï£¬/opt Ŀ¼ÊÇÊôÓÚ¸ùĿ¼ / ϵġ£ÁíÍâÒ»¸öÎļþϵͳµÄ¹ÒÔصãÊÇÔÚ/aaaĿ¼Ï£¬¿É·ñ½«/optĿ¼ÏµÄËùÓÐÎļþcopyµ½/aaaĿ¼Ï£¬umount ÔÚ/aaaĿ¼ÏµĹÒÔص㣬½«/aaa¸ÄÃû/optĿ¼£¬ÔÙ½«ÔÀ ......