为了测试一款开源的PLM,第一次使用Payara环境。
- 安装JDK
- centos配置
- 下载Payara
- 配置centos服务
yum install java-1.8.0-openjdk-headless
添加用户
adduser payara
其他
删除用户 userdel payara -r
cd /opt
*建议迅雷或其他工具下载后,上传上去。
unzip payara-4.1.2.173.zip
chown -R payara:payara payara41
vi /etc/systemd/system/payara.service
[Unit]
Description = Payara Server v4.1
After = syslog.target network.target
[Service]
User=payara
ExecStart = /usr/bin/java -jar /opt/payara41/glassfish/lib/client/appserver-cli.jar start-domain
ExecStop = /usr/bin/java -jar /opt/payara41/glassfish/lib/client/appserver-cli.jar stop-domain
ExecReload = /usr/bin/java -jar /opt/payara41/glassfish/lib/client/appserver-cli.jar restart-domain
Type = forking
[Install]
WantedBy = multi-user.target
重启
reboot
systemctl enable payara
systemctl start payara
systemctl restart payara
systemctl stop payara
systemctl status payara
然后网页访问
passwd payara
su payara
cd /home/payara
vim .bashrc
export PATH=$PATH:/opt/payara41/glassfish/bin
WEB GUI 管理
参考
文章评论