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

linuxϵͳÏÂÓÃshell½Å±¾´´½¨FTPÕʺÅ

ÒÔÏÂΪSHELL½Å±¾´´½¨Ò»¸ö±È½ÏÍêÕûµÄFTPÕʺÅ,°üÀ¨:
   1) ÐÂÔöFTPÕÊ»§ºÍĿ¼
   2) ÐÞ¸ÄFTPÕÊ»§ÃÜÂë
   3) ÔÚFTPÕÊ»§Ä¿Â¼ÏÂ,н¨Èý¸ö×ÓĿ¼,´æ·Å²»Í¬Êý¾Ý
   4) Ŀ¼ȨÏÞÖÃΪ¿É¶Áд
ʹÓÃ˵Ã÷:
   1) ´´½¨ÐÂshÎļþ(Èç:addFTPAcc.sh), ½«Ô´½Å±¾È«²¿¿½±´ÆäÖÐ
   2) Ö´ÐÐ: #sh ./addFTPAcc.sh
   3) ÊäÈëÐÂÃÜÂë, È»ºó½Å±¾»á×Ô¶¯Íê³ÉÆäËü´´½¨
#Ô´½Å±¾¿ªÊ¼
#!/bin/sh
#Êä³ö¸ñʽ¹æ·¶
sign="----------"
#FTPÓû§Ïà¹ØÐÅÏ¢
ftpuser="ftptest1"
ftppath="ftptest1"
baseftppath="/var/ftp/pub/"
echo ""
echo ${sign}"starting"${sign}
echo ""
#Èç¹ûÓû§ÒÑ´æÔÚ£¬ÔòÏÈɾ³ý
userdel -r ${ftpuser}
#¿ªÊ¼´´½¨ftpÓû§
useradd -s /sbin/nologin -g ftp -d ${baseftppath}${ftppath} ${ftpuser}
#echo ${sign}"useradd: "${ftpuser}" is OK"${sign}
#ÉèÖÃftpÓû§ÃÜÂë
passwd ${ftpuser}
#echo ${sign}"passwd: "${ftpuser}" is OK"${sign}
#ÔÚftppathĿ¼ÏÂн¨Èý¸ö×ÓĿ¼
cd ${baseftppath}${ftppath}
mkdir 1
mkdir 2
mkdir 3
#echo ${sign}"mdir: 1,2,3 is OK"${sign}
#¸øÎļþ¼Ð¸³ÔÊÐí¶ÁдȨÏÞ
chmod -R 777 ${baseftppath}${ftppath}
#echo ${sign}"chmod -R is OK"${sign}
echo ""
echo ${sign}"completed!"${sign}
echo ""
#Ô´½Å±¾½áÊø


Ïà¹ØÎĵµ£º

linux Ï°²×°jdk

¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jdk-1_5_0_02-linux-i586.rpm.bin
´Ëʱ»áÉú³ÉÎļþjdk-1_5_0_02-linux-i586.rpm£¬
ͬÑù¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm
-------------ÍøÉϲ鵽£¬Òª½øÐÐÏÂÃæÒ»²½£¬ÎÒÔÙ./jdkʱºò¾ÍÒѾ­³öÏÖЭÒéÁË£¬Ò²¾ÍÊÇÒ ......

linux ulimit max open files

ÓÐʱºòÔÚ³ÌÐòÀïÃæÐèÒª´ò¿ª¶à¸öÎļþ£¬½øÐзÖÎö£¬ÏµÍ³Ò»°ãĬÈÏÊýÁ¿ÊÇ1024£¬£¨ÓÃulimit -a¿ÉÒÔ¿´µ½£©¶ÔÓÚÕý³£Ê¹ÓÃÊǹ»ÁË£¬µ«ÊǶÔÓÚ³ÌÐòÀ´½²£¬¾ÍÌ«ÉÙÁË¡£
Ð޸İ취£º
ÖØÆô¾ÍOK
ÐÞ¸Ä2¸öÎļþ¡£
1./etc/security/limits.conf
vi /etc/security/limits.conf
¼ÓÉÏ£º
* soft nofile 8192
* hard nofile 20480
2./etc/pam.d/l ......

°²×°Vista¡¢linux(Fedora10)¡¢Solaris

1.×¼±¸·ÖÇø
 ÓÉÓÚSolarisºÍVista(µÄÒýµ¼¼ÓÔØ)±ØÐë°²×°ÔÚÖ÷·ÖÇøÉÏ£¬linuxÊÇ¿ÉÒÔ°´ÔÚÀ©Õ¹·ÖÇøÉϵÄ
     ËùÒÔÎÒ°Ñ´ÅÅÌ·Ö³É
 30GÖ÷·ÖÇø£º°²×°Vista
 27GÖ÷·ÖÇø£º±¾À´Òª°²×°FreeBSD(Ò²±ØÐë°²×°ÔÚÖ÷·ÖÇøÉÏ,µ«ÊÇFreeBSD²»Ö§³ÖÎҵĻú×ÓËùÒÔ·ÅÆú)
 135GÀ©Õ¹·ÖÇø£ºÆäÖзֳö40GµÄÂß¼­Å̸ ......

ÍêÉÆLinuxϵͳ

 
ÍêÉÆLinuxϵͳ
1.¿ª»ú×Ô¶¯¹ÒÔØwindow·ÖÇø
   
fedora10ËäÈ»ÄÜ×Ô¶¯¹ÒÔØ,µ«ÊǹÒÔصķÖÇøÓÐʱ»á²»ÈϺº×ÖÎļþ¼Ð
 
 ´ÓÖÕ¶ËÓÃvi»ògedit´ò¿ª/etc/fstab£¬ÔÚÆäÖÐÌí¼Ó£º
 /dev/sda1 /mnt/1 ntfs default 0 0
 ×¢£ºµÚÒ»ÏîÊÇ·ÖÇøÇý¶¯µØÖ·
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ