Deprecated: Constant E_STRICT is deprecated in /www/wwwroot/system/core/Exceptions.php on line 75

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_URI::$config is deprecated

Filename: core/URI.php

Line Number: 101

Backtrace:

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Router::$uri is deprecated

Filename: core/Router.php

Line Number: 127

Backtrace:

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$benchmark is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$hooks is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$config is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$log is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$utf8 is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$uri is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$exceptions is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$router is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$output is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$security is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$input is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$lang is deprecated

Filename: core/Controller.php

Line Number: 75

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$load is deprecated

Filename: core/Controller.php

Line Number: 78

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$db is deprecated

Filename: core/Loader.php

Line Number: 390

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_DB_mysqli_driver::$failover is deprecated

Filename: database/DB_driver.php

Line Number: 371

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 132

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 290

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 164

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 233

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 313

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_files_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_files_driver.php

Line Number: 354

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 284

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 291

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 306

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 316

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 317

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 318

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 319

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 377

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: drivers/Session_files_driver.php

Line Number: 108

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 110

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Session cannot be started after headers have already been sent

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Detail::$session is deprecated

Filename: core/Loader.php

Line Number: 1279

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 6
Function: __construct

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$benchmark is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$hooks is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$config is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$log is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$utf8 is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$uri is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$exceptions is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$router is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$output is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$security is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$input is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$lang is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$load is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$db is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Loader::$session is deprecated

Filename: core/Loader.php

Line Number: 925

Backtrace:

File: /www/wwwroot/Art/application/core/MY_Controller.php
Line: 39
Function: view

File: /www/wwwroot/Art/application/controllers/Detail.php
Line: 32
Function: display

File: /www/wwwroot/Art/index.php
Line: 292
Function: require_once

centos7yum安装jdk环境-文章详情-小白的笔记本

centos7yum安装jdk环境

作者:小白鱼鱼来源:原创发布:2022-05-10阅读:1765
如需转载此文,请注明原文转载地址,以尊重原创人员!
标签:centos,java,jdk
上篇 下篇 关闭 设置
原文地址:https://www.timberkito.com/?p=12

方法一:使用yum安装jdk环环境

1.查看云端yum库中目前支持安装的jdk软件包

yum search java|grep jdk

11115.png

2.选择版本安装jdk

 yum install -y java-1.8.0-openjdk*

3.安装完成后,验证是否安装成功

java -version

版本.png

4.查找jdk安装位置

find / -name 'java'

image.png

默认安装路径一般为:
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.151-5.b12.el7_4.x86_64/jre/bin/java

方法二:从Oracle获取安装包,手动安装

1.从Oracle官网中获取jdk安装包

本案例使用jdk8演示

下载地址:https://www.oracle.com/cn/java/technologies/javase-downloads.html

image.png

根据系统版本和位数选择tar.gz

image.png

复制下载链接

image.png

https://download.oracle.com/otn-pub/java/jdk/8.0.1+9/51f4f36ad4ef43e39d0dfdbaf6549e32/jdk-8.0.1_linux-x64_bin.tar.gz

创建文件夹,使用wget命令获取安装包


mkdir /usr/java

cd /usr/java

wget https://download.oracle.com/otn/java/jdk/8u271-b09/61ae65e0886

等待下载

image.png

2.解压安装jdk

使用tar命令解压安装包

tar zxvf jdk-8.0.1_linux-x64_bin.tar.gz

3.配置系统环境变量

用Vim打开profile

vim /etc/profile

在文档末尾此处添加系统环境变量

image.png

键盘上按i键进入编写


export JAVA_HOME=/usr/share/jdk1.6.0_14

export PATH=$JAVA_HOME/bin:$PATH

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

注意:JAVA_HOME的路径是你实际解压后的JDK的路径

按esc退出编辑模式,再按shift+Q输入x保存

输入命令使profile生效

source /etc/profile

4.安装完成后,验证是否安装成功

java -version

版本.png


粤ICP备15070997号-1