要432w 发表于 2017-3-21 13:44:50

CentOS7 安装git

                      【git安装】
首先参考博文:CentOS7配置本地镜像及安装gluster服务。 在本地配置yum镜像库。
1、
$ sudoyum --disablerepo=\* --enablerepo=c7-media,offline-extras,offline-storage-gluster38 install git




2、克隆
git clone https://github.com/xfeiwang/go-to-kubernetes go-to-kubernetes
pwd
ls
cd go-to-kubernetes/
ls
cd examples/centos-devops-sync-repo/
ls
cat mirror-by-rsync.sh
3、安装
./mirror-by-rsync.sh    *******************把镜像安装到本地脚本
ls
ls rsync%3A%2F%2Fmirrors.yun-idc.com%2Fcentos%2F7/
./mirror-by-rsync.sh



附命令:
ping -c3 192.168.2.19    ping 命令

关闭网络enp0s8 打开网路enp0s8
ifdownenp0s8
ifup    enp0s8   

service network restart 重启网络

ls /etc/sysconfig/network-scripts   查看网络配置项


查看ip/mac命令
ifconfig -a
ip link show
ip address show

                  

超越时空 发表于 2017-3-21 15:29:24

不错,学习了,谢谢
页: [1]
查看完整版本: CentOS7 安装git