linuxѧϰ
ÎÒ·¢ÏÖÏÖÔÚ¹Ø×¢linuxµÄÈËÌرð¶à£¬µ«ÍùÍù¶¼²»ÖªµÀ´ÓÄÄÈëÊÖ£¬ÎÒÏ£Íû´ó¼Ò¿´ÍêÁËÕâƪÎÄÕºóÄÜÄúһЩÆôʾ£¬Í¬Ê±Ò²ÏàÐÅÆäʵÈëÐв¢²»ÄÑ£¬ÄѵÄÊÇѧ¾«µÄµÀÀí¡£
Ò»¡¢´Ó»ù´¡¿ªÊ¼£º³£³£ÓÐЩÅóÓÑÔÚLinuxÂÛ̳ÎÊһЩÎÊÌ⣬²»¹ý£¬ÆäÖдó¶àÊýµÄÎÊÌⶼÊǺܻù´¡ µÄ¡£ÀýÈ磺ΪʲôÎÒʹÓÃÒ»¸öÃüÁîµÄʱºò£¬ÏµÍ³¸æËßÎÒÕÒ²»µ½¸ÃĿ¼£¬ÎÒÒªÈçºÎÏÞÖÆʹÓÃÕßµÄȨÏÞµÈÎÊÌ⣬ÕâЩÎÊÌâÆäʵ¶¼²»ÊǺÜÄѵģ¬Ö»ÒªÁ˽âÁËLinux µÄ»ù´¡Ö®ºó£¬Ó¦¸Ã¾Í¿ÉÒÔºÜÇáÒ׵Ľâ¾öµôÕâ·½ÃæµÄÎÊÌâ¡£¶øÓÐЩÅóÓÑÃdz£³£Ò»½Ó´¥Linux ¾ÍÊÇÏ£Íû¹¹¼ÜÍøÕ¾£¬¸ù±¾Ã»ÓÐÏëµ½ÒªÏÈÁ˽âÒ»ÏÂLinux µÄ»ù´¡¡£ÕâÊÇÏ൱À§Äѵġ£
¶þ¡¢LinuxÃüÁî±ØÐëѧϰ£ºËäÈ»Linux×ÀÃæÓ¦Ó÷¢Õ¹ºÜ¿ì£¬µ«ÊÇÃüÁîÔÚLinuxÖÐÒÀÈ»ÓкÜÇ¿µÄÉúÃüÁ¦¡£LinuxÊÇÒ»¸öÃüÁîÐÐ×é³ÉµÄ²Ù ×÷ϵͳ,¾«ËèÔÚÃüÁîÐУ¬ÎÞÂÛͼÐνçÃæ·¢Õ¹µ½Ê²Ã´Ë®Æ½Õâ¸öÔÀíÊDz»»á±äµÄ£¬LinuxÃüÁîÓÐÐí¶àÇ¿´óµÄ¹¦ÄÜ£º´Ó¼òµ¥µÄ´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢µ½½øÐи´ÔӵĶàýÌåͼÏóºÍÁ÷ýÌåÎļþµÄÖÆ×÷¡£¾ÙÒ»¸öÀý×Ó£ºLinuxµÄ³£ÓÃÃüÁîfind£¬²ì¿´manÎĵµ£¬³õѧÕßÒ»¶¨»á¾õµÃÌ«¸´ÔÓ¶ø²»ÔÒâÓ㬵«ÊÇÄãÒ»µ©Ñ§»á¾Í°®²»ÊÍÊÖ¡£ËüµÄ¹¦ÄÜʵÔÚÌ«Ç¿ÁË£¬ÔÚÅäºÏexec²ÎÊý»òÕßͨ¹ý¹ÜµÀÖض¨Ïòµ½xargsÃüÁîºÍgrepÃüÁ¿ÉÒÔÍê³É·Ç³£¸´ÔӵIJÙ×÷£¬Èç¹ûͬÑùµÄ²Ù×÷ÓÃͼÐνçÃæµÄ¹¤¾ßÀ´Íê³É,¿ÖÅÂÒª¶à»¨Ê®¼¸ÅãµÄʱ¼ä¡£²»Í¬°æ±¾µÄLinuxÃüÁîÊýÁ¿²»Ò»Ñù£¬ÕâÀï±ÊÕß°ÑËüÃÇÖбȽÏÖØÒªµÄºÍʹÓÃƵÂÊ×î¶àµÄÃüÁ°´ÕÕËüÃÇÔÚϵͳÖеÄ×÷Ó÷ֳɼ¸¸ö²¿·Ö½éÉܸø´ó¼Ò£¬Í¨¹ýÕâЩ»ù´¡ÃüÁîµÄѧϰÎÒÃÇ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ£º °²×°ºÍµÇ¼ÃüÁlogin¡¢ shutdown¡¢ halt¡¢ reboot ¡¢mount¡¢umount ¡¢chsh Îļþ´¦ÀíÃüÁfile¡¢mkdir¡¢grep¡¢dd¡¢ find¡¢ mv ¡¢ls ¡¢diff¡¢cat¡¢ln ϵͳ¹ÜÀíÏà¹ØÃüÁdf¡¢top¡¢free¡¢quota ¡¢at¡¢lp¡¢adduser¡¢groupadd kill¡¢crontab¡¢tar¡¢unzip¡¢gunzip ¡¢last ÍøÂç²Ù×÷ÃüÁifconfig¡¢ip ¡¢ping ¡¢netstat ¡¢telnet¡¢ ftp¡¢route¡¢rlogin rcp ¡¢finger ¡¢mail ¡¢nslookup ϵͳ°²È«Ïà¹ØÃüÁ passwd ¡¢su¡¢ umask ¡¢chgrp¡¢chmod¡¢chown¡¢chattr¡¢sudo¡¢pswho¡£
Èý¡¢Ñ¡ÔñÒ»±¾ºÃµÄ¹¤¾ßÊ飺¹¤¾ßÊé¶ÔÓÚѧϰÕ߶øÑÔÊÇÏ൱ÖØÒªµÄ¡£Ò»±¾´íÎó¹ÛÄîµÄ¹¤¾ßÊéÈ´»áÈÃÐÂÊÖÕû¸öÎóÈëÆç;¡£Ä¿Ç°¹úÄÚ¹ØÓÚLinuxµÄÊé¼®ÓÐºÜ ¶à²»¹ý¾«Æ·µÄ²»¶à£¬±ÊÕßÇ¿ÁÒ½¨ÒéÔĶÁÓ°Ó¡±¾µÄ“O'ReillyÔ°æLinuxͼÊéhttp://www.oreilly.com.cn/ ”£¬¶øÇÒ³ö°æÉ绹ÌṩÁËÒ»¸ö·Ç³£ºÃµÄ·Ïßͼ£ºhttp://www.oreilly.com.cn/guide/guide_linux.php¡£
ËÄ¡
Ïà¹ØÎĵµ£º
/************************
cÓïÑÔ±àдµÄtcp socketͨÐŵÄserver¶Ë¡£
¿ÉÒÔ³ÖÐø¼àÌýmyprotÖ¸¶¨µÄ¶Ë¿Ú
´òÓ¡¶Ë¿Ú½ÓÊÕµ½µÄ×Ö·ûÁ÷
Í·ÎļþÒòΪ¼âÀ¨ºÅ±»×ªÒ壬ËùÒÔÓÃÁËÒýºÅ
************************/
#include "stdio.h"
#include "stdlib.h"
#include "errno.h"
#include "string.h& ......
This document shows how to write a daemon in Linux using GCC. Knowledge of Linux and a familiarity with C are necessary to use this document. This HOWTO is Copyright by Devin Watson, under the terms of the BSD License.
1. Introduction: What is a Daemon?
2. Getting Started
3. Planning Your Daemo ......
2.1 ¿ò¼Üͼ
-->PREROUTING-->[ROUTE]-->FORWARD-->POSTROUTING-->
mangle | mangle ^ mangle
nat | filter | na ......
°²×°»·¾³£º
1.ÉÏ´«jdk-6u17-linux-i586.binºÍapache-tomcat-6.0.20.tar.gzµ½/usr
2.°²×°JDK
¡¡¡¡$chmod a+x jdk-6u17-linux-i586.bin
¡¡¡¡$ ./jdk-6u17-linux-i586.bin
¡¡¡¡$ vi /etc/profile
¡¡¡¡#Ìí¼ÓÈçÏÂ
¡¡¡¡export JAVA_HOME=/usr/jdk1.6.0_17
¡¡¡¡export PATH=$JAVA_HOME/bin:$PATH
¡¡¡¡$echo $JAVA_H ......
1. ÐÞ¸ÄIPµØÖ· # vi /etc/sysconfig/network-scripts/ifcfg-eth0
ÐÞ¸ÄÒÔÏÂÄÚÈÝ
DEVICE=eth0 #ÃèÊöÍø¿¨¶ÔÓ¦µÄÉ豸±ðÃû£¬ÀýÈçifcfg-eth0µÄÎļþÖÐËüΪeth0
BOOTPROTO=static #ÉèÖÃÍø¿¨»ñµÃipµØÖ·µÄ·½Ê½£¬¿ÉÄܵÄÑ¡ÏîΪstatic£¬dhcp»òbootp£¬·Ö±ð¶ÔÓ¦¾²Ì¬Ö¸¶¨µÄ ipµØÖ·£¬Í¨¹ýdhcpÐÒé»ñµÃµÄipµØÖ·£ ......