bd ----- Software Installation

--- --- restore content begins

  

 

 

 

Installation package rpm format jdk 

[root@node01 /]# rpm -ivh jdk-7u67-linux-x64.rpm

 

Add environment variables:

[root@node01 /]# vi /etc/profile

JAVA_HOME = /usr/java/jdk1.7.0_67 Export
Export the PATH = $ the PATH: $ JAVA_HOME / bin
execute command after saving the source file so that the entry into force

[root@node01 /]# source /etc/profile

 

 

 

Modify the source package yum install yum Ali cloud of installed packages

https://opsx.alibaba.com/mirror?lang=zh-CN

 

 

112 yum install -y wget
113 cd /etc/yum.repos.d/
114 mkdir backup
115 mv CentOS-* backup/
116 ls
117 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
118 ls
119 yum clean all
120 yum makecache

 

 

Domestic and local source directory source configuration:

 

 yum commonly used commands:

 

 

yum group command:

 

 

 Chinese View Chinese documents show:

[root @ node01 yum.repos.d] # echo $ LANG
en_US.UTF-8
[root @ node01 yum.repos.d] # LANG = zh_CN.UTF-8

 

 

[root@node01 yum.repos.d]# yum install man man-pages-zh-CN

 

Guess you like

Origin www.cnblogs.com/ryuuku/p/11620703.html