linux入门(安装软件)

来源:互联网 发布:java date时间差 编辑:程序博客网 时间:2021/12/08 08:33

1.安装JDK

         *添加执行权限

                   chmodu+x jdk-6u45-linux-i586.bin

         *解压

                   ./jdk-6u45-linux-i586.bin

         *在/usr目录下创建java目录

                   mkdir/usr/java

         *将/soft目录下的解压的jdk1.6.0_45剪切到/usr/java目录下

                   mvjdk1.6.0_45/ /usr/java/

         *添加环境变量

                   vim/etc/profile

                   *在/etc/profile文件最后添加

                            exportJAVA_HOME=/usr/java/jdk1.6.0_45

                            exportCLASSPATH=$JAVA_HOME/lib

                            exportPATH=$PATH:$JAVA_HOME/bin

         *更新配置

                   source/etc/profile

                  

2.安装tomcat

         tar-zxvf /soft/apache-tomcat-7.0.47.tar.gz -C /programs/

         cd/programs/apache-tomcat-7.0.47/bin/

         ./startup.sh

0 0