Linux系统 程序发布管理



./stopWebLogic.sh
查看相关web进程
ps -ef|grep web

强制结束进程
kill -9 pid

环境变量设施
set java environment
JAVA_HOME=/usr/local/jdk1.6.0_27
CLASSPATH=.:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH

JBOSS_HOME=/usr/local/jboss-4.2.2.GA 
export JBOSS_HOME
--- linux字符编码设施
export LANG=zh_CN.GB18030

启动服务
cd /root/Oracle/Middleware/user_projects/domains/base_domain/bin
nohup ./startWebLogic.sh

cd /usr/local/jboss-4.2.2.GA/bin
nohup ./run.sh&


-Xms512m -Xmx1024m -XX:MaxPermSize=256m 

重启 linux
reboot

卸载jdk
rpm -e -nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115

删除文件夹
rm -rf /var/log/httpd/access

查看输出日志
tail -f nohup.out

查看运行端口
netstat -aon|findstr "80"

设施weblogic缓存大小
setDomainEnv.sh

WLS_MEM_ARGS_64BIT="-Xms256m -Xmx512m"
export WLS_MEM_ARGS_64BIT
WLS_MEM_ARGS_32BIT="-Xms512m -Xmx1024m"
export WLS_MEM_ARGS_32BIT

MEM_PERM_SIZE_64BIT="-XX:PermSize=128m"
export MEM_PERM_SIZE_64BIT
MEM_PERM_SIZE_32BIT="-XX:PermSize=128m"
export MEM_PERM_SIZE_32BIT

MEM_MAX_PERM_SIZE_64BIT="-XX:MaxPermSize=256m"
export MEM_MAX_PERM_SIZE_64BIT
MEM_MAX_PERM_SIZE_32BIT="-XX:MaxPermSize=256m"
export MEM_MAX_PERM_SIZE_32BIT

 
引用

你可能感兴趣的:(linux)