首页 > 系统相关 >Centos安装配置Java8

Centos安装配置Java8

时间:2024-03-19 14:15:13浏览次数:34  
标签:Centos Repository once than listed configuration 安装 Java8 more

查看Centos发行版本

[root@lavm-ik3g4r3pga ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

查看java8安装包

[root@lavm-ik3g4r3pga ~]# yum list java-1.8*
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast

安装java8

[root@lavm-ik3g4r3pga ~]# yum install java-1.8.0-openjdk.x86_64
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
base                         
[root@lavm-ik3g4r3pga ~]# yum install java-1.8.0-openjdk-devel.x86_64
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.372.b07-1.el7_9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

查看安装效果

[root@lavm-ik3g4r3pga ~]# java -version
openjdk version "1.8.0_372"
OpenJDK Runtime Environment (build 1.8.0_372-b07)
OpenJDK 64-Bit Server VM (build 25.372-b07, mixed mode)
[root@lavm-ik3g4r3pga ~]# javac -version
javac 1.8.0_372

标签:Centos,Repository,once,than,listed,configuration,安装,Java8,more
From: https://www.cnblogs.com/heyangyi/p/18082611

相关文章

  • CentOS开启防火墙及开放指定端口
    查看防火墙状态systemctlstatusfirewalld启动防火墙systemctlstartfirewalld停止防火墙systemctlstopfirewalld查看防火墙已经开放的端口firewall-cmd--list-port添加开放指定端口firewall-cmd--zone=public--add-port=这里是需要开启的端口号/tcp--perman......
  • Windows 安装 DB2数据库
    IBMDB2是美国IBM公司开发的一套关系型数据库管理系统,它主要的运行环境为UNIX(包括IBM自家的AIX)、Linux、IBMi(旧称OS/400)、z/OS,以及Windows服务器。 下载 DB2Express-CforWindowsx6410.1 免费版解压后,以管理员身份安装默认端口:5000用户名:db2admin密码:d......
  • fnm安装教程
    在windows10安装使用fnm1.下载安装下载地址:https://github.com/Schniz/fnm/releases2.配置环境变量把下载好了的fnm.exe放到,自己创建好的目录下,我是方便再E:\fnm的目录下面再去环境变量的系统变量的path里面添加以下刚刚E:\fnm再在外面加上这两个就可以了......
  • 【渗透工具】BurpSuite汉化无cmd框版安装教程
    【本文仅记录个人安装过程,教程来自:https://www.52pojie.cn/thread-1544866-1-1.html】安装链接123网盘(不限速需登录免客户端)https://www.123pan.com/s/F2W5Vv-Rk7Vv.html提取码:52pj安装步骤选择所需安装的版本:笔者下载2022.11版本并解压:双击运行文件夹中的清......
  • Windows系统安装OpenSSL库最新版方法
    默认的Windows系统是不带openssl功能的,因此当需要生成密钥或证书时需要先安装openssl库。否则报错openssl:无法将“openssl”项识别为cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。 安装方法步骤一前往网站......
  • CPP编译器安装(Windows环境)
    编译器选择一些常用的C++编译器:GNUCompilerCollection(GCC):GCC支持多种编程语言,包括C++,是一个免费开源的编译器套件,我们常用的是以下两种。GCC:C语言编译器,也称为gcc**G++:**C++语言编译器,也称为g++它是许多Linux发行版的默认编译器,也可在其他操作系统上使用......
  • Linux安装和运行Pomelo
    1.安装启动pomelo1.在data目录下创建文件夹node和server,将服务器代码上传到server下2.进入node目录cd/data/node3.下载wgethttps://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.xz4.解压tar-xfnode-v10.16.3-linux-x64.tar.xz5.进入cdnode-v10.16.3-lin......
  • linux安装chrome
    一.安装chrome下载安装脚本wgethttps://intoli.com/install-google-chrome.sh1然后授予可执行权限chmod755./install-google-chrome.sh1执行脚本./install-google-chrome.sh1安装脚本会自动下载、安装chrome(合适的版本),并且目前两个系统中,所缺少的依赖,都会被安装。测试安装结果......
  • # Docker安装使用Redis
    拉取最新版本redisdockerpullredis:7.2.4查看镜像dockerimages新建本地挂载配置文件夹(位置随意)1、创建文件夹(位置随意):data、confredis默认配置只能够本地连接、不能进行远程访问需要手动挂载redis配置文件mkdir-p/docker-root/redis_6379/datamkdir-p/d......
  • Clickhouse TGZ安装方式的卸载(Clickhouse重装失败)
    1.停止ClickHouse服务sudoserviceclickhouse-serverstop2.删除所有的数据和日志文件sudorm -rf/var/lib/clickhouse/sudorm -rf/var/log/clickhouse-server/3.如果你使用的是systemd来管理服务,你可以通过以下命令来停止并删除服务sudosystemctlstopclickhouse-serv......