sh 在Ubuntu 16上安装Java 8和Payara41
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在Ubuntu 16上安装Java 8和Payara41相关的知识,希望对你有一定的参考价值。
#!/usr/bin/env bash
apt update && apt upgrade -y
apt install unzip software-properties-common python-software-properties -y
add-apt-repository ppa:webupd8team/java
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
apt update
apt install oracle-java8-installer -y
echo 'JAVA_HOME="/usr/lib/jvm/java-8-oracle"' >> /etc/environment
sudo su -c 'source /etc/environment' root
wget -O payara.zip 'https://info.payara.fish/cs/c/?cta_guid=de4a19f2-46e5-4f92-88ae-36300d4edcc2&placement_guid=6c4914a9-26de-4da5-b0fe-cd9f01ed1bea&portal_id=334594&redirect_url=APefjpFLJCscXjjyTZxF8DzrjDp92jpv1PfxZEaq0z9tEGDNKdDDcBUksRdem5UzEwTKXbmCmwu-NU4oxhxBGPIQ21jUK8yT8KNsFNHFEACHpQnqpdORtZHXzEFb9vlRDi7YYyKwuQWEfqzBAT4YS3piAGiOHdYRhHgykhkYRdSaCPUXGaxcwdsi85yBbvexQEJ3Od3WJjFBx2znY2g52IPHs6RfTFyt-d6A8ct5gQHP2BSRl5pUZIH43FjB8K-2neBdjlUgUq0I&hsutk=94da42c6ad0e95534ef17c63a05d6a7f&canon=https%3A%2F%2Fwww.payara.fish%2Fdownloads&click=3479ba50-0a15-4ac2-bb77-885a95e03e46&utm_referrer=http%3A%2F%2Fblog.payara.fish%2Finstalling-payara-server-on-ubuntu&__hstc=229474563.94da42c6ad0e95534ef17c63a05d6a7f.1508074675775.1508074675775.1510863481151.2&__hssc=229474563.13.1510863481151&__hsfp=4211000000'
unzip payara.zip
rm -rf payara.zip
mv payara41 /opt/payara
mkdir /opt/payara/applications
wget -O /opt/payara/applications/team-info.war https://github.com/payara/Payara-Examples/blob/master/Administration-Samples/team-info.war?raw=true
echo "PATH=$PATH:/opt/payara/glassfish/bin" >> /etc/environment
以上是关于sh 在Ubuntu 16上安装Java 8和Payara41的主要内容,如果未能解决你的问题,请参考以下文章
Tomcat 8.5.15对ubuntu 16内存不足的错误
sh 在Ubuntu 16.04上安装ChromeDriver和Selenium
sh 在Ubuntu 16.04上安装Chrome,ChromeDriver和Selenium
sh 在Ubuntu 16.04上安装Chrome,ChromeDriver和Selenium
sh 易于安装openresty(在Ubuntu 14.04,15.10和16.04上使用和测试)
sh 在Ubuntu 16.04上安装CUDA Toolkit v8.0和cuDNN v6.0