标签:http rate term 设备 classpath 子网 tps rds some
搜索可安装的jdk
yum -search java-1.8
选择版本安装
yum -y install java-1.8.0-openjdk-devel.x86_64
获取jdk安装目录
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64
在底部增加配置
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
解释:
- 只需要改第一行“export JAVA_HOME=”后的部分为你的JDK路径,注意末尾不要加“/”。其他都无需更改。
- exprot命令用于将shell变量输出为环境变量
- “:”冒号,linux中用于分割路径,Windows中用“;” 分割。,在此分割JAVA_HOME和其他环境变量($PATH)
- CLASSPATH中的 “.” 不能丢失。CLASSPATH指引到tools.jar,才可以在任意目录下用“javac”命令
---------------------
作者:大脑补丁
来源:CSDN
原文:https://blog.csdn.net/x541211190/article/details/74786393
版权声明:本文为博主原创文章,转载请附上博文链接!
使环境变量立即生效
source /etc/profile
检查环境变量是否配置成功,如下信息说明配置成功
[root@bogon /]# 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
以VMware workstation为例,其虚拟网络设备有3种:
vmnet0(桥接模式),无实体虚拟网卡,其实就是一个协议而已,会在对应网卡上加入VMware bridge protocol桥接协议,其作用相对于使用一个虚拟交换机连接虚拟机和物理机网卡。
vmnet1(仅主机模式,hostonly),生成vmnet1虚拟网卡,并定义一个ip地址,虚拟机设置为仅主机模式,需要手动设置和vmnet1相同的子网网段,作用相同与vmnet0但由于vmnet1不接入其他网络,所以数据只在虚拟机和物理机间交换。
vmnet8(NAT模式,网络地址转换),生成vmnet8虚拟机网卡,并通过VMware NAT service提供网关和地址转换服务,VMware DHCP service提供虚拟机ip地址自动分配服务,通过vmnet8与虚拟机通讯。
物理机环境使用路由器上网,就选择桥接模式
物理机单机pppoe拨号上网,就选择NAT模式
不想虚拟机上网,就选择选择仅主机模式
标签:http rate term 设备 classpath 子网 tps rds some
原文地址:https://www.cnblogs.com/wen-xin/p/11828230.html