[admin@oftpclient201 ~]$ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.9.2009 (Core) Release: 7.9.2009 |
java -version echo $PATH 看环境变量bai是否配du置了java路径 find / -name java 查找zhijava文件 |
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-p ... 71-linux-x64.tar.gz |
vim /etc/profile |
export JAVA_HOME=/usr/JDK/jdk1.8.0_281 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.{JAVA_HOME}/lib{JRE_HOME}/lib export PATH=${JAVA_HOME}/binPATH |
[admin@oftpclient201 ~]$ java -version java version "1.8.0_281" Java(TM) SE Runtime Environment (build 1.8.0_281-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.281-b09, mixed mode) [admin@oftpclient201 ~]$ java Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file)where options include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "server" VM The default VM is server. -cp <class search path of directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A : separated list of directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property -verbose:[class|gc|jni] enable verbose output -version print product version and exit -version:<value> Warning: this feature is deprecated and will be removed in a future release. require the specified version to run -showversion print product version and continue -jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will be removed in a future release. include/exclude user private JREs in the version search -? -help print this help message -X print help on non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable assertions with specified granularity -da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions with specified granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument -splash:<imagepath> show splash screen with specified image See http://www.oracle.com/technetwor ... entation/index.html for more details. [admin@oftpclient201 ~]$ javac Usage: javac <options> <source files>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 <path> Specify where to find user class files and annotation processors -cp <path> Specify where to find user class files and annotation processors -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -endorseddirs <dirs> Override location of endorsed standards path -proc:{none,only} Control whether annotation processing and/or compilation is done. -processor <class1>[,<class2>,<class3>...] Names of the annotation processors to run; bypasses default discovery process -processorpath <path> Specify where to find annotation processors -parameters Generate metadata for reflection on method parameters -d <directory> Specify where to place generated class files -s <directory> Specify where to place generated source files -h <directory> Specify where to place generated native header files -implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files -encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified release -target <release> Generate class files for specific VM version -profile <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<flag> Pass <flag> directly to the runtime system -Werror Terminate compilation if warnings occur @<filename> Read options and filenames from file [admin@oftpclient201 ~]$ |
[admin@oftpclient201 ~]$ wget https://download.oracle.com/otn/ ... .tar.gz--2021-02-25 15:25:47-- https://download.oracle.com/otn/ ... x64.tar.gzResolving download.oracle.com (download.oracle.com)... 184.50.93.194Connecting to download.oracle.com (download.oracle.com)|184.50.93.194|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/aka ... 81-linux-x64.tar.gz [following] --2021-02-25 15:25:48-- https://edelivery.oracle.com/aka ... 81-linux-x64.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)... 184.30.17.110, 2600:1400:c000:482::366, 2600:1400:c000:488::366 Connecting to edelivery.oracle.com (edelivery.oracle.com)|184.30.17.110|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://login.oracle.com:443/oam ... 00023d00wI1l%3BkXjE [following] --2021-02-25 15:25:50-- https://login.oracle.com/oam/ser ... 00023d00wI1l%3BkXjE Resolving login.oracle.com (login.oracle.com)... 209.17.4.8 Connecting to login.oracle.com (login.oracle.com)|209.17.4.8|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 4103 (4.0K) [text/html] Saving to: ‘jdk-8u281-linux-x64.tar.gz.1’ 100%[==============================================================================================================================================================================>] 4,103 17.6KB/s in 0.2s 2021-02-25 15:25:51 (17.6 KB/s) - ‘jdk-8u281-linux-x64.tar.gz.1’ saved [4103/4103] [admin@oftpclient201 ~]$ |
[admin@oftpclient201 ~]$ tar -zxvf jdk-8u281-linux-x64.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now [admin@oftpclient201 ~]$ |
[admin@oftpclient201 ~]$ ll -lh total 16K-rw-rw-r--. 1 admin admin 0 Feb 25 15:25 ]-rw-rw-r--. 1 admin admin 4.1K Feb 25 15:24 jdk-8u281-linux-x64.tar.gz-rw-rw-r--. 1 admin admin 39 Feb 2 16:20 test.txt-rw-rw-r--. 1 admin admin 78 Feb 2 16:21 t.zip [admin@oftpclient201 ~]$ |
[admin@oftpclient201 ~]$ wget --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie;" https://download.oracle.com/otn/ ... 81-linux-x64.tar.gz --2021-02-25 15:56:55-- https://download.oracle.com/otn/ ... 81-linux-x64.tar.gz Resolving download.oracle.com (download.oracle.com)... 92.123.228.99 Connecting to download.oracle.com (download.oracle.com)|92.123.228.99|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/aka ... 81-linux-x64.tar.gz [following] --2021-02-25 15:56:56-- https://edelivery.oracle.com/aka ... 81-linux-x64.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.76.64.181, 2a02:26f0:a00:3be::366, 2a02:26f0:a00:385::366 Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.76.64.181|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://login.oracle.com:443/oam ... 0002ZZ00IcIc%3BkXjE [following] --2021-02-25 15:56:57-- https://login.oracle.com/oam/ser ... 0002ZZ00IcIc%3BkXjE Resolving login.oracle.com (login.oracle.com)... 209.17.4.8 Connecting to login.oracle.com (login.oracle.com)|209.17.4.8|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 4149 (4.1K) [text/html] Saving to: ‘jdk-8u281-linux-x64.tar.gz’ 100%[==============================================================================================================================================================================>] 4,149 --.-K/s in 0s 2021-02-25 15:56:59 (24.7 MB/s) - ‘jdk-8u281-linux-x64.tar.gz’ saved [4149/4149] [admin@oftpclient201 ~]$ |
[admin@oftpclient201 ~]$ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn- ... 81-linux-x64.tar.gz --2021-02-25 16:10:40-- https://download.oracle.com/otn- ... 81-linux-x64.tar.gz Resolving download.oracle.com (download.oracle.com)... 184.86.92.87 Connecting to download.oracle.com (download.oracle.com)|184.86.92.87|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/otn ... 81-linux-x64.tar.gz [following] --2021-02-25 16:10:41-- https://edelivery.oracle.com/otn ... 81-linux-x64.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.76.87.214, 2600:1400:c000:482::366, 2600:1400:c000:488::366 Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.76.87.214|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://download.oracle.com/otn- ... 2946ab43486aa6c2db3 [following] --2021-02-25 16:10:42-- https://download.oracle.com/otn- ... 2946ab43486aa6c2db3 Connecting to download.oracle.com (download.oracle.com)|184.86.92.87|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 143722924 (137M) [application/x-gzip] Saving to: ‘jdk-8u281-linux-x64.tar.gz’ 100%[==============================================================================================================================================================================>] 143,722,924 2.67MB/s in 57s 2021-02-25 16:11:40 (2.41 MB/s) - ‘jdk-8u281-linux-x64.tar.gz’ saved [143722924/143722924] [admin@oftpclient201 ~]$ ll -h |
[admin@oftpclient201 ~]$ ll -h total 138M-rw-rw-r--. 1 admin admin 0 Feb 25 16:09 ]-rw-rw-r--. 1 admin admin 138M Dec 11 03:12 jdk-8u281-linux-x64.tar.gz-rw-rw-r--. 1 admin admin 39 Feb 2 16:20 test.txt-rw-rw-r--. 1 admin admin 78 Feb 2 16:21 t.zip [admin@oftpclient201 ~]$ |
[admin@oftpclient201 ~]$ cat /proc/version Linux version 3.10.0-1160.11.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Fri Dec 18 16:34:56 UTC 2020 [admin@oftpclient201 ~] |
[admin@oftpclient201 ~]$ uname -a Linux oftpclient201.test.cedex.cn 3.10.0-1160.11.1.el7.x86_64 #1 SMP Fri Dec 18 16:34:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux |
[admin@oftpclient201 ~]$ cat /etc/centos-release CentOS Linux release 7.9.2009 (Core) |
processor : 1 #数值为1表示第2颗cpu vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz stepping : 9 microcode : 0x15 cpu MHz : 2594.170 cache size : 3072 KB physical id : 2 siblings : 1 core id : 0 cpu cores : 1 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm epb fsgsbase tsc_adjust smep dtherm ida arat pln pts bogomips : 5188.34 clflush size : 64 cache_alignment : 64 address sizes : 42 bits physical, 48 bits virtual power management: |
[admin@oftpclient201 etc]$ getconf LONG_BIT64 |
uname -a显示全部信息-m或--machine:显示电脑类型;-r或--release:显示操作系统的发行编号;-s或--sysname:显示操作系统名称;-v:显示操作系统的版本;-p或--processor:输出处理器类型或"unknown";-i或--hardware-platform:输出硬件平台或"unknown";-o或--operating-system:输出操作系统名称;--help:显示帮助;--version:显示版本信息。 |
[admin@oftpclient201 etc]$ [admin@oftpclient201 etc]$ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.9.2009 (Core) Release: 7.9.2009 Codename: Core |
[admin@oftpclient201 etc]$ cat /etc/issue \S Kernel \r on an \m [admin@oftpclient201 etc]$ |
[admin@oftpclient201 etc]$ file /bin/ls/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=c8ada1f7095f6b2bb7ddc848e088c2d615c3743e, stripped [admin@oftpclient201 etc]$ |
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |