LinuxϱàÒëºÍ²¿ÊðJavaWeb³ÌÐò½Å±¾
LinuxϱàÒëºÍ²¿ÊðJavaWeb³ÌÐò½Å±¾
Ŀ¼½á¹¹ÈçÏ£º
|
|---- YourProject
| |-------- WebRoot
| | |---- WEB-INF
| | | |------- lib
| | | |------- classes
| |-------- src
|---- lib
|---- compile.sh
|---- deploy.sh
view plaincopy to clipboardprint?
compile.sh
-------------------------------
#! /bin/bash
# check args
if [ $# -ne 1 ]
then echo "Usage:$0 PROJECT_NAME" exit
fi
PROJ=$1
# init path
CURRPATH=`pwd`
LIBDIR="$CURRPATH/$PROJ/WebRoot/WEB-INF/lib"
LIBDIR_OTHER="$CURRPATH/lib"
SOURCEDIR="$CURRPATH/$PROJ/src"
DISTDIR="$CURRPATH/$PROJ/WebRoot/WEB-INF/classes"
# classpath
CLASSPATH="$CLASSPATH"
TMP=`find $LIBDIR -name "*.jar" | awk '{var=$0":"var;}END{print var;}'`
CLASSPATH="$TMP$CLASSPATH"
TMP=`find $LIBDIR_OTHER -name "*.jar" | awk '{var=$0":"var;}END{print
var;}'`
CLASSPATH="$TMP$CLASSPATH"
# cleanup
rm -fr $DISTDIR/*
# javac
# CMD="javac -sourcepath $SOURCEDIR -classpath $CLASSPATH -d $DISTDIR
`find $SOURCEDIR -name "*.java"`" &nb
Ïà¹ØÎĵµ£º
×ÔÓÉÈí¼þ Linux Ö®¸¸£ºÀîÄÉ˹·ÍÐÎÖ×È(Linus Torvalds)
¡¡¡¡µ¼Ó28ËêµÄ·ÒÀ¼ÇàÄêÀîÄÉ˹´´ÔìÁËÒ»¸öȫеÄÊÀ½ç£º¾ÍÊÇÒ»ÖÖÃûΪLinuxµÄ²Ù×÷ϵͳ¡£ËüËù²úÉúµÄÁ¦Á¿¾ö¶¨Á˱à³ÌÁìÓòµÄзÕΧ£¬ÕýÈçÎÒÃǵĻ·¾³¾ö¶¨Á˶¯Ö²ÎïµÄÌØÐÔÒ»Ñù¡£´´Ôì¼ò½àÓÅÑŵijÌÐò£¬Ð´³ö¸É¾»¶øÎÞÈß³¤µÄ´úÂ룬»òÕßÊdz¬Ò»Á÷µÄ³ÌÐò£¬¾Í×ãÒÔÓ®µÃͬÐÐÃǵÄ×ð ......
by Bjorn Chambless
Introduction
The following is designed familiarize the reader with programming in x86 (AT&T
style, that produced by gcc) assembly under Linux and how to interface assembly
and higher-level language code (i.e. C). The tutorial will also briefly cover
debugging yo ......
²Ù×÷ϵͳµÄÒ»¸ö¾µäÎÊÌâÊÇ"Éú²úÕß-Ïû·ÑÕß"ÎÊÌâ, ÕâÉ漰ͬ²½ÐźÅÁ¿ºÍ»¥³âÐźÅÁ¿µÄÓ¦ÓÃ, ÔÚÕâÀï,ÎÒÓÃÏ̵߳Äͬ²½ºÍ»¥³âÀ´ÊµÏÖ.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <semaphore.h>
#define N 2 // Ïû·ÑÕß» ......
Ãû³Æ ĬÈ϶¯×÷ ˵Ã÷
SIGHUP ÖÕÖ¹½ø³Ì ÖÕ¶ËÏß·¹Ò¶Ï
SIGINT ÖÕÖ¹½ø³Ì ÖжϽø³Ì
SIGQUIT ½¨Á¢COREÎļþ ÖÕÖ¹½ø³Ì£¬²¢ÇÒÉú³ÉcoreÎļþ
SIGILL ......
ͨ¹ý±à¼/etc/inittabÀïµÄid:5:initdefault:ÕâÒ»Ðеİ¢À²®Êý×Ö£¬¿ÉʵÏÖÆô¶¯Ä£Ê½µÄת»»¡£ÀýÈ罫
id:5:initdefault:ÐÞ¸ÄΪid:3:initdefault:ÖØÐÂÆô¶¯ÏµÍ³ºó£¬ÎÒÃÇ¿É¿´µ½ÔÀ´µÄX-WindowͼÐβÙ×÷½çÃæת»»³ÉÁË
Console×Ö·û½çÃæ¡£
ÔÚ×Ö·û½çÃæÏ´òÈëÃüÁîstartx¿É½øÈëͼÐνçÃ棬ͼÐνçÃæϼüÈëctrl+alt+backspace½øÈë×Ö·û½çÃæ¡ ......