In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces CentOS7.0 how to install Scala and sun jdk, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Install Scala on centOS7.0 found that the installed cenos7.0 has its own java-openjdk-headle.x86_64, try to see if it is easy to use and find that running .java source program found that the javac command can not be used, so I have to uninstall the jdk that comes with OS to install the jdk that comes with sun.
1. Check the openjdk package that comes with OS first.
[root@mycentos01 bin] # rpm-qa | grep java java-1.7.0-openjdk-1.7.0.512.4.5.5.el7.x86_64
two。 Uninstall related openjdk
[root@mycentos01 bin] # rpm-e-nodeps java-openjdk-headle.x86_64
3. Install jdk under your own sun official website
[root@mycentos01 bin] # tar-zxvf jdk-8u121-linux-x64.tar.gz
4. Install Scala downloaded by yourself
[root@mycentos01 bin] # tar-xzvf scala-2.10.6.tgz
5. Configure your own environment variables
[root@mycentos01 bin] # vim / etc/profile
6. Refresh the configuration file to make the configuration take effect
[root@mycentos01 bin] # source / etc/profile
Enter java-version and scala-version to see the installation and then OK.
Today, I also found a method before centOS7 changed the host name. It didn't work. I don't know why I used the command to write HOSTNAME= "a name what I want my computer called." to the "/ etc/sysconfig/network" file. " It does not work after reboot, and ensures that the input is the correct hostname. Finally, with the tool hostnametcl, it is changed to a static hostname, and the command: "[root@mycentos01 bin] # hostnamectl set-hostname" your computer name you want to set ""
Thank you for reading this article carefully. I hope the article "how to install Scala and sun jdk in CentOS7.0" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.