欢迎来到天天文库
浏览记录
ID:37552837
大小:220.93 KB
页数:9页
时间:2019-05-25
《JBoss安装加固及日志分析》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、JBOSS安装加固及日志分析JRE安装[root@localhostlocal]#cpjre-6u10-linux-i586.bin/usr/local/[root@localhostlocal]#chmod755jre-6u10-linux-i586.bin[root@localhostlocal]#./jre-6u10-linux-i586.bin//执行解压[root@localhostlocal]#vi/etc/profile//配置环境变量#setjavaenvironmentJAVA_HOME=/usr/local/jre1.6.0_10PATH=$
2、PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/binCLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/libexportJAVA_HOMEPATHCLASSPATH[root@localhostlocal]#source/etc/profile//配置文件生效[root@localhostbin]#echo$JAVA_HOME//检查变量是否生效[root@localhostbin]#echo$CLASSPATH[root@localhostbin]#ln-s/usr/local/jre1
3、.6.0_10/bin/java/usr/bin/java[root@localhostbin]#java-version//检查java命令执行JBOSS安装[root@localhost~]#mvjboss-4.2.3.GA//usr/local///JBOSS目录[root@localhostlocal]#vi/etc/profile//设置JBOSS环境变量#setjbossenvironmentJBOSS_HOME=/usr/local/jboss-4.2.3.GAPATH=$PATH:$JBOSS_HOME/binCLASSPATH=.:$CLASS
4、PATH:$JBOSS_HOME/libexportJBOSS_HOMEPATHCLASSPATH[root@localhostlocal]#source/etc/profile[root@localhostlocal]#echo$JBOSS_HOME//检查环境变量[root@localhostdeploy]#cd/usr/local/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer/[root@localhostjboss-web.deployer]#cp-aserver.xmlserver.xml
5、.bak[root@localhostjboss-web.deployer]#viserver.xml//修改监听地址、端口6、50.37:8080///测试JBOSS运行设置开机启动[root@localhostbin]#vijboss_init_redhat.sh//启动脚本JBOSS_HOME=${JBOSS_HOME:-"/usr/local/jboss-4.2.3.GA"}JBOSS_USER=${JBOSS_USER:-"root"}JAVAPTH=${JAVAPTH:-"/usr/local/jre1.6.0_10/bin"}[root@localhostbin]#cpjboss_init_redhat.sh/etc/rc.d/init.d/jboss[root@local7、hostbin]#chmod755/etc/init.d/jboss[root@localhost~]#/etc/rc.d/init.d/jbossstart/restart/stop//启动JBOSS[root@localhostinit.d]#ln-s/etc/init.d/jboss/etc/rc3.d/K20jboss//启动级别[root@localhostinit.d]#ln-s/etc/init.d/jboss/etc/rc3.d/S80jboss[root@localhostinit.d]#ln-s/etc/init.d/jboss/etc/rc58、.d/K2
6、50.37:8080///测试JBOSS运行设置开机启动[root@localhostbin]#vijboss_init_redhat.sh//启动脚本JBOSS_HOME=${JBOSS_HOME:-"/usr/local/jboss-4.2.3.GA"}JBOSS_USER=${JBOSS_USER:-"root"}JAVAPTH=${JAVAPTH:-"/usr/local/jre1.6.0_10/bin"}[root@localhostbin]#cpjboss_init_redhat.sh/etc/rc.d/init.d/jboss[root@local
7、hostbin]#chmod755/etc/init.d/jboss[root@localhost~]#/etc/rc.d/init.d/jbossstart/restart/stop//启动JBOSS[root@localhostinit.d]#ln-s/etc/init.d/jboss/etc/rc3.d/K20jboss//启动级别[root@localhostinit.d]#ln-s/etc/init.d/jboss/etc/rc3.d/S80jboss[root@localhostinit.d]#ln-s/etc/init.d/jboss/etc/rc5
8、.d/K2
此文档下载收益归作者所有