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
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
ÔÚLinux ÖУ¬¶¯Ì¬¿âµÄËÑË÷·¾¶³ýÁËĬÈϵÄËÑË÷·¾¶Í⣬»¹¿Éͨ¹ýÈýÖÖ·½·¨À´Ö¸¶¨£º·½·¨Ò»£ºÔÚÅäÖÃÎļþ/etc/ld.so.confÖÐÖ¸¶¨¶¯Ì¬¿âËÑË÷·¾¶£»·½·¨¶þ£ºÍ¨¹ý»·¾³±äÁ¿LD_LIBRARY_PATHÖ¸¶¨¶¯Ì¬¿âËÑË÷·¾¶£»·½·¨Èý£ºÔÚ±àÒëÄ¿±ê´úÂëʱָ¶¨¸Ã³ÌÐòµÄ¶¯Ì¬¿âËÑË÷·¾¶¡£
ÖÚËùÖÜÖª£¬Linux¶¯Ì¬¿âµÄĬÈÏËÑË÷·¾¶ÊÇ/libºÍ/usr/lib¡£¶¯Ì¬¿â±» ......
system-config-printer ͼÐνçÃæÉèÖôòÓ¡»ú
BSD(FreeBSD)/System V
lpr/lp ´òÓ¡ÎļþÃû ´òÓ¡
lpr -P´òÓ¡»úÃû ´òÓ¡ÎļþÃû
lp &nb ......
Ò»¡¢Óû§¹ÜÀíÀàÃüÁ
1¡¢Ìí¼ÓÓû§adduser
ÀýÈ磺ÔÚ192.168.20.11ÉÏ´´½¨Óû§yyj,ÊäÈëÈçÏÂÃüÁ
useradd yyj -s /bin/csh -d /home/yyj -m
ÕâÑù´´½¨Íê³ÉÓû§yyj
2¡¢ÉèÖÃÓû§yyjµÄÃÜÂ룺
passwd yyj
ÊäÈë2´Î¿ÚÁ¾ÍÉèÖÃÃÜÂë³É¹¦¡£
3¡¢É¾³ýÓû§yyj
rm -r yyj
¶þ¡¢½âѹÎļþ
³ ......