repo

CentOS升级php5.3

时光怂恿深爱的人放手 提交于 2020-01-03 00:49:08
CentOS升级php5.3 rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo yum --enablerepo=webtatic update php -y 2011年4月13号测试成功建源并升级! CentOS安装xapian(ver: 1.2.4) 使用官网上的方法没有成功。使用以下命令安装: rpm -ivh http://rpm.eprints.org/xapian/5/i386/xapian-core-libs-1.2.4-1.i386.rpm ;核心库参数 rpm -ivh http://rpm.eprints.org/xapian/5/i386/xapian-core-1.2.4-1.i386.rpm ;核心 rpm -ivh http://rpm.eprints.org/xapian/5/i386/xapian-bindings-1.2.4-1.i386.rpm rpm -ivh http://rpm.eprints.org/xapian/5/i386/xapian-bindings-php-1.2.4-1.i386.rpm ;php支持 来源

Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle

你。 提交于 2020-01-01 08:49:55
问题 I tried to create a git repo with the instructions from "source.android.com/source/downloading.html#installing-repo" but I get the following error when trying to initialize the repo in the working directory (using Ubuntu): :~/workdir$ repo init -u https://android.googlesource.com/a/platform/manifest fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle fatal: error [Errno -2] Name or service not known I have created the ~/.netrc file with generated password and also set the

关于获取资源文件,Class.getResource和ClassLoader.getResource的区别

人盡茶涼 提交于 2020-01-01 03:58:35
原文同步发表至个人博客 【夜月归途】 原文链接: http://www.guitu18.com/se/java/2019-02-22/29.html /*--> */ /*--> */ 作者: 夜月归途 出处: http://www.guitu18.com/ 本博客中未标明转载的文章归作者 夜月归途 和博客园所有。 欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 在Java中经常会需要读取各种各样的配置文件,在获取资源时,一般会用到 Class.getResource() 或 ClassLoader.getResource() ; 那么这两种方式在获取资源文件时有什么相同或者不同的地方呢? 先贴上代码目录结构: ┌─src │ └─main │ └─java │ └─com.guitu18.blog │ ├─classpath │ │ └─GetResourceTest.java │ └─SpringbootApplication.java └─resource ├─mapper │ └─BlogDao.xml └─confog.properties Class.getResource() 测试代码,先看 this.getClass().getResource() : 代码的输出结果我直接贴在代码的上一行了,下同。

linux安装mysql8.0

有些话、适合烂在心里 提交于 2020-01-01 00:44:10
linux 上安装mysql8.0 mysql版本8.0.16 MySQL Community 操作系统centos7 准备工作: mysql8.0 rpm文件 安装步骤: 1. 下载mysql的repo源,下载地址: 进入linux系统,输入指令: wgethttps://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm 2. 安装mysql-community-release-el7-5.noarch.rpm包 输入指令: sudo rpm -ivh mysql80-community-release-el7-1.noarch.rpm 安装这个包后,会获得两个mysql的yum repo源:/etc/yum.repos.d/mysql-community.repo,/etc/yum.repos.d/mysql-community-source.repo。 3. 安装mysql 输入指令: sudo yum install mysql-server 中间提示就一直Y就好了,等到出现Complete!则表示安装完成。根据提示安装就可以了,不过安装完成后没有密码,需要重置密码 4. 登录时有可能报这样的错:ERROR2002 (HY000): Can‘t connect to local MySQL server

CentOS 安装MySQL rpm方式安装

混江龙づ霸主 提交于 2020-01-01 00:37:51
MySQL源码方式安装: https://www.cnblogs.com/deverz/p/10997723.html 从最新版本的linux系统开始,默认的是 Mariadb而不是mysql!这里依旧以mysql为例进行展示 1、先检查系统是否装有mysql rpm -qa | grep mysql 返回空值,说明没有安装 我们现在执行安装命令是无效的,因为centos-7默认是Mariadb,所以执行以下命令只是更新Mariadb数据库 yum install mysql 先删除可用系统内置的MySQL也删除掉就是rpm -qa | grep mysql 到的内容 yum remove mysql 2、下载mysql的repo源【可以去这里面 http://repo.mysql.com 找到需要的源】 wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 安装mysql-community-release-el7-5.noarch.rpm包 rpm -ivh mysql-community-release-el7-5.noarch.rpm 安装这个包后,会获得两个mysql的yum repo源: 分别为 : /etc/yum.repos.d/mysql-community.repo 和 /etc

Android 架构组件之 Paging

非 Y 不嫁゛ 提交于 2019-12-31 23:16:23
文章目录 1. 为什么要使用 Paging Library? 2. 分析 Paging 的组成及原理 2.1 PagedList 2.2 数据源 DataSource 2.3 总结一下不同的数据源,如何创建 DataSource 2.4 PagedListAdapter 3. 通过一个简单的案例,介绍如何使用 Paging Library 4. 最后对 Paging Library 进行简单的总结 参考链接 Paging Library 是 Google 提出的分页加载库,本文将从以下几个方面对 Paging 进行介绍: 为什么要使用 Paging Library? 分析 Paging 的组成及原理 通过一个简单的案例,介绍如何使用 Paging Library 最后对 Paging Library 进行简单的总结 1. 为什么要使用 Paging Library? 我们经常需要处理大量数据,但大多数情况下,只需要加载和显示其中的一小部分。如果去请求用户不需要的数据,势必会浪费用户设备的电量和带宽。如果数据比较多情况下,消耗用户的流量也会比较多。 Paging Library 是 Google 提出的分页加载库,它可以妥善的逐步加载数据, 解决上面提到的痛点。此外: Paging Library 可以与 RecyclerView 无缝结合; Paging Library

CentOS配置epel源

旧街凉风 提交于 2019-12-31 04:25:38
https://opsx.alibaba.com/mirror epel 配置方法 1、备份(如有配置其他epel源) mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup 2、下载新repo 到/etc/yum.repos.d/ epel(RHEL 7) wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo epel(RHEL 6) wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo epel(RHEL 5) wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo 来源: https://www.cnblogs.com/okokabcd/p/8613593.html

企业开源镜像站

大兔子大兔子 提交于 2019-12-31 04:25:21
互联网企业   阿里开源镜像站: https://opsx.alibaba.com/mirror   搜狐开源镜像站: http://mirrors.sohu.com/   网易开源镜像站: http://mirrors.163.com/ 1.阿里云下载地址    OS下载地址:   CentOS 5   wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo   curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo   CentOS 6   wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo   curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo   CentOS 7   wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com

CentOS配置本地YUM源

拥有回忆 提交于 2019-12-31 02:02:53
1.放入Centos的镜像光盘或找到镜像文件,然后挂载到系统中 mount /dev/cdrom /mnt/cdrom #/mnt/cdrom目录要先创建好 2.cd /etc/yum.repos.d/ #进入/etc/yum.repos.d/目录 3.mkdir bak 并将CentOS-Base.repo 和 CentOS-Debuginfo.repo 移动到到bak目录下去,这样就可以绕过网络进行本地YUM源安装 4.编辑CentOS-Media.repo 配置文件 # CentOS-Media.repo # # This repo can be used with mounted DVD media, verify the mount point for # CentOS-6. You can use this repo and yum to install items directly off the # DVD ISO that we release. # # To use this repo, put in your DVD and use it with the other repos too: # yum --enablerepo=c6-media [command] # # or for ONLY the media repo, do this: # # yum

个人复习技能Nginx 大牛指教 希望对别人有所帮助

有些话、适合烂在心里 提交于 2019-12-30 23:38:30
NGINX安装 一.Yum源安装: 1、打开centos的yum文件夹 输入命令cd /etc/yum.repos.d/ 2、用wget下载repo文件 wget http://mirrors.aliyun.com/repo/Centos-7.repo 如果wget命令不生效,说明还没有安装wget工具,输入yum -y install wget 回车进行安装。 当前目录是/etc/yum.repos.d/,刚刚下载的Centos-7.repo也在这个目录上 3、备份系统原来的repo文件 mv CentOs-Base.repo CentOs-Base.repo.bak 即是重命名 CentOs-Base.repo -> CentOs-Base.repo.bak 4、替换系统原理的repo文件 mv Centos-7.repo CentOs-Base.repo 即是重命名 Centos-7.repo -> CentOs-Base.repo 5、执行yum源更新命令 yum clean all yum makecache yum update 依次执行上述三条命令即配置完毕。 二.创建nginx用户和组 1.[root@localhost nginx-1.11.2]# useradd -s /sbin/nologin -M nginx [root@localhost nginx-1