CentOS 7上安装Payara 4.1

为了测试一款开源的PLM,第一次使用Payara环境。

  1. 安装JDK
  2. centos配置
  3. 下载Payara
  4. 配置centos服务

yum install java-1.8.0-openjdk-headless

添加用户

adduser payara

其他

删除用户 userdel payara -r


cd /opt

wget http://search.maven.org/remotecontent?filepath=fish/payara/distributions/payara/4.1.2.181/payara-4.1.2.181.zip

*建议迅雷或其他工具下载后,上传上去。

unzip payara-4.1.2.173.zip

chown -R payara:payara payara41

vi /etc/systemd/system/payara.service

US eBay/PayPal Accounts For Sale – Fast Delivery – Stealther With 5+ Years Experince – eBay Suspension & Paypal Limited Forums

[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

然后网页访问

http://ip:4848
passwd payara
su payara
cd /home/payara
vim .bashrc
export PATH=$PATH:/opt/payara41/glassfish/bin

WEB GUI 管理

https://www.d.umn.edu/~gshute/cs4531/project/s2016/unix/configure-payara.xhtml

参考

https://docs.payara.fish/getting-started/getting-started.html