Linux °²×°tomcat
Linux tomcat¶ÔÓÚµçÄÔʹÓõÄÍæ¼ÒµÄ³£ÓÃÈí¼þ£¬È»ºóÎÒ¾Íѧϰ¼°ÉîÈëµÄÑо¿Linux tomcat£¬ÔÚÕâÀïºÍ´ó¼ÒÒ»Æð̽ÌÖLinux tomcatµÄʹÓ÷½·¨£¬Ï£Íû¶Ô´ó¼ÒÓÐÓᣲÙ×÷ϵͳ£ºRedhat Linux(Fedora Core 2)JDK: j2sdk-1_4_2_01-linux-i586.bin Linux tomcat:jakarta-Linux tomcat-5.0.19.tar.gz
°²×°²½Öè:
JDK:
1£©½«°²×°³ÌÐò¸´ÖƵ½ /usr/localĿ¼ÏÂ
2£©Ö´ÐÐÃüÁ./j2sdk-1_4_2_01-linux-i586.bin½âѹºóµÃµ½Ä¿Â¼j2sdk-1.4.2_01£¬½«Ä¿Â¼Ãû¸ÄΪj2sdk-1.4.2£¬²»È»ºóÃæµÄ²Ù×÷»áÎÞЧ¡£
3£©ÒÀ´ÎÖ´ÐÐÏÂÁÐÃüÁln -s j2sdk-1.4.2 jdk ln -s jdk/jre jre
4£©ÉèÖû·¾³±äÁ¿vi /etc/profile
¼ÓÈëÈçÏÂÄÚÈÝ£º
JAVA_HOME=/usr/local/jdk
export JAVA_HOME
CLASSPATH=/usr/local/jdk/lib:/usr/local/jre/lib
export CLASSPATH
PATH=$PATH:/usr/local/jdk/bin:/usr/local/jre/bin
5£©²âÊÔJDKÊÇ·ñ°²×°³É¹¦
cd /etc javacÈç¹û³öÏÖ¹ØÓÚjavacµÄʹÓÃ˵Ã÷£¬±íʾ°²×°³É¹¦¡£
Linux tomcat:
1£©½«°²×°³ÌÐò¸´ÖƵ½ /usr/localĿ¼ÏÂ
2£©Ö´ÐÐÃüÁtar -zxvf jakarta-Linux tomcat-5.0.19.tar.g½âѹºóµÃµ½Ä¿Â¼jakarta-Linux tomcat-5.0.19
3£©ÉèÖû·¾³±äÁ¿vi /etc/profile¼ÓÈëÈçÏÂÄÚÈÝ£ºLinux tomcat_HOME=foo/Linux tomcat export Linux tomcat_HOME
4£©½øÈë /usr/local/jakarta-Linux tomcat-5.0.19/bin£¬Ö´ÐУº./startup.sh startÆô¶¯Linux tomcat·þÎñÆ÷
5£©²âÊÔÊÇ·ñ°²×°³É¹¦ ÓÃä¯ÀÀÆ÷ä¯ÀÀhttp://localhost:8080Èç¹û³öÏÖLinux tomcatµÄ»¶ÓÒ³Ã棬±íʾ°²×°³É¹¦¡£
ÎÒ¼ÙÉèÄãʹÓÃDebian3£¬Èç¹ûÄãʹÓÃÆäËûµÄLinux°æ£¬¿ÉÄÜ»áÓа²×°·½·¨ºÍÉèÖ÷¾¶ÉϵÄÇø±ð¡£
1£¬°²×°J2SDK 1.1 ʹÓÃDebianÔ´ÀïµÄ°²×°°ü
ÒÔroot Éí·ÝÔËÐÐapt-get install sun-j2sdk1.4£¬ÕâÑù½«°²×°sunµÄj2sdk1.4¡£È»ºóÊäÈëjavaÈç¹ûÄã¿´µ½µÄ²»ÊÇcommand not found£¬¾Í±íʾÄãÒѾ°²×°ÕýÈ·ÁË¡£·ñÔòËÑË÷ÊÇ·ñÓÐjavaºÍjavacÁ½¸öÎļþ£¬ÎÒµÄÔÚ/usr/lib/j2sdk1.4-sun/binÏ£¬Èç¹û Óоʹ´½¨Á´½Óµ½/usr/binÏ£¬Á¬½ÓÃûÓëÔÎļþÃûÒ»Ñù¡£
1.2 ʹÓÃsunÍøÕ¾Éϵݲװ°ü
¾ßÌå·½·¨²Î¿¼sunÍøÕ¾Éϵݲװ˵Ã÷¡£Ò²¿ÉÒԲο¼ÎÒµÄ×ö·¨£¨Í¼ÐνçÃæ²Ù×÷£©£ºÏÂÔØÕýÈ·µÄѹËõ°üºó½âѹ£¬Ò»°ãµÃµ½ÀàËÆÃûΪjdk1.x.xµÄÎļþ¼Ð¡£½«Õû¸öÎļþ¼ÐÒƶ¯µ½/usr/libĿ¼Ï£¬È»ºó½øÈë jdk.1.x.x/binϵÄjava, javac, javadoc, jarËĸö¿ÉÖ´ÐÐÎļþ´´½¨Á´½Ó£¬È»ºó¸´ÖƵ½/usr/binÎļþ¼ÐÏ£¬²¢ÇÒ¸ÄÃûΪÓëÔÎļþÏàͬ¡£
ÕâÑù×öµÄÔÒòÊÇÒ»°ã/usr/binÊÇ$PATH»·¾³±
Ïà¹ØÎĵµ£º
GNU glibcÌṩһ¸ö¶ÔprintfµÄÀ©Õ¹£¬Ö±½Óprintf("%m"),¿ÉÒÔÊä³ö±ê×¼µÄ´íÎóÐÅÏ¢£¬ÀýÈçÏÂÃ棺
#include <stdio.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
int main()
{
......
˵Ã÷£º
´ó¼ÒºÃ£¬ÎÒÓõÄÊÇÐéÄâ»úÏÂlinux»·¾³½øÐа²×°µÄoracle 11g Êý¾Ý¿â£¬ÓÐЩ²»Í׵ĵط½Çë¶à¶àÖ¸½Ì¡£
Ê×ÏÈÒª²Î¿¼Ô°æµÄ°²×°Ê¹ÓÃ˵Ã÷Îĵµ£¬¸ù¾ÝÉÏÃæµÄÃèÊöµÄÒªÇó½øÐа²×°²Ù×÷¡£
ÈçÏÂÊÇÊÖ¶¯²Ù×÷µÄ·½·¨£º
Ò»£®¼ì²élinux»·¾³RPM°üµÄÊÇ·ñÍêÈ«°²×°£¬²¢¼Ç¼ȱÉÙµÄRPM°üÎļþ²¢½øÐа²×°¡£
[root@mylinux ~]# r ......
dnw in linux
Use xterm as a serial terminal. In Fedora 9
use "yum install screen" to install screen package.
Plug the USB-UART cable, see if there is a ttyUSB0 in /dev
Enter "screen /dev/ttyUSB0 115200,cs8,-ixon,-ixon,istrip" to connect to USB-UART.
Screen as Serial Terminal
Download the ......
°²×°²½Öè
1ÏÈ°²×°ºÃµÚÒ»¸ömysql :
#tar zxvf mysql*.tar.gz
#cd mysql*
#groupadd mysql
#useradd -g mysql mysql
#./configure --prefix=/usr/local/mysql #make
#make install
#scripts/mysql_install_db
#chown -R root /usr/local/mysql
#chown -R mysql /usr/local/mysql/var
#chgr ......