dnf --version #查看 dnf版本
4.7.0
Installed: dnf-0:4.7.0-8.0.1.an8.noarch at Mon 04 Jul 2022 05:16:37 AM GMT
Built : OpenAnolis Community at Wed 18 May 2022 08:05:12 AM GMT
Installed: rpm-0:4.14.3-23.0.1.an8.x86_64 at Mon 04 Jul 2022 05:16:24 AM GMT
Built : OpenAnolis Community at Wed 18 May 2022 11:24:53 AM GMT
使用dnf查找jdk
dnf search java|grep jdk
检查是否已经安装了openjdk,查看具体版本
# java -version
openjdk version "1.8.0_342"
OpenJDK Runtime Environment (build 1.8.0_342-b07)
OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)
使用dnf安装openjdk1.8
dnf install java-1.8.0-openjdk
Repository epel is listed more than once in the configuration
上次元数据过期检查:2:08:27 前,执行于 2022年09月22日 星期四 13时52分44秒。
软件包 java-1.8.0-openjdk-1:1.8.0.342.b07-2.an8_6.x86_64 已安装。
依赖关系解决。
============================================================================================================================================================================
软件包 架构 版本 仓库 大小
============================================================================================================================================================================
升级:
java-1.8.0-openjdk x86_64 1:1.8.0.345.b01-1.an8_6 AppStream 347 k
java-1.8.0-openjdk-devel x86_64 1:1.8.0.345.b01-1.an8_6 AppStream 9.8 M
java-1.8.0-openjdk-headless x86_64 1:1.8.0.345.b01-1.an8_6 AppStream 34 M
事务概要
============================================================================================================================================================================
升级 3 软件包
总下载:44 M
确定吗?[y/N]:
已升级:
java-1.8.0-openjdk-1:1.8.0.345.b01-1.an8_6.x86_64 java-1.8.0-openjdk-devel-1:1.8.0.345.b01-1.an8_6.x86_64 java-1.8.0-openjdk-headless-1:1.8.0.345.b01-1.an8_6.x86_64
完毕!
[root@anolis ~]# java -version
openjdk version "1.8.0_345"
OpenJDK Runtime Environment (build 1.8.0_345-b01)
OpenJDK 64-Bit Server VM (build 25.345-b01, mixed mode)
tar -xzvf jdk-8u11-linux-x64.tar.gz -C /usr/local/
添加环境变量
echo 'export JAVA_HOME=/usr/local/jdk1.8.0_11' | sudo tee -a /etc/profile
echo 'export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar' | sudo tee -a /etc/profile
echo 'export PATH=$PATH:$JAVA_HOME/bin' | sudo tee -a /etc/profile
使变量立即生效
source /etc/profile
# java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
[root@anolis ~]# javac
Usage: javac
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath Specify where to find user class files and annotation processors
-cp Specify where to find user class files and annotation processors
-sourcepath Specify where to find input source files
-bootclasspath Override location of bootstrap class files
-extdirs Override location of installed extensions
-endorseddirs Override location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compilation is done.
-processor [,,...] Names of the annotation processors to run; bypasses default discovery process
-processorpath Specify where to find annotation processors
-parameters Generate metadata for reflection on method parameters
-d Specify where to place generated class files
-s Specify where to place generated source files
-h Specify where to place generated native header files
-implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files
-encoding Specify character encoding used by source files
-source Provide source compatibility with specified release
-target Generate class files for specific VM version
-profile Check that API used is available in the specified profile
-version Version information
-help Print a synopsis of standard options
-Akey[=value] Options to pass to annotation processors
-X Print a synopsis of nonstandard options
-J Pass directly to the runtime system
-Werror Terminate compilation if warnings occur
@ Read options and filenames from file
Mark Roberge是HubSpot的首席财务官,在招聘销售职位时使用了大量数据分析。但是科技并没有挤走直觉。
大家都知道数理学家实际上已经渗透到了各行各业。这些热衷数据的人们通过处理数据理解商业流程的各个方面,以重组弱点,增强优势。
Mark Roberge是美国HubSpot公司的首席财务官,HubSpot公司在构架集客营销现象方面出过一份力——因此他也是一位数理学家。他使用数据分析
@echo off
: host=服务器证书域名或ip,需要和部署时服务器的域名或ip一致 ou=公司名称, o=公司名称
set host=localhost
set ou=localhost
set o=localhost
set password=123456
set validity=3650
set salias=s