lniux安装jdk tomcat 和vi的使用


rpm -q java
rpm -a|more

cd/
ls
mkdir java
cd
ls
rpm -ivh jdk-6.rpm

ls
rpm -qf jdk



whereis java
user/bin/java/jdk1.6.0 
cd bin

10:12 2011-1-17

./java


vi .bash_profile
JAVA_HOME=/user/java/jdk1.6.0/
CLASSPATH=.:$JAVA_HOME/bin
PATH=$JAVA_HOME/bin:$PATH:=$HOME/bin
source
cd /etc
ls/r
bashrc
ls -all .bash_profile


:q!



vi profile

JAVA_HOME=/user/java/jdk1.6.0/
CLASSPATH=.:$JAVA_HOME/bin
PATH=$PATH:$JAVA_HOME/bin

$ ls
mkdir java
cd java
mkdir src
mkdir bin
10:32 2011-1-17

javac -d ../bin Date.java
cd ../bin
ls
java mv *.jar 

java -cp Date.jar 
logout
安装tomcat

man tar
q


tar -xvzf apach


mv apache /opt/tomcat






CATALINA_HOME=/OPT/tomcat
classpath=

export path lang language


source .bash_profile
startup.sh
tail -f /opt/tomcat/logs/catalina.out
head /opt/tomcat/logs/catalina.out
shutdown
ps   -e|grep tomcat

kill
tail -f /opt/tomcat/logs/catalina.out
shutdowm.sh


vi的使用

vi +/
set nu
shift :

wq
:x zz


w

esc+i o a d I A O h j k l
ctrl+bfdu
Gwd
x


u回退
c3w
yy

P
/word
?word从后往前查找

忽略大小写  :set ic setnoic
n
跳行
:
替换


emacs




















你可能感兴趣的:(java,jdk,tomcat,bash,emacs)