Samba °²×°¼°¼òµ¥ÅäÖá¢windows·ÃÎÊlinuxµÄ¼òµ¥Àý×Ó
ÓÉÓÚÔÚ°²×°rhel5µÄʱºòûӴ°²×°µ½ºÃSamba£¬ÏÖÔÚÖ»ÄÜ´Óа²×°ÁË¡£ÓôÃÆ°¡£¡£¨ÔÚinit.dÖÐûÓз¢ÏÖsmbºÍnmbÕâÁ½¸öÎļþ£©
»¹ºÃÔÚ°²×°ÅÌÀïÄܹ»ÕÒµ½°²×°Îļþ¡£ÕâÀï¾Í²»ËµÁË£¨Ò»¶Ñsamba¿ªÍ·µÄÎļþ¡£Ò»Õó¿ñµã¾ÍÐÐÁË¡£ºÇºÇ……£©
Samba Á½¸ö·þÎñÆ÷Ïà¹ØÆô¶¯³ÌÐò¡¢¿Í»§¶Ë¼°·þÎñÆ÷ÅäÖÃÎļþ
Samba ÓÐÁ½¸ö·þÎñÆ÷£¬Ò»¸öÊÇsmb£¬ÁíÒ»¸öÊÇnmb
smb ÊÇSamba µÄÖ÷ÒªÆô¶¯·þÎñÆ÷£¬ÈÃÆäËü»úÆ÷ÄÜÖªµÀ´Ë»úÆ÷¹²ÏíÁËʲô£»Èç¹û²»´ò¿ªnmb·þÎñÆ÷µÄ»°£¬Ö»ÄÜͨ¹ýIPÀ´·ÃÎÊ£¬±ÈÈçÔÚWindowsµÄIEä¯ÀÀÆ÷ÉÏ´òÈëÏÂÃæµÄÒ»ÌõÀ´·ÃÎÊ
¶ønmbÊǽâÎöÓõģ¬½âÎöÁËʲôÄØ£¿¾ÍÊÇ°ÑÕą̂Linux»úÆ÷Ëù¹²ÏíµÄ¹¤×÷×é¼°Ôڴ˹¤×÷×éϵÄnetbios name½âÎö³öÀ´£»
Ò»°ãµÄÇé¿öÏ£¬ÔÚRPM°üµÄϵͳ£¬Èç¹ûÊÇÓÃRPM°ü°²×°µÄSamba £¬Ò»°ã¿ÉÒÔͨ¹ýÈçϵķ½Ê½À´Æô¶¯Samba·þÎñÆ÷£»
[root@localhost ~]# /etc/init.d/smb start
Æô¶¯ SMB ·þÎñ£º [ È·¶¨ ]
Æô¶¯ NMB ·þÎñ£º [ È·¶¨ ]
Èç¹ûÍ£Ö¹ÄØ£¿¾ÍÔÚsmbºóÃæ¼Óstop £»ÖØÆô¾ÍÊÇrestart
[root@localhost ~]# /etc/init.d/smb stop
[root@localhost ~]# /etc/init.d/smb restar
¶ÔÓÚËùÓÐϵͳÀ´Ëµ£¬Í¨Óõİ취¾ÍÊÇÖ±½ÓÔËÐÐsmb ºÍnmb£»µ±È»ÄúÒªÖªµÀsmbºÍnmbËùÔÚµÄĿ¼²ÅÐУ»Èç¹ûÊÇ×Ô¼º±àÒëµÄSamba £¬ÄúÓ¦¸ÃÖªµÀÄú°ÑSamba·ÅÔÚÄÄÀïÁË£»
[root@localhost ~]# /usr/sbin/smbd
[root@localhost ~]# /usr/sbin/nmbd
²é¿´·þÎñÆ÷ÊÇ·ñÔËÐÐÆðÀ´ÁË£¬ÔòÓÃÏÂÃæµÄÃüÁ
[root@localhost ~]# pgrep smbd
[root@localhost ~]# pgrep nmbd
¹ØµôSamba·þÎñÆ÷£¬Ò²¿ÉÒÔÓÃÏÂÃæµÄ°ì·¨£¬´ó¶àÊÇͨÓõģ»ÒªrootȨÏÞÀ´Ö´ÐУ»
[root@localhost ~]# pkill smbd
[root@localhost ~]# pkill nmbd
ÆäÖÐÓÐЩ·þÎñ¿ÉÒÔÔÚϵͳ--¡·¹ÜÀíÖнøÐÐÏà¹ØµÄÉèÖÃ
²é¿´Samba ·þÎñÆ÷µÄ¶Ë¿Ú¼°·À»ðǽ£»
²é¿´Õâ¸öÓкÎÓÃÄØ£¿ÓÐʱÄãµÄ·À»ðǽ¿ÉÄÜ»á°
Ïà¹ØÎĵµ£º
µÚÊ®¶þÕ Îļþ¹ÜÀí¼°LinuxʵÏÖÎÊÓë´ð
12.1 ʲôÊÇÎļþ£¿Ëü°üº¬ÄÄЩÄÚÈÝ£¿ÓÐʲôÌص㣿
´ð£ºÎļþÊÇÐÅÏ¢µÄÒ»ÖÖ×éÖ¯ÐÎʽ£¬ÊÇ´æ´¢ÔÚÍâ´æÉϵľßÓбêʶÃûµÄÒ»×éÏà¹ØÐÅÏ¢¼¯ºÏ¡£Îļþ°üº¬µÄÄÚÈÝÓУºÔ´³ÌÐò¡¢¶þ½øÖÆ´úÂë¡¢Îı¾Îĵµ¡¢Êý¾Ý¡¢±í¸ñ¡¢ÉùÒôºÍͼÏóµÈ¡£
Îļþ¾ßÓеÄÌصãÈçÏ£º
¢Ù Îļþ¾ßÓб£´æÐÔ£¬Ëü±»´æ´¢ÔÚijÖÖ ......
Ò»²½Ò»Ñ§LinuxÓëWindows ¹²ÏíÎļþSamba £¨v0.2b£©
¿´ÁËÕâƪÎÄÕ£¬¸Ð¾õͦºÃ£¬ËµµÄÒ²±È½ÏÏêϸ£¬×Ô¼º¶¯ÊÖʵÏÖ£¬Ò»µãÎÊÌâҲûÓУ¬¸ø´ó¼Ò·ÖÏí
×÷Õߣº
±±ÄÏÄϱ±£¬ÕýÔÚÔö¼ÓÖÐ... ... ÐèÒªÄúµÄ²ÎÓ룻
À´×Ô£º
LinuxSir.Org
¼ò½é£º
±¾ÎÄÖ»Êǽ²Ò»½²ÎÒÃÇ×î³£ÓõÄLinuxÓëWindows¹²ÏíÎļþ£¬Ö÷ÒªÊÇΪÐÂÊÖָһָ·¡£ÈçºÎ½¨Á¢×î¼òµ¥µÄ ......
LinuxϵĽø³ÌͨÐÅÊֶλù±¾ÉÏÊÇ´ÓUnixƽ̨ÉϵĽø³ÌͨÐÅÊֶμ̳жøÀ´µÄ¡£¶ø¶ÔUnix·¢Õ¹×ö³öÖØ´ó¹±Ï×µÄÁ½´óÖ÷Á¦AT&TµÄ±´¶ûʵÑéÊÒ¼°BSD£¨¼ÓÖÝ´óѧ²®¿ËÀû·ÖУµÄ²®¿ËÀûÈí¼þ·¢²¼ÖÐÐÄ£©ÔÚ½ø³Ì¼äͨÐÅ·½ÃæµÄ²àÖصãÓÐËù²»Í¬¡£Ç°Õ߶ÔUnixÔçÆڵĽø³Ì¼äͨÐÅÊֶνøÐÐÁËϵͳµÄ¸Ä½øºÍÀ©³ä£¬ÐγÉÁË“ ......
½ø³ÌÔÚ²Ù×÷ϵͳÖж¼ÓÐÒ»¸ö»§¿Ú£¬ÓÃÓÚ±íʾÕâ¸ö½ø³Ì¡£Õâ¸ö»§¿Ú²Ù×÷ϵͳ±»³ÆΪPCB£¨½ø³Ì¿ØÖƿ飩£¬ÔÚlinuxÖоßÌåʵÏÖÊÇ
task_structÊý¾Ý½á¹¹£¬Ëü¼Ç¼ÁËһϼ¸¸öÀàÐ͵ÄÐÅÏ¢£º
1.״̬ÐÅÏ¢£¬ÀýÈçÕâ¸ö½ø³Ì´¦ÓÚ¿ÉÖ´ÐÐ״̬£¬ÐÝÃߣ¬¹ÒÆðµÈ¡£
2.ÐÔÖÊ£¬ÓÉÓÚunixÓкܶà±äÖÖ£¬½ø³ÌÓÐ×Ô¼º¶ÀÌصÄÐÔÖÊ¡£
3.×ÊÔ´£¬×ÊÔ´µÄÁ´½Ó±ÈÈçÄڴ棬 ......
#!/bin/bash
cpu=`top -b -n 1 | grep -w Cpu | awk '{print$5}'| awk -F '%' '{printf"%d",$1}'`
if [ $cpu -le 50 ]
then
echo "cpu: $((100 - cpu))%" > test.txt
mail -s "·þÎñÆ÷½ô¼±, CPUÕ¼ÓÃÂʹý¸ß£¡" yourmail@domail.com < test.txt
fi
mem=`top -b -n 1 | grep -w Me ......