先删除centos自带的openjdk

查看当前系统的jdk

[parallels@10 program]$ rpm -qa | grep java

tzdata-java-2018e-3.el7.noarch

java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el7_5.x86_64

javapackages-tools-3.4.1-11.el7.noarch

java-1.7.0-openjdk-headless-1.7.0.191-2.6.15.4.el7_5.x86_64

java-1.8.0-openjdk-headless-1.8.0.181-3.b13.el7_5.x86_64

python-javapackages-3.4.1-11.el7.noarch

java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64

 

卸载删除

[parallels@10 program]$ sudo  rpm -e --nodeps java-1.7.0-openjdk-1.7.0.191-2.6.15.4.el7_5.x86_64

[sudo] parallels 的密码:

[parallels@10 program]$ sudo rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.191-2.6.15.4.el7_5.x86_64

[parallels@10 program]$ sudo rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.181-3.b13.el7_5.x86_64

[parallels@10 program]$ sudo rpm -e --nodeps java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64

 

下载jdk,这里用下载java8为例

下载地址:

https://download.oracle.com/otn/java/jdk/8u261-b12/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-linux-x64.tar.gz

下载后在目录解压jdk版本

 tar -zxvf jdk-8u261-linux-x64.tar.gz 

修改配置文件

[parallels@10 jdk1.8.0_261]$ sudo vim /etc/profile

在文件末尾增加配置

#java environment

export JAVA_HOME=/home/parallels/program/jdk1.8.0_261

export CLASSPATH=.:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar

export PATH=$PATH:${JAVA_HOME}/bin

执行命令,让配置文件立即生效

[parallels@10 jdk1.8.0_261]$ sudo vim /etc/profile

查看java是否成功

[parallels@10 jdk1.8.0_261]$ java -version

java version "1.8.0_261"

Java(TM) SE Runtime Environment (build 1.8.0_261-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

491 对 “centos安装jdk”的想法;

  1. What i don’t understood is in reality how you are no longer really
    a lot more smartly-liked than you may be now.
    You’re very intelligent. You understand thus significantly in relation to this topic, produced me individually consider it from numerous various angles.
    Its like men and women are not involved unless it’s something to do
    with Girl gaga! Your personal stuffs outstanding.
    All the time deal with it up! https://www.herpessymptomsinmen.org/where-to-buy-hydroxychloroquine/

  2. Pingback: cialis coupon 2019
  3. It is perfect time to make some plans for the longer term and it is time to be happy.

    I have learn this put up and if I could I desire to counsel you some interesting things or advice.

    Perhaps you can write next articles regarding this article.

    I wish to read more things about it!

  4. Pingback: generic cialis buy
  5. Pingback: viagra super active
  6. Pingback: viagra prices walmart
  7. Pingback: gabapentin anxiety
  8. Pingback: cialis 10mg sale
  9. Pingback: levitra prices usa
  10. Pingback: sildenafil pills uk
  11. Pingback: lipitor generic name
  12. It’s perfect time to make some plans for the long run and
    it’s time to be happy. I have read this put up and if I may I want to counsel you few interesting things or suggestions.
    Perhaps you could write next articles referring to
    this article. I desire to read more things about it!

  13. Pingback: meloxicam warnings
  14. Pingback: metoprolol er 25mg
  15. Pingback: losartan side effects
  16. Pingback: viagra pro
  17. Pingback: cialis timeline
  18. Pingback: cymbalta generics
  19. Pingback: prednisone withdrawal
  20. I have been browsing online more than 2 hours today, yet I never found any interesting article like yours.
    It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as
    you did, the net will be much more useful than ever before.

  21. Pingback: what is bupropion
  22. It is perfect time to make some plans for the longer
    term and it’s time to be happy. I have read this post
    and if I may just I wish to counsel you some interesting things
    or tips. Maybe you can write next articles regarding
    this article. I want to read more things about it!

  23. Pingback: buy buspar
  24. Pingback: zanaflex capsules
  25. Pingback: voltaren tabletten
  26. Pingback: carvedilol 6 25 mg
  27. Hi, i read your blog occasionally and i own a similar one and i was just
    wondering if you get a lot of spam feedback? If so how do you protect against it, any plugin or anything you
    can suggest? I get so much lately it’s driving me insane so any
    help is very much appreciated.

  28. Thanks for the suggestions shared on your blog. Something else I would like to talk about is that weight-loss is not information about going on a fad diet and trying to reduce as much weight as you can in a couple of days. The most effective way to lose weight naturally is by acquiring it little by little and obeying some basic recommendations which can make it easier to make the most out of your attempt to lose weight. You may know and be following most of these tips, nevertheless reinforcing information never does any damage.

  29. Pingback: viagra cialis combo
  30. Pingback: viagra pill picture
  31. Pingback: sildenafil women
  32. I was wondering if you ever thought of changing the page layout of your blog?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having one or 2 pictures.
    Maybe you could space it out better?

  33. I’m amazed, I have to admit. Rarely do I come across a blog
    that’s equally educative and engaging, and let me tell
    you, you have hit the nail on the head. The problem is an issue that too few folks are speaking intelligently about.
    I am very happy I found this during my search for something regarding this.

  34. It’s appropriate time to make some plans for the future
    and it is time to be happy. I have read this post and if I
    could I want to suggest you some interesting things
    or suggestions. Maybe you could write next articles referring to this article.
    I wish to read even more things about it!

  35. Hi there, i read your blog occasionally and i
    own a similar one and i was just curious if you get
    a lot of spam comments? If so how do you reduce it, any plugin or
    anything you can advise? I get so much lately it’s driving me crazy so any help is very much appreciated.

  36. Pingback: cefalexin
  37. Pingback: clindamycin
  38. Pingback: erythromycin base
  39. Pingback: cialis 5 mg cadciali
  40. Pingback: viagra for sale
  41. Pingback: viagra coupon
  42. It’s the best time to make some plans for the future and it’s
    time to be happy. I’ve read this post and if I could I want to suggest you few interesting things or tips.
    Maybe you could write next articles referring to this article.
    I desire to read even more things about it!

  43. It’s appropriate time to make a few plans for the future and it
    is time to be happy. I’ve learn this submit and if I could
    I wish to counsel you some interesting things or suggestions.
    Maybe you can write subsequent articles relating to this
    article. I want to read even more issues approximately it!

  44. Pingback: sildenafil 25 mg uk
  45. Greetings from Carolina! I’m bored to death at work so I
    decided to browse your site on my iphone during lunch
    break. I enjoy the info you present here and can’t wait to take
    a look when I get home. I’m surprised at how quick your blog loaded on my
    mobile .. I’m not even using WIFI, just 3G .. Anyways,
    good site!

  46. Pingback: viagra 100mg
  47. Pingback: natural viagra gnc
  48. Pingback: amazon viagra
  49. You actually make it seem so easy with your presentation but I
    find this topic to be really something which I think I would never understand.
    It seems too complicated and very broad for me.

    I’m looking forward for your next post, I will try to get the hang of it!

  50. Pingback: tadalafil liquid
  51. Pingback: levitra pricing
  52. It’s appropriate time to make some plans for the
    future and it’s time to be happy. I’ve read this publish and if I may I wish
    to suggest you some attention-grabbing issues or suggestions.
    Perhaps you could write subsequent articles referring to this article.
    I desire to read even more things about it!

  53. With havin so much content do you ever run into any issues of plagorism or copyright violation? My website has a lot
    of completely unique content I’ve either authored myself or outsourced
    but it looks like a lot of it is popping it up all over the web without my authorization. Do you know any techniques to help reduce content from being stolen? I’d truly appreciate it.

  54. Its like you read my thoughts! You appear to know a lot approximately this, such as you wrote the guide in it
    or something. I think that you simply could
    do with some percent to force the message home a bit, but instead of that, that is magnificent blog.

    A fantastic read. I’ll certainly be back.

  55. Pingback: furosemide uses
  56. Pingback: orlistat medication
  57. I’ve been browsing online more than 3 hours today, yet I never found
    any interesting article like yours. It’s pretty worth enough for me.
    Personally, if all website owners and bloggers made good content
    as you did, the web will be much more useful than ever before.

  58. Pingback: fluconazole mg
  59. Pingback: nolvadex peptide
  60. Hey there just wanted to give you a quick heads up.
    The text in your content seem to be running off the screen in Chrome.
    I’m not sure if this is a format issue or something to
    do with internet browser compatibility but I figured I’d post to let you know.
    The style and design look great though! Hope you get the problem resolved soon. Thanks

  61. Pingback: cialis 100mg tablets
  62. I’ve been surfing on-line more than three hours nowadays, yet I never found any fascinating article like yours.

    It is beautiful value sufficient for me. Personally, if all web owners and bloggers made just right content material as you did,
    the net will probably be much more helpful than ever before.

  63. Pingback: cialis savings coupon
  64. Pingback: cialis everyday
  65. Pingback: over counter viagra
  66. Pingback: sildenafil 100mg usa
  67. I truly love your blog.. Excellent colors & theme.
    Did you build this web site yourself? Please reply back as
    I’m planning to create my own personal website and would love to know where you got this from or what the theme
    is named. Cheers!

  68. It is appropriate time to make some plans for the future and it is time
    to be happy. I have read this post and if I could I desire to suggest you some interesting things
    or advice. Maybe you could write next articles referring to this article.
    I desire to read more things about it!

  69. I must thank you for the efforts you have put in penning this website.
    I really hope to view the same high-grade content by you later on as well.
    In truth, your creative writing abilities has motivated me to get my very
    own website now 😉

  70. Hello there! I could have sworn I’ve visited this site before but after browsing through many of the articles I realized it’s
    new to me. Nonetheless, I’m certainly delighted I came
    across it and I’ll be book-marking it and checking back often!

  71. I loved as much as you’ll receive carried out right here.
    The sketch is attractive, your authored material stylish.
    nonetheless, you command get got an impatience over that
    you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly very often inside
    case you shield this hike.

  72. I have been surfing online more than 4 hours today,
    yet I never found any interesting article like yours. It
    is pretty worth enough for me. In my opinion, if all site owners and bloggers
    made good content as you did, the net will be much more
    useful than ever before.

  73. Hi! Someone in my Myspace group shared this site with us so I came to check it out.
    I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers!
    Excellent blog and outstanding design.

  74. An impressive share! I have just forwarded this onto a co-worker who was doing a little
    research on this. And he actually ordered me breakfast due to the fact that I stumbled upon it for
    him… lol. So let me reword this…. Thanks for the meal!!
    But yeah, thanx for spending the time to discuss this issue here on your web site.

  75. Definitely believe that which you stated. Your favorite justification seemed
    to be on the net the simplest thing to be aware of.
    I say to you, I certainly get annoyed while people consider worries that they just don’t know about.

    You managed to hit the nail upon the top as well
    as defined out the whole thing without having side effect , people can take a signal.
    Will probably be back to get more. Thanks

  76. Hi would you mind stating which blog platform you’re using?
    I’m planning to start my own blog in the near future but I’m
    having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most
    blogs and I’m looking for something unique.
    P.S My apologies for being off-topic but I had to ask!

  77. Hi! I know this is kinda off topic but I was wondering which blog platform are you
    using for this site? I’m getting sick and tired of
    Wordpress because I’ve had problems with hackers and I’m
    looking at options for another platform. I would be awesome if you could point me in the direction of a good platform.

  78. Hiya! I know this is kinda off topic however , I’d figured I’d ask.
    Would you be interested in trading links or maybe guest writing a blog
    article or vice-versa? My website addresses a lot of the same
    topics as yours and I believe we could greatly benefit
    from each other. If you might be interested
    feel free to send me an e-mail. I look forward to hearing from you!
    Wonderful blog by the way!

  79. Woah! I’m really enjoying the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s
    hard to get that “perfect balance” between superb usability and visual
    appearance. I must say you have done a fantastic job with this.
    Also, the blog loads very quick for me on Internet explorer.
    Excellent Blog!

  80. Do you have a spam issue on this blog; I also am a blogger,
    and I was curious about your situation; many of us
    have created some nice practices and we are looking to trade solutions with others, why not shoot me
    an email if interested.

  81. It’s a pity you don’t have a donate button! I’d definitely donate to
    this superb blog! I suppose for now i’ll settle for bookmarking and adding your RSS
    feed to my Google account. I look forward to new updates and will share
    this website with my Facebook group. Chat soon!

  82. You’re so interesting! I don’t believe I have read something like
    this before. So nice to find someone with genuine thoughts on this topic.
    Really.. thank you for starting this up. This site is
    one thing that is needed on the web, someone with
    a little originality!

  83. Howdy this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors or if
    you have to manually code with HTML. I’m starting a blog soon but have no coding skills so I wanted to get guidance from someone with experience.

    Any help would be greatly appreciated!

  84. Pingback: viagra pills
  85. Pingback: generic viagra
  86. Pingback: order viagra

发表评论