centos7.5 配置java

in 默认分类 with 48 comments

https://blog.csdn.net/sizhezhongnian/article/details/81142976

一、下载linux版本的jdk,可去官网下载

官网:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

选择自己需要的版本,对应下载即可。

二、上传至linux并解压

ftp工具有很多,自行上传至linux文件夹内即可。

首先创建java的目录,java的目录可以自行选择创建

cd /usr

mkdir java

cd /usr/java

将下载好的 .tar.gz 文件上传至 /usr/java文件夹下

然后执行命令

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

解压之后,java文件夹应该会出现

cd jdk1.8.0_181

三、配置环境变量

将目录切换至 /etc 目录下

cd /etc

找到 profile 文件

用vim编辑器来编辑profile文件,在文件末尾添加一下内容(按“i”进入编辑):

进入编辑界面后,在文件最后添加

JAVA_HOME

JAVA_HOME=/usr/java/jdk1.8.0_181
CLASSPATH=$JAVA_HOME/lib/
PATH=$PATH:$JAVA_HOME/bin
export PATH JAVA_HOME CLASSPATH

JAVA_HOME为安装解压的java目录,请根据实际路径进行替换

按 Esc 键,输入:wq回车,保存并退出

然后输入source /etc/profile 命令,让修改的配置立马生效。

四、检查是否安装成功

输入 java -version 命令


作者:僵尸吃过跳跳糖
来源:CSDN
原文:https://blog.csdn.net/sizhezhongnian/article/details/81142976
版权声明:本文为博主原创文章,转载请附上博文链接!

Responses
  1. amoxicillin 500mg online uk

    Reply
  2. where can i buy allopurinol uk

    Reply
  3. prescription free canadian pharmacy

    Reply
  4. cymbalta 30 mg coupon

    Reply
  5. sale levitra

    Reply
  6. vermox online pharmacy

    Reply
  7. where to buy propecia in australia

    Reply
  8. ivermectin lotion for lice

    Reply
  9. best price cafergot

    Reply
  10. sildalis

    Reply
  11. metformin 40mg

    Reply
  12. cost of allopurinol in nz

    Reply
  13. buy furosemide tablets uk

    Reply
  14. price of vermox in usa

    Reply
  15. https://sarai-taj.com/ taj city اسعار
    أسعار كمبوند سراي
    اسعار تاج سيتى
    اسعار سراي القاهرة الجديدة
    اسعار كمبوند تاج سيتي
    اسعار كمبوند سراي القاهرة الجديدة
    اسعار مشروع سراي
    تاج سيتى
    تاج سيتى القاهرة الجديدة
    تاج سيتى كمبوند
    تاج سيتي القاهرة الجديدة
    تاج سيتي مدينة نصر
    سراى القاهرة الجديدة
    سراى سيتى
    سراى كمبوند
    سراى كمبوند القاهرة الجديدة
    سراي مدينة نصر
    كمبوند sarai
    كمبوند تاج سيتى
    كمبوند تاج سيتي القاهرة الجديدة
    كمبوند تاج سيتي مدينة نصر
    كمبوند سراى
    كمبوند سراى القاهرة الجديدة
    مشروع sarai
    مشروع تاج سيتى
    مشروع تاج سيتى مدينة نصر
    مشروع تاج سيتي القاهرة الجديدة
    مشروع سراى
    مشروع سراى مدينة نصر
    مشروع سراي القاهرة الجديدة
    مشروع مدينة نصر الجديدة
    موقع تاج سيتي
    موقع كمبوند سراي
    موقع كمبوند سراي القاهرة الجديدة
    https://sarai-taj.com/
    taj city Prices
    Sarai compound prices
    Taj City prices
    New Cairo Saray prices
    Taj City Compound Prices
    Sarai New Cairo Compound Prices
    Saray project prices
    Taj City
    Taj City New Cairo
    Taj City Compound
    Taj City New Cairo
    Taj City, Nasr City
    Saray New Cairo
    Saray City
    Saray Compound
    Saray New Cairo Compound
    Nasr City Saray
    Sarai Compound
    Taj City Compound
    Taj City Compound, New Cairo
    Taj City Compound, Nasr City
    Saray Compound
    Sarai New Cairo Compound
    saray project
    Taj City project
    Taj City project, Nasr City
    Taj City New Cairo project
    Saray project
    Saray Nasr City project
    Saray New Cairo project
    New Nasr City project
    Taj City website
    Sarai Compound location
    https://sarai-taj.com/
    Sarai compound location, New Cairo

    Reply
  16. ciprofloxacin 500 mg prescription

    Reply
  17. fluoxetine 6 mg

    Reply
  18. ####### OPVA ########
    ULTIMATE РТНС COLLECTION
    NO PAY, PREMIUM or PAYLINK
    DOWNLOAD ALL СР FOR FREE

    Description:-> vo.la/bzx9Uu

    Webcams РТНС 1999-2022 FULL
    STICKAM, Skype, video_mail_ru
    Omegle, Vichatter, Interia_pl
    BlogTV, Online_ru, murclub_ru

    Complete series LS, BD, YWM
    Sibirian Mouse, St. Peterburg
    Moscow, Liluplanet, Kids Box
    Fattman, Falkovideo, Bibigon
    Paradise Birds, GoldbergVideo
    Fantasia Models, Cat Goddess
    Valya and Irisa, Tropical Cuties
    Deadpixel, PZ-magazine, BabyJ
    Home Made Model (HMM)

    Gay рthс collection: Luto
    Blue Orchid, PJK, KDV, RBV

    Nudism: Naturism in Russia
    Helios Natura, Holy Nature
    Naturist Freedom, Eurovid

    ALL studio collection: from
    Acrobatic Nymрhеts to Your
    Lоlitаs (more 100 studios)

    Collection european, asian,
    latin and ebony girls (all
    the Internet video) > 4Tb

    Rurikon Lоli library 171.4Gb
    manga, game, anime, 3D

    This and much more here:
    or --> tw.uy/ksjqn
    or --> url.pm/hRfA1
    or --> u2b.eu/ua
    or --> v.ht/TvQgk
    or --> cutt.us/cglpS
    or --> t1p.de/cbyw7
    or --> gg.gg/1348na
    or --> gurl.pro/w-0i6v
    or --> 0se.co/Z5IoP
    -----------------
    -----------------
    000A000363

    Reply
  19. advair diskus canada

    Reply
  20. 1000 mg motrin

    Reply
  21. generic tadacip

    Reply
  22. lisinopril brand

    Reply
  23. silagra tablets india

    Reply
  24. benicar 80 mg

    Reply
  25. zestoretic 20 25 mg

    Reply
  26. tadacip 10 mg price in india

    Reply
  27. propecia cost

    Reply
  28. buspar 10

    Reply
  29. atarax 25 mg

    Reply
  30. buy clindamycin online without prescription

    Reply
  31. zestoretic cost

    Reply
  32. zoloft generic tablet cost

    Reply
  33. budesonide 9 mg tablets in india

    Reply
  34. lipitor 5 mg tablet

    Reply
  35. colchicine buy

    Reply
  36. permethrin cost

    Reply
  37. trazodone 4 mg

    Reply
  38. CPJames

    Nah, ada artikel yang cukup bagus tentang tiktok save service. https://riotallo.com/manfaat-pakai-savefrom-net-yang-perlu-anda-ketahui bisa berguna

    Reply
  39. tetracycline cost uk

    Reply
  40. Medicines message for patients. Cautions.
    cenforcehim.com viagra gel australia
    All trends of meds. Win over get gen here.

    Reply
  41. how much is propecia

    Reply
  42. cost of benicar

    Reply
  43. medrol 500 mg

    Reply
  44. zoloft 150 mg

    Reply
  45. medstore online pharmacy

    Reply
  46. tadacip online uk

    Reply
  47. buy celebrex in mexico

    Reply
  48. bactrim ds cost

    Reply