ÓйØlinux°²×°½Å±¾kickstartµÄ±àд
ÎÒÖ®Ç°ÖÆ×÷µÄlinux×Ô¶¯°²×°isoÒѾ³É¹¦ÁË£¬ÏÖÔÚÏë¶ÔÆä½øÐÐһЩ¶¨ÖÆÐ޸쬱ÈÈ磬¸ü¸ÄgrubͼƬµÈ¡£ ÎÒÔÚks.cfgµÄ%post¶ÎÀïÃæÊÇÕâÑùдµÄ£º %post --nochroot # Move the contents of the tar into their new locations cp -fRp /config/boot/grub/splash.xpm.gz /mnt/sysimage/boot/grub/ cp -fRp /config/etc/rc.d/init.d/network /mnt/sysimage/etc/rc.d/init.d/ cp -fRp /config/etc/issue /mnt/sysimage/etc/ cp -fRp /config/etc/issue.net /mnt/sysimage/etc/ cp -fRp /config/etc/motd /mnt/sysimage/etc/ cp -fRp /config/etc/redhat-release /mnt/sysimage/etc/ cp -fRp /config/etc/resolv.conf /mnt/sysimage/etc/ %post /sbin/chkconfig --level 345 httpd on /sbin/chkconfig --level 345 mysqld on /sbin/chkconfig --level 345 bluetooth off /sbin/chkconfig --level 345 sendmail off /sbin/chkconfig --level 345 finger off /sbin/chkconfig --level 345 lpd off ¶øÎÒisoÀïÃæµÄconfigĿ¼µÄtreeÊÇÕâÑùµÄ£º . |-- boot | `-- grub | `-- splash.xpm.gz `-- etc |-- issue |-- issue.net |-- motd |-- rc.d | `-- init.d | `-- network |-- redhat-release `-- resolv.conf ÕÕ˵Ӧ¸ÃûÓÐÎÊÌ⣬¿ÉÊÇÎÒÕâЩÎļþÔõô¶¼²»Äܸ´ÖƵ½Ð°²×°ºÃµÄϵͳÖÐÈ¥£¬Çë´ó´óÃÇÖ¸µãÖ¸µã£¡
ÒýÓÃ ¿´Kickstart Log, ÓÐÌõ¼þ
Ïà¹ØÎÊ´ð£º
ÎÒĿǰÔÚ±¾µØµÄlinuxÉÏдÁËÒ»¸öswingµÄ½çÃæ£¬Ïëͨ¹ýÕâ¸ö½çÃæÀ´¿ØÖÆÆäËüµçÄÔµÄlinuxÖØÆô¡£ ÎÒÖªµÀÓÃRuntime.getRuntime().exec("shutdown -r");¿ÉÒÔ¿ØÖƱ¾»úLinuxÖØÆô£¬µ«ÊÇÔõô¿ØÖÆÔ¶³ÌµÄlinuxÖØÆôÄØ£¿ ......
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£ ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
ÎÒÓùýubuntu8.10°æ±¾£¬´ÓverycdÏÂÔØµÄ¡£ ÏÂÔØºó£¬ÊǰëÓ¢ÎÄ¡£ÇÒÎÒ¶ÔlinuxϵͳµÄ²Ù×÷Àí½â²»ÉÒò´Ë×°ÖÐÎÄÊäÈë·¨¶¼¸ãÁ˺þᣠȻºó°´ÕÕÍøÉϵĽ̸̳üÐÂÖÐÎĽçÃæ£¬µ«ÊǸüÐÂÁË1ÍíÉϺóÌáʾÖжϡ¡Àס£ ......