Linux ϵͳ·þÎñ¿ª»úÆô¶¯
1. Ubuntu
Ubuntu ϵͳÆô¶¯ÏȶÁÎļþ/etc/event.d/rc-default ÎļþÀ´¶ÁÒªÏÈÖ´ÐеĿª»úÎļþ£¬rc-default½Å±¾ÖÐÓÐÌõ¼þ/etc/inittabÈç¹û´æÔÚÔòÏÈÖ´ÐÐ/etc/inittab·ñÔòÏÈÖ´ÐÐ/etc/rc2.d.ÓÉÓÚ/etc/inittabÔÚUbuntuÖв»´æÔÚ£¬ËùÒÔÏÈÖ´ÐÐrc2.d.¼´¿ª»úÎļþºÍ·þÎñ¿ÉдÔÚ¸ÃĿ¼Ï£¨·þÎñÆô¶¯½Å±¾´æ·ÅµÄλÖã©
2. SUSE
SUSEϵͳÆô¶¯ÏȶÁÎļþ/etc/inittabÎļþ£¬ÎļþÖÐÓÐid:5:initdefault:£¬ËùÒÔ¿ª»úϵͳÏȶÁÎļþ/etc/init.d/rc5.d.¼´¿ª»úÎļþºÍ·þÎñ¿ÉдÔÚ¸ÃĿ¼Ï£¨·þÎñÆô¶¯½Å±¾´æ·ÅµÄλÖã©
Ïà¹ØÎĵµ£º
±¾ÎÄתÔØÓÚ£º http://hi.baidu.com/peruke/blog/item/b8de06ec6a04583b27979132.html
tzset
#incude <time.h
>
void tzset(void);
ÉèÖÃʱ¼ä»·¾³±äÁ¿¡£
˵Ã÷
tzset()º¯ÊýʹÓû·¾³±äÁ¿TZµÄµ±Ç°ÉèÖðÑÖµ¸³¸øÈý¸öÈ«¾Ö±äÁ¿:daylight,timezoneºÍtzname¡£
ÕâЩ±äÁ¿ÓÉftimeºÍlocaltimeº¯ÊýʹÓÃУÕý¸ñÁÖÍþÖÎ(UTC ......
asctime£¨½«Ê±¼äºÍÈÕÆÚÒÔ×Ö·û´®¸ñʽ±íʾ£©
Ïà¹Øº¯Êý
time£¬ctime£¬gmtime£¬localtime
±íÍ·Îļþ
#include<time.h>
¶¨Ò庯Êý
char * asctime(const struct tm * timeptr);
º¯Êý˵Ã÷
asctime()½«²ÎÊýtimeptrËùÖ¸µÄtm½á¹¹ÖеÄÐÅϢת»»³ÉÕæʵÊÀ½çËùʹÓõÄʱ¼äÈÕ ......
sysfs ÊÇ Linux ÄÚºËÖÐÉè¼Æ½ÏеÄÒ»ÖÖÐéÄâµÄ»ùÓÚÄÚ´æµÄÎļþϵͳ£¬ËüµÄ×÷ÓÃÓë proc ÓÐЩÀàËÆ£¬µ«³ýÁËÓë proc ÏàͬµÄ¾ßÓв鿴ºÍÉ趨Äں˲ÎÊý¹¦ÄÜÖ®Í⣬»¹ÓÐΪ Linux ͳһÉ豸ģÐÍ×÷Ϊ¹ÜÀíÖ®Óá£Ïà±ÈÓÚ proc Îļþϵͳ£¬Ê¹Óà sysfs µ¼³öÄÚºËÊý¾ÝµÄ·½Ê½¸üΪͳһ£¬²¢ÇÒ×éÖ¯µÄ·½Ê½¸üºÃ£¬ËüµÄÉè¼Æ´Ó proc ÖÐÎüÈ¡ ......
DansGuardian
, written by SmoothWall Ltd and others, is content-control software: software designed to control which websites users can access. It also includes virus filtering and usage monitoring features. DansGuardian must be installed on a Unix or Linux computer, such as a server computer; its ......
Linux¼¯Èº´óÈ«
2009-12-29 20:54
¼ÆËã Linux Öм¯ÈºÏîÄ¿µÄÊýÁ¿¾ÍÏó¼ÆËã¹è¹ÈÖд´Òµ¹«Ë¾µÄÊýÁ¿Ò»Ñù¡£²»Ïó Windows NT ÒѾÊÜÆä×ÔÉíµÄ·â±Õ»·¾³×è°£¬Linux ÓдóÁ¿µÄ¼¯ÈºÏµÍ³¿É¹©Ñ¡Ôñ£¬ÊʺÏÓÚ²»Í¬µÄÓÃ;ºÍÐèÒª¡£µ«È·¶¨Ó¦¸ÃʹÓÃÄÄÒ»¸ö¼¯ÈºµÄ¹¤×÷ȴûÓÐÒò´Ë±äµÃ¼òµ¥¡£
ÎÊÌâµÄ²¿·ÖÔÒòÔÚÓÚÊõÓOȺÓÃÓÚ²»Í¬³¡ºÏ¡£IT ¾Àí¿ÉÄܹØÐ ......