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

°Ë¸ö²½ÖèÐÞ¸ÄlinuxÊ±Çø


For ubuntu: [1]http://webonrails.com/2009/07/15/change-timezone-of-ubuntu-machine-from-command-line/
2
Logged in as root, check which timezone your machine is currently using by executing `date`. You'll see something like Mon 17 Jan 2005 12:15:08 PM PST, PST in this case is the current timezone.
3
Change to the directory /usr/share/zoneinfo here you will find a list of time zone regions.Choose the most appropriate region, if you live in Canada or the US this directory is the "America" directory.
4
If you wish, backup the previous timezone configuration by copying it to a different location. Such as
mv /etc/localtime /etc/localtime-old
5
Create a symbolic link to the appropriate timezone from /etc/localtime. Example:
ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
6
If you have the utility rdate, update the current system time by executing
/usr/bin/rdate -s time-a.nist.gov
7
Set the ZONE entry in the file /etc/sysconfig/clock file (e.g. "America/Los_Angeles")
8
Set the hardware clock by executing:
/sbin/hwclock --systohc
2.ÐÞ¸ÄmysqlÊ±Çø
MySQL Ê±ÇøÄ¬ÈÏÊÇ·þÎñÆ÷µÄÊ±Çø¡£
¿ÉÒÔͨ¹ýÒÔÏÂÃüÁî²é¿´SQL´úÂëmysql> show variables like '%time_zone%';   +------------------+--------+   | Variable_name    | Value  |   +------------------+--------+   | system_time_zone | CST    |    | time_zone        | SYSTEM |    +------------------+--------+   2 rows in set (0.00 sec)   ¿ÉÒÔͨ¹ýÐÞ¸Ämy.cnf
ÔÚ [mysqld] ֮ϼÓ
default-time-zone=timezone 
À´ÐÞ¸ÄÊ±Çø¡£È磺
default-time-zone = '+8:00'
¸ÄÁ˼ǵÃÖØÆômsyqlà¸
×¢ÒâÒ»¶¨ÒªÔÚ [mysqld] ֮ϼӠ£¬·ñÔò»á³öÏÖ unknown variable 'default-time-zone=+8:00'
ÁíÍâÒ²¿ÉÒÔͨ¹ýÃüÁî set t


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

linux shell±à³ÌifÓï¾äÄÚÅжϲÎÊý

shell ±à³ÌÖÐʹÓõ½µÃifÓï¾äÄÚÅжϲÎÊý
–b µ±file´æÔÚ²¢ÇÒÊÇ¿éÎļþʱ·µ»ØÕæ
-c µ±file´æÔÚ²¢ÇÒÊÇ×Ö·ûÎļþʱ·µ»ØÕæ
-d µ±pathname´æÔÚ²¢ÇÒÊÇÒ»¸öĿ¼ʱ·µ»ØÕæ
-e µ±pathnameÖ¸¶¨µÄÎļþ»òĿ¼´æÔÚʱ·µ»ØÕæ
-f µ±file´æÔÚ²¢ÇÒÊÇÕý¹æÎļþʱ·µ»ØÕæ
-g µ±ÓÉpathnameÖ¸¶¨µÄÎļþ»òĿ¼´æÔÚ²¢ÇÒÉèÖÃÁËSGIDλʱ·µ»ØÎªÕæ
......

LinuxÏà¹Ø¹¤×÷5ÄêÄÚÐÂÔö80£¥


Linux»ù½ð»á±íʾ£¬ÔÚ¹ýÈ¥5ÄêÀÓëLinuxÏà¹ØµÄ¹¤×÷¸ÚλÔö¶àÁË80%¡£ÎªÁËÊÊÓ¦²¢Íƶ¯ÕâÖÖÇ÷ÊÆ£¬Linux»ù½ð»á·¢²¼ÁËÒ»¸öLinux¹¤×÷̨£¬ÎªLinuxÏà¹Ø¹¤×÷ÇóÖ°Õߺ͹ÍÖ÷Ìṩһ¸ö½»Á÷µÄƽ̨¡£
Linux»ù½ð»áÈ¥Äê´ÓGeekNetÄÇÀﹺÂòÁËLinux.comÓòÃû£¬Í¨¹ý¸ÃÍøÕ¾ÎªLinuxÓû§ºÍ¿ª·¢ÈËÔ±Ìṩ¸÷ÖÖ¸÷ÑùµÄÄÚÈݺͷþÎñ£¬°üÀ¨ÊDz©¿ÍºÍÉçÇø¼¼ÊõÖ§³ ......

linuxʵÓÃÃüÁîÏê½â


1. ´´½¨Ä¿Â¼
     mkdir
     NO1. ÔÚµ±Ç°Â·¾¶´´½¨Ò»¼¶Ä¿Â¼
          [root@rehat root]# mkdir test
     NO2. ÔÚµ±Ç°Â·¾¶´´½¨¶à¼¶Ä¿Â¼
          [roo ......

LinuxÓû§Óë×é¹ÜÀí

1. Ôö¼ÓÓû§Õʺŗ—useradd / adduser
ÔÚÃüÁîÐÐÏÂʹÓà useradd ÃüÁ 
useradd Óû§Ãû 
¸ÃÃüÁî×öÁËÏÂÃæ¼¸¼þÊ£º
1£©ÔÚ /etc/passwd ÎļþÖÐÔöÌíÁËÒ»ÐмǼ£»
2£©ÔÚ /home Ŀ¼Ï´´½¨ÐÂÓû§µÄÖ÷Ŀ¼£¬²¢½« /etc/skel Ŀ¼(skeleton:.bashrc, .bash_history, etc.)ÖеÄÎļþ¿½±´µ½¸ÃĿ¼ÖÐÈ¥£»µ«ÊÇÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ