repo

Ceph分布式存储安装

↘锁芯ラ 提交于 2020-01-13 00:30:56
Ceph分布式存储安装 前言 参照官方文档中的快速安装,结合国内环境,将相关安装源修改为国内镜像源提高安装速度。 http://docs.ceph.org.cn/start/ 基础系统环境 添加阿里云YUM源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo 更新系统 yum update -y``` ### 关闭防火墙、SELinux systemctl stop firewalld && systemctl disable firewalld setenforce 0 sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config ### 添加hosts主机名解析(集群采用四台虚拟机) 四台机器均添加 echo "192.168.5.191

Compile android source and kernel for emulator in Debian

不羁的心 提交于 2020-01-12 09:46:58
  1、download the android source code   Reference from http://source.android.com/source/downloading.html   follow the reference:   Create the dir and export the PATH $ mkdir ~/bin $ PATH=~/bin:$PATH   Download the repo $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod 775 ~/bin/repo   Repo init the code version you want $ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1   finally sync the codes $ repo sync // better way $ repo sync -j16   if try to stop the repo, just try Ctrl + z   and continue the repo $ repo sync // or $

配置yum源

孤人 提交于 2020-01-12 07:37:49
1,进入yum源配置目录 cd /etc/yum.repos.d 2,备份系统自带的yum源 mv CentOS-Base.repo CentOS-Base.repo.bk 下载163网易的yum源: wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 3,更新玩yum源后,执行下边命令更新yum配置,使操作立即生效 yum makecache 4,除了网易之外,国内还有其他不错的yum源,比如中科大和搜狐的,大家可以根据自己需求下载 中科大的yum源: wget http://centos.ustc.edu.cn/CentOS-Base.repo sohu的yum源 wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo centos系统可以直接使用自带的免费yum源。不需要更改或获得授权。因为使用centos的源是免费的,不需要经过许可证的授权即可使用。 但是尽量使用国内的yum源比较下载速度快。 首先需要保证linux可以联网。可以配置一下DNS服务。 编辑./etc/resolv

CentOS7--docker的安装

半世苍凉 提交于 2020-01-12 05:15:59
centOS7下面docker的安装 docker简介 Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的Linux机器上,也可以实现虚拟化,容器是完全使用沙箱机制,相互之间不会有任何接口 Docker的基本概念: 仓库(Repository) 镜像(Image) 容器(Container) 安装步骤 root账号登录,查看内核版本: [root@localhost ~]# uname -a Linux localhost.qgc 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux 更新linux系统源. [root@localhost ~]# yum update 已加载插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: mirrors.aliyun.com * updates: centos.ustc.edu.cn 正在解决依赖关系 ... 完毕 安装devicemapper驱动依赖 [root@localhost

linux-----docker

可紊 提交于 2020-01-11 20:46:17
docker简介 Docker时Docker.Lnc公司开源的一个基于LXC技术之上搭建的Container容器引擎,源代码托管在Github上,基于Go语言并遵从Apache2.0协议开源。 Docker属于Linux容器的一种封装,提供简单易用的容器使用接口。 docker的三大概念   镜像:我们可以理解为系统盘的dvd镜像,轻量级的镜像文件   仓库:存储docker镜像   容器:是基于镜像运行的,容器实例 docker的安装 1.安装docker   yum install docker -y 2.启动docker   systemctl start docker 3.docker加速器下载,以及配置    curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io   会生成一个docker配置文件,路径是/etc/docker/daemon.json 4.配置了docker加速器,需要重启docker   systemctl restart docker docker基本命令   增:     docker pull 镜像名字 #下载镜像     docker run 镜像名字 #运行镜像,产生容易实例     docker run

gradle maven 打包

回眸只為那壹抹淺笑 提交于 2020-01-11 15:37:12
gradle 打war bootJar package com.jekjk.replenishment; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; public class MyServletInitializer extends SpringBootServletInitializer { //打包程序使用 @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { return builder.sources(ShopReplenishmentApplication.class);//这里的这个类就是启动spring boot的那个运行类 } } plugins { id 'java' id 'java-library' id 'war' id 'org.springframework.boot' version '2.2.2.RELEASE' } apply plugin: 'io.spring

Android拓展系列(6)--CM9源码下载和编译

为君一笑 提交于 2020-01-11 12:55:48
公司最近也开始基于android4.0 ICS修改框架了,公司的手机暂时不适合拿回家测试,也没有kernel的权限。 从个人的角度看,我手上现在有两部手机,一部是Htc G9 Aria,一部是Samsung I9100 Galaxys2,Cyanogenmod的开源代码都提供了对这些手机的驱动支持,并且能方便的编译打包,并安装到手机。 上一篇文章是android2.3的编译,已经过时,而且现在ubuntu已经升级到12.04,等等之类的,使我觉得非常有必要重新写一篇新的博客来展示最新的android怎么在最新的ubuntu上编译。 基于以上几点,下面我将基于galaxys2来演示如何编译cm9的源码并打包zip安装到手机。下面是我的参考文章: http://source.android.com/source/initializing.html http://forum.xda-developers.com/showthread.php?t=1552090 https://github.com/CyanogenMod/android 这些链接或多或少会有一些问题,从这些这些东西我整理出最简单最有效的一条编译之路,也许会很上面这些文章很多步骤和说法上不一致。 1.ubuntu12.04的选择 我第一次用x64的系统,发现配置环境的时候,会有很多种错误,后来我用32位的系统

Android Paging Lib codeLab

混江龙づ霸主 提交于 2020-01-11 07:24:21
Android Paging 1. Introduction What you build 在此代码实验室中,您可以从一个示例应用程序开始,该应用程序已显示GitHub存储库列表,从数据库加载数据,并由网络数据支持。每当用户滚动到显示列表的末尾时,就会触发一个新的网络请求,并将其结果保存到支持该列表的数据库中。 您将通过一系列步骤添加代码,并在进程中集成Paging Library组件。步骤2中描述了这些组件。 What you'll need Android studio 3.4 or higher Familiarity with the following Architecture Components: Room, LiveData, ViewModel and with the architecture suggested in the "Guide to App Architecture". For an introduction to Architecture Components, check out the Room with a View codelab. 2.Setup Your Environment 在这个步骤中,您将下载整个codelab的代码,然后运行一个简单的示例应用程序。 为了让您尽快开始工作,我们准备了一个入门项目,供您在此基础上进行。

搭建本地yum源和局域网yum源

巧了我就是萌 提交于 2020-01-11 04:48:34
搭建本地yum源和局域网yum源 由于很多客户环境是专网,不允许连网,无法使用网上的各种yum源,来回拷贝rpm包安装麻烦,还得解决依赖问题。所以想着搭建个本地/局域网YUM源,方便安装软件。 1 搭建本地YUM源 环境:第一台VM IP:192.168.10.81 第二台VM IP:192.168.10.82 1.1 准备rpm包 虚拟机挂载镜像包CentOS-7-x86_64-Everything-1511.iso 开机启动 挂载镜像: [root@centos7-81 ~]# mount /dev/sr0 /mnt/ mount: /dev/sr0 is write-protected, mounting read-only [root@centos7-81 ~]# mkdir -p /yum/yum-iso #新建本地路径/yum/yum-iso 把挂载的镜像里面所有文件都拷贝到本地目录/yum/yum-iso [root@centos7-81 ~]# cp -r /mnt/* /yum/yum-iso/ 1.2 备份并移除其他 repo [root@centos7-81 ~]# cd /etc/yum.repos.d/ [root@centos7-81 yum.repos.d]# tar czvf repo-bk.tar.gz CentOS-* CentOS-Base

Centos6.4 本地yum源配置

拥有回忆 提交于 2020-01-11 04:47:29
由于单位的服务器均使用的是内网,而安装一些软件如Git,需要很多的依赖包,使用yum安装相对简单,由于不能联网故配置本地yum源配置。 1.首先将需要rpm库添加到系统中: 1).虚拟机中安装的linux操作系统:则只需将安装包ISO文件挂载到media下面(如无法挂载请参考http://www.cnblogs.com/shenliang123/p/3203278.html) 2).单独的服务器系统,则先在/media下新建centos(名字可以自定义,但与下面4中添加的目录相关),然后将ISO包里面的内容全部复制到该文件夹中 2.进入到 /etc/yum.repos.d/ ,该目录下包含了四个文件: [root@sl media]# ls -l /etc/yum.repos.d/ total 16 -rw-r--r--. 1 root root 1926 Feb 25 2013 CentOS-Base.repo -rw-r--r--. 1 root root 638 Feb 25 2013 CentOS-Debuginfo.repo -rw-r--r--. 1 root root 630 Feb 25 2013 CentOS-Media.repo -rw-r--r--. 1 root root 3664 Feb 25 2013 CentOS-Vault.repo 3.将