java - 在linux上安装jdk是安装在系统路径下(例如/usr/local),还是普通用户自己的路径下
阿神
阿神 2017-04-17 17:18:41
0
4
473

开发环境和生产环境是否不一样

阿神
阿神

闭关修行中......

reply all(4)
迷茫

It depends on how you install it
It can be installed in any directory
Usually operation and maintenance will have installation and deployment specifications, which shall prevail

大家讲道理

which java look where you clicked

左手右手慢动作

It depends on which method you use to install it
Under Ubuntu, directly apt-get的话jdk目录在/usr/lib/jvm/下(因此个人推荐安在这), 这种情况下which java看到的是软链接的路径, 不是真正的jdkdirectly locate the directory

阿神

I downloaded the tar package myself, unzipped it directly under my home directory, and then configured it .bashrc under

export JAVA_HOME=/home/xxx/jdk
export $PATH=$PATH:$JAVA_HOME/bin
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!