Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : linux

Ubuntu 10.04 brings Linux closer to the mainstream

Ubuntu 10.04 brings Linux closer to the mainstream
No Windows viruses. Free. Any questions?
Of course. Start with this one: How can an operation system with those virtues, the open-source Linux, remain confined to a tiny minority of desktop and laptop computers at home?
Linux may run TiVo video recorders and live inside Android phones, in addition to running much of the Internet's servers, but it still lags on home PCs.
Will that change anytime soon? A new version of a consumer-oriented edition of Linux, Ubuntu, offers hope for Linux optimists but leaves room for doubters, too.
Ubuntu 10.04, nicknamed "Lucid Lynx," comes from London-based Canonical, but like other open-source releases, it benefits from other programmers who have improved its source code.
As for those names, Canonical christens its versions after the year and month of their delivery as well as an alphabetical series of animals (the release I tested last year was Ubuntu 9.10, "Karmic Koala"). Th ......

LinuxÏÂTomcat 6.0.26 °²×°

ÎÒÓõÄÊÇ fedora 12 ×Ô´ýµÄjdk 1.6 ÔÚ /usr/lib/jvm/java-1.6.0-openjdk
µÚÒ»²½£º°Ñapache-tomcat-6.0.26.tar.gz½âѹºó·Åµ½/usr/local/ÏÂÖØÃüÃûΪapache-tomcat-6.0.26
µÚ¶þ²½£ºÔÚ/etc/profileÎļþÖÐÊʵ±µÄλÖÃÌí¼ÓÈçÏ»·¾³±äÁ¿
CATALINA_HOME=/usr/local/apache-tomcat-6.0.26
CATALINA_BASE=/usr/local/apache-tomcat-6.0.26
CATALINA_TMPDIR=/usr/local/apache-tomcat-6.0.26
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar
PATH=$JAVA_HOME/bin:$PATH:$CATALINA_HOME/bin
export JAVA_HOME CLASSPATH PATH
export CATALINA_HOME CATALINA_BASE CATALINA_TMPDIR
±£´æºóÔËÐÐ sh /etc/profile¸üл·¾³ÉèÖÃ
µÚÈý²½£ºÔËÐÐ sh /usr/local/apache-tomcat-6.0.26/bin/startup.shÆô¶¯tomcat
µÃµ½ÈçÏÂÊä³öÔòÆô¶¯³É¹¦
[root@Linux-Fedora bin]# sh startup.sh
Using CATALINA_BASE:   /usr/local/apache-tomcat-6.0.26
Using CATALINA_HOME:   /usr/local/apache-tomcat-6.0.26
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.26/temp
Using JRE_HOME:    ......

Linux JDK and ANT install

Linux JDK and ANT install
linux JDKµÄ°²×°

°²×°JDK
´ÓsunÍøÕ¾ÉÏÖ±½ÓÏÂÔØJDK£ºhttp:
//java.sun.com/j2se/1.4.2
/download.htmlÌṩÁËÁ½¸öÏÂÔØ£º
1¡¢RPM in self-extracting file
(j2sdk-1_4_2_04-linux-i586.bin,
32.77 MB) Õâ¸öÊÇ×Ô½âѹµÄÎļþ£¬ÔÚlinuxÉÏ°²×°ÈçÏ£º

chmod u+x
./j2sdk-1_4_2_04-linux-i586.bin

./j2sdk-1_4_2_04-linux-i586.bin

ÔÚ°´ÌáʾÊäÈëyesºó£¬jdk±»½âѹµ½./j2sdk1.4.2_04
Ŀ¼Ï¡£ÎªÓëÏÂÃæ2ÖÐJDK°²×°Â·¾¶Ò»Ö£¬
ÎÒÃǽøÐÐ
ÏÂÁвÙ×÷,ÔÚ/usr/javaϽ¨Á¢°²×°Â·¾¶£¬²¢½«ÎÄ
¼þ¿¼µ½¸Ã·¾¶Ï£º

mkdir
/usr/java

cp -fr ./j2sdk1.6 /usr/java

2¡¢
RPM in self-extracting file
(j2sdk-1_6-linux-i586-rpm.bin, 32.77
MB)Õâ¸öÒ²ÊÇÒ»¸ö×Ô½âѹÎļþ£¬²»¹ý½âѹºóµÄÎļþÊÇj2sdk-1_6-linux-i586-rpm°ü£¬Ö´ÐÐrpmÃü
Áî×°µ½linuxÉϾͿÉ
ÒÔÁË¡£°²×°ÈçÏ£º

chmod u+x ./j2sdk-1_6-linux-i586-rpm.bin

./j2sdk-1_6-linux-i586-rpm.bin

rpm -ivh j2sdk-1_6-linux-i586-rpm

°²×°Èí¼þ»á½«JDK×Ô
¶¯°²×°µ½ /usr/java/j2sdk1.6Ŀ¼Ï¡£
¶þ¡¢ÅäÖû·¾³±äÁ¿
1.ÐÞ¸ÄÓû§»·¾³±äÁ¿
¼ÙÉèʹÓÃjavaµÄÓû§ ......

LinuxÃüÁîÕûÀí

LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£
²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò»Ñù£¬µ«Linux·¢Ðа汾×îÉÙµÄÃüÁîÒ²ÓÐ200¶à¸ö¡£ÕâÀï±ÊÕ߰ѱȽÏÖØÒªºÍʹÓÃƵÂÊ×î¶àµÄÃüÁ°´ÕÕËüÃÇÔÚϵͳÖеÄ×÷Ó÷ֳÉÏÂÃæÁù¸ö²¿·ÖÒ»Ò»½éÉÜ¡£±¾ÎÄÖ÷Òª²Î¿¼²ÜÔªÆäÏÈÉúµÄ¡¶Linux±ØѧµÄ60¸öÃüÁî¡·¡£
¡ô °²×°ºÍµÇ¼ÃüÁlogin¡¢shutdown¡¢halt¡¢reboot¡¢install¡¢mount¡¢umount¡¢chsh¡¢exit¡¢last£»
¡ô Îļþ´¦ÀíÃüÁfile¡¢mkdir¡¢grep¡¢dd¡¢find¡¢mv¡¢ls¡¢diff¡¢cat¡¢ln£»
¡ô ϵͳ¹ÜÀíÏà¹ØÃüÁdf¡¢top¡¢free¡¢quota¡¢at¡¢lp¡¢adduser¡¢groupadd¡¢kill¡¢crontab£»
¡ô ÍøÂç²Ù×÷ÃüÁifconfig¡¢ip¡¢ping¡¢netstat¡¢telnet¡¢ftp¡¢route¡¢rlogin¡¢rcp¡¢finger¡¢mail¡¢ nslookup£»
¡ô ϵͳ°²È«Ïà¹ØÃüÁpasswd¡¢su¡¢umask¡¢chgrp¡¢chmod¡¢chown¡¢chattr¡¢sudo ps¡¢who£»
¡ô ÆäËüÃüÁtar¡¢unzip¡¢gunzip¡¢unarj¡¢mtools¡¢man¡¢unendcode¡¢uudecode¡£
LinuxÃüÁîÕûÀí£¨1£© ......

linuxÖÐfork£¨£©º¯ÊýÏê½â

 Ò»¡¢forkÈëÃÅ֪ʶ
     ÏÈ¿´Ò»¸öÀý×Ó£º
/*
* fork_test.c
* version 1
* Created on: 2010-5-29
* Author: wangth
*/
#include <unistd.h>;
#include <stdio.h>
int main ()
{
pid_t fpid; //fpid±íʾforkº¯Êý·µ»ØµÄÖµ
//´Ëʱ½öÓÐÒ»¸ö½ø³Ì
fpid=fork();
//´Ëʱ²Ù×÷ϵͳÖÐÒѾ­ÓÐÁ½¸ö½ø³ÌÔÚͬʱÔËÐÐ
if (fpid < 0)
printf("error in fork!");
else if (fpid == 0)
printf("I am the child process, my process id is %d\n",getpid());
else
printf("I am the parent process, my process id is %d\n",getpid());
return 0;
}
     ÔËÐнá¹ûÊÇ£º
    I am the parent process, my process id is 2365
    I am the child process, my process id is 2367
    Ò»¸ö½ø³Ì£¬°üÀ¨´úÂë¡¢Êý¾ÝºÍ·ÖÅä¸ø½ø³ÌµÄ×ÊÔ´¡£fork£¨£©º¯Êýͨ¹ýϵͳµ÷Óô´½¨Ò»¸öÓëÔ­À´½ø³Ì¼¸ºõÍêÈ«ÏàͬµÄ½ø³Ì£¬Ò²¾ÍÊÇÁ½¸ö½ø³Ì¿ÉÒÔ×öÍêÈ«ÏàͬµÄÊ£¬µ«Èç¹û³õʼ²ÎÊý»òÕß´«ÈëµÄ±äÁ¿²»Í¬£¬Á½¸ö½ø³ÌÒ²¿ÉÒÔ×ö²»Í¬µ ......

Linux °²×°SVN

ÆäʵLinuxÏÂSVN»¹ÊDZȽϼòµ¥£¬ ÔÚÍøÉÏ£¬ Ò»ËѾÍÊÇÒ»´ó°ÑµÄ×ÊÁÏ¡£ µ«ºÜÉÙÓÐÈËÒ»´Î°²×°³É¹¦£¬ ÒòΪLinuxÖеĻ·¾³Ì«¸´ÔÓ£¬
ºÜÈÝÒ×»·¾³³åÍ»¡£
linux svnÒ»°ãÒÀÀµÓÚhttpd£¨Apache Web·þÎñÆ÷£©.
svn¶ÀÁ¢·½Ê½
µ±È»svn»¹ÓжÀÁ¢·½Ê½£¬ ¼´²»ÐèÒªapache·þÎñÆ÷, ¼´Ìø¹ýÏÂÃæµÄapache°²×°£¬ ¼°ÅäÖÃÖйØÓÚhttpd.conf²¿·Ö¡£
ÔÚ±àÒësubversionʱ
$./configure -prefix=/opt/svn -without-berkeley-db -with-zlib
(×¢£ºÒÔsvnserve·½Ê½ÔËÐУ¬²»¼Óapache±àÒë²ÎÊý¡£ÒÔfsfs¸ñʽ´æ´¢°æ±¾¿â£¬²»±àÒëberkeley-db)
°²×°apache
¼ì²éapacheÊÇ·ñ°²×°¡£
Ò»°ãserver·¢ÐаæµÄlinux»á¸½´øapache web ·þÎñÆ÷¡£ ËùÒÔÐèÒªÏÈ¿´¿´ÊÇ·ñ°²×°ÁËapache£¬ ¼°°²×°µÄ°æ±¾ºÅ¡£

ͨ¹ý¿ÉÖ´ÐÐÎļþÊÇ·ñ´æÔÚ£º ÔÚµ±Ç°Â·¾¶Ï£¬ תÈë $ httpd(apachectl) -v, Èç¹û´æÔÚ£¬ ÄÇôÊäÈë$
whereis httpd(apachectl), ÕÒ³öÆä·¾¶£¬ ÔÙͨ¹ý$ fileÃüÁî²éÆ䰲װ·¾¶¡£Èç¹û²»´æÔÚÃüÁî;
ÄÇô¼ì²é/etc/init.d/httpdÊÇ·ñ´æÔÚ£¬ Èç¹û´æÔÚ£¬ ²é¿´°²×°Â·¾¶¡£ ͨ¹ývi(m)µÈ¹¤¾ß²é¿´ÆäÄÚÈÝ£¬ ¿ÉÒÔÕÒµ½Â·¾¶¡£
ͨ¹ý·¢Ðаü¹¤¾ß¼ì²é£¬ ÈçÔÚradhat(fedora)ϵͳÖУ¬ ʹÓõÄÊÇrpm»òyum,
Debian(°üÀ¨ubuntu)µÄdpkg»òapt-get¹¤¾ß, Su ......
×ܼǼÊý:5772; ×ÜÒ³Êý:962; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³[2] [3] [4] [5] [6] [7] [8] [9] [10]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ