centos 6.5下安装glassfish4
来源:互联网 发布:淘宝餐具店铺装修素材 编辑:程序博客网 时间:2024/06/05 09:10
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080-j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8181-j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3700-j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7676-j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306-j ACCEPT
保存并退出,重启防火墙
$service iptables restart
3、注册系统服务并设置开启自启动
$cd /usr/local/glassfish4/glassfish/bin
$./asadmin create-service domain1
出现下列提示表示成功
Found the Linux Service and successfullyuninstalled it.
The Service was createdsuccessfully. Here are the details:
Name of theservice:domain1
Type of theservice:Domain
Configuration location of theservice:/etc/init.d/GlassFish_domain1
User account that will run theservice: root
You have created the service but youneed to start it yourself.
* /etc/init.d/GlassFish_domain1start
* /etc/init.d/GlassFish_domain1stop
* /etc/init.d/GlassFish_domain1restart
For yourconvenience this message has also been saved to this file:$HOME_PATH$/glassfish4/glassfish/domains/domain1/PlatformServices.log
Commandcreate-service executed successfully.
#查看系统服务:$service--status-all | grep GlassFish_domain1
可以看到注册成功
usage: /etc/init.d/GlassFish_domain1(start|stop|restart|help)
测试GlassFish是否成功启动关闭
$service GlassFish_domain1start/stop
#设置开机自启动
$vi /etc/init.d/GlassFish_domain1
在脚本开头#!/bin/sh
# @author kinseorg kinse
# chkconfig: 2345 15 95
# description: GlassFish_domain1
设置GlassFish服务开机启动:$chkconfig GlassFish_domain1on
查看是否成功:$chkconfig --list
新建多个domain
./asadmincreate-domain --adminport 4849 --instanceport8080
新建完了还要开通远程管理权限,否则会报错,如下图
- centos 6.5下安装glassfish4
- GlassFish4安装部署
- Glassfish4.1安装及配置
- Windows环境下Glassfish4.1集群搭建
- centos 6.5下安装jenkins
- centos 6.5 下安装mysql
- CentOS 6.5下安装MPlayer
- Centos 6.5 下安装 Matlab
- Centos 6.5 下安装Thrift
- centos 6.5 下安装 mysql
- centos 6.5下安装jdk
- CentOS 6.5 下 Smokeping 安装
- centos 6.5下安装 chrome
- centos 6.5 下安装mysql
- CentOS 6.5下安装BeEF
- Centos 6.5下安装ftp
- Centos 6.5下安装图形界面
- CentOS 6.5 下安装 Redis
- Codeforces Round #214 (Div. 2)---C. Dima and Salad
- HELLO,遗传算法
- Centos7下rc.local文件开机不执行…
- Oracle数据库迁移的几种方式
- Linux 文件内容查阅的几种方法
- centos 6.5下安装glassfish4
- linux下glassfish的优化管理界面登…
- Linux下源码编译mysql
- Git Step by Step (7):Git远程仓库(续)
- Centos下安装php
- Linux 系统挂载数据盘
- linux下安装apache
- mysql连接池和 "Timeout expired"异常
- Linux下FTP的安装配置