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

linuxÏÂÇ¿ÖÆÐÂÓû§Ê״εǽÐÞ¸ÄÃÜÂë


Èç¹ûϵͳ¹ÜÀíԱϣÍûÌí¼ÓÒ»¸öÓû§ÒÔºó£¬ÈøÃÓû§µÚÒ»´ÎµÇ¼ÒÔºó×Ô¼ºÉèÖÃ×Ô¼ºµÄÃÜÂ룬ÄÇô¾ÍҪʹµÃÓû§µÄ³õʼÃÜÂë»òÕß¿ÕÃÜÂëÁ¢¿Ì¹ýÆÚ£¬Ç¿ÖÆÓû§µÚÒ»´ÎµÇ¼ºóÁ¢¿ÌÐÞ¸ÄÃÜÂë¡£
ΪÁËÇ¿ÖÆÓû§µÚÒ»´ÎµÇ¼ʱÉèÖÃÒ»¸öÐÂÃÜÂ룬Çë°´ÕÕÏÂÃæµÄָʾÀ´×ö£¬µ«ÊÇÐèÒªµÄ×¢ÒâµÄʱºòÈç¹ûÓû§ÊÇͨ¹ýSSHÔ¶³ÌµÇ¼½øÈ¥µÄ£¬ÄÇô¸Ã·½·¨ÊDz»ÄÜÉúЧµÄ¡£
1. Ëø¶¨Óû§ÃÜÂë - Èç¹ûÓû§²»´æÔÚ£¬ÓÃuseraddÌí¼ÓÓû§£¬µ«ÊDz»ÉèÖÃÃÜÂ룬ʹµÃ¸ÃÕʺÅÈÔÈ»´¦ÓÚËø¶¨×´Ì¬£¬Èç¹ûÓû§ÃÜÂëÒѾ­¼¤»î£¬ÔòÓÃÏÂÃæÃüÁîËø¶¨£º
usermod -L username
2. Ç¿ÖÆÃÜÂëÁ¢¿Ì¹ýÆÚ£º
chage -d 0 username
¸ÃÃüÁîÉèÖÃÓû§ÉÏ´ÎÐÞ¸ÄÃÜÂëµÄʱ¼äΪ¼ÍԪʱ¼ä£¨1970Äê1ÔÂ1ÈÕ£©£¬ÕâÑù»áʹµÃ¸ÃÃüÁîÁ¢¿Ì¹ýÆÚ£¬¶ø²»ÂÛÃÜÂë¹ýÆÚ²ßÂÔµÄÉèÖá£
3. ¶ÔÕʺŽâËø - ÕâÀïÓÐÁ½¸ö·½·¨À´ÊµÏÖ£¬¹ÜÀíÔ±¿ÉÒÔÉèÖÃÒ»¸öÐÂÃÜÂë»òÕßÉèÖÿÕÃÜÂ룺
×¢Ò⣺²»ÒªÊ¹ÓÃpasswdÀ´ÉèÖÃÃÜÂ룬ÒòΪËü»áʹµÃ¸Õ²ÅÉèÖõÄʹÃÜÂëÁ¢¿Ì¹ýÆÚµÄÉèÖÃʧЧ¡£
ΪÁËÉèÖóõʼÃÜÂ룬ʹÓÃÏÂÃæ²½Ö裺
Æô¶¯Python:
# python
Python 2.3.4 (#1, Feb 6 2006, 10:38:46)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
ÔÚÌáʾ·û>>>ºóÊäÈëÏÂÃæÃüÁ
import crypt; print crypt.crypt("userpassword","username")
Êä³ö½«»áÀàËÆÊÇ£º
12CsGd8FRcMSM
ÊäÈë[Ctrl]+[D]Í˳öpython¡£
¿½±´¸Õ²ÅµÄÊä³öÃÜÂë½á¹û£¬12CsGd8FRcMSM£¬ÓÃÔÚÏÂÃæµÄÃüÁîÖУº
usermod -p "12CsGd8FRcMSM" username
µ±È»Ò²¿ÉÒÔ¸øÓû§¸øÒ»¸ö¿ÕÃÜÂ룺
usermod -p "" username
×¢£º ËäÈ»¿ÕÃÜÂëºÜ·½±ã£¬µ«ÊÇÓа²È«·çÏÕ¡£
È»ºóµÇ¼¸ÃÓû§£¬¾Í»áÌáʾÊäÈëÃÜÂë¡£
ÆäËû°ì·¨£º
ʹÓÃÏÂÃæ·½·¨Ò²¿ÉÒÔʵÏÖ£º
1. ʹÓÃuseraddÌí¼ÓÓû§ 2. ʹÓÃpasswdÉèÖÃÓû§ÃÜÂë 3. ʹÓÃusermod -LÀ´ËøÃÜÂë 4. Ç¿ÖÆÓû§ÕʺŹýÆÚchage -d 0 username 5. ½âËøÓû§ÕʺÅ
ÉÏÃæÁ÷³ÌµÄʾÀý£º
# useradd dan
# passwd dan
Changing password for user dan.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
# usermod -L dan
# chage -d 0 dan
# usermod -U dan
µ±È»Óû§danµÚÒ»´ÎµÇ¼£¬¾Í»áÌáʾÉèÖÃÃÜÂëÈçÏ£º
$ su dan
P


Ïà¹ØÎĵµ£º

´´½¨linuxµÄ·þÎñ³ÌÐò

´´½¨linux·þÎñ£¬Ê¹µÃtest client¿ÉÒÔ¿ª»úÆô¶¯£¬²½ÖèÈçÏ£º
 
1.´´½¨Ä¿Â¼/usr/local/test/
2.¸´ÖÆtestcµ½/usr/local/test/
3.±àдÎļþ/etc/init.d/testc.sh
testc.sh
--------------------begin(not included)-----------------------
 
#! /bin/sh
#
### BEGIN INIT INFO
# Provides:  &nbs ......

linuxÏ̵߳ĹÒÆðÓë»Ö¸´

#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <unistd.h>
pthread_mutex_t wqy_mutex_pause = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t wqy_cond_pause = PTHREAD_COND_INITIALIZER;
bool wqy_pthread_pause = false;
void wqy_pthread_suspend(void)
{
if ......

linuxϵͳÐÅÏ¢²é¿´ »ù±¾ÃüÁî

×î½ü¿´ÁËһЩLinuxÃüÁîÐеÄÎÄÕ£¬ÔÚϵͳÐÅÏ¢²é¿´·½Ãæѧµ½²»ÉÙÃüÁî¡£ÏëÆðÒÔǰд¹ýµÄһƪÆäʵLinuxÕâÑùÓøü¼òµ¥£¬·¢ÏÖÕâЩϵͳÐÅÏ¢²é¿´ÃüÁîÒ²¿ÉÒÔ×ܽá³öһƪССµÄ¶«Î÷À´ÁË¡£
ÁíÍâÕâÀﻹÓзdz£¶àµÄÃüÁ¿ÉÒÔ×÷Ϊ²Î¿¼¡£
ϵͳ
# uname -a             &n ......

linuxÖеÄoutb¡¢outw¡¢inb¡¢inw

ÔÚlinuxµÄÇý¶¯³ÌÐòÖУ¬¶¼»áʹÓôóÁ¿µÄoutb¡¢outw¡¢inb¡¢inwµÈµÈºêÀ´·ÃÎÊÓ²¼þ»ò¼Ä´æÆ÷¡£ÕâЩºêµÄ¶¨Ò嶼ÔÚÏàÓ¦´¦ÀíÆ÷ÌåϵϵÄinclude\asmĿ¼ÏµÄio.hÖж¨Òå¡£×·¾¿ÏÂÈ¥£¬ÕâЩºê×îÖÕ¾ÍÊÇÒ»¸övolatile±äÁ¿µÄµÄ¸³Öµ£º
      #define __arch_putb(v,a)      (*(volatile unsi ......

linux¹Ø»úÃüÁîÏê½â

ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî¡£
¡¡¡¡1.shutdown
¡¡¡¡shutdownÃüÁȫµØ½«ÏµÍ³¹Ø»ú¡£ÓÐЩÓû§»áʹÓÃÖ±½Ó¶ÏµôµçÔ´µÄ·½Ê½À´¹Ø±Õlinux£¬ÕâÊÇÊ®·ÖΣÏյġ£ÒòÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ