-
maven配置阿里云yum源仓库
2018-06-07 15:56:41阿里云yum源仓库配置:镜像地址:http://mirrors.aliyun.com/ 仓库地址:http://mirrors.aliyun.com/repo/ 安装过程: 备份:mv 下载:wget 更新:yum clean all;yum makecache 阿里云maven中央仓库配置:阿里云...阿里云yum源仓库配置:
镜像地址:http://mirrors.aliyun.com/
仓库地址:http://mirrors.aliyun.com/repo/
安装过程:
备份:mv
下载:wget
更新:yum clean all;yum makecache
阿里云maven中央仓库配置:
阿里云Maven仓库地址——加速你的maven构建
在maven的settings.xml文件里配置mirrors的子节点,添加如下mirror:
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url></mirror>
-
linux mysql源_Linux安装(MySQL、Maven)和yum源的修改方法
2021-01-27 05:13:27exit 设置开机自启动 chkconfig mysql on yum源的修改方法 由于CentOS服务器是在国外,所以很多时候下载都比较慢,所以我们可以配置国内的yum源,速度会快很多。 yum源的修改方法 首先备份CentOS-Base.repo mv /etc...安装MySQL
unzip MySQL-server-5.6.41.zip
MySQL-devel-5.6.41-1.el6.x86_64.rpm
MySQL-server-5.6.41-1.el6.x86_64.rpm
MySQL-client-5.6.41-1.el6.x86_64.rpm
查看是否已经安装了mysql,有则卸载
rpm -qa | grep -i mysql #(查看是否安装了mysql)
yum -y remove mysql-libs* #(卸载mysql)
安装mysql5.6
rpm -ivh MySQL-devel-5.6.41-1.el6.x86_64.rpm #再安装server、client包
配置mysql(/etc/my.cn)
vim /etc/my.cn # 修改配置文件
lower_case_table_names=1 # 大小写不区分
character-set-server=utf8 # 编码格式默认为utf-8
collation-server=utf8_general_ci # 默认编码格式
初始化MySQL及设置密码
/usr/bin/mysql_install_db
service mysql start
cat /root/.mysql_secret #(查看原始密码)
mysql -uroot –p原始密码 #(登陆mysql)
set PASSWORD=PASSWORD('123456');
exit
开启远程访问(别人可以访问你的MySQL)
mysql -uroot -p123456
use mysql;
update user set password=password('123456') where user='root';
update user set host='%' where user='root' and host='localhost';
flush privileges;
exit
设置开机自启动
chkconfig mysql on
yum源的修改方法
由于CentOS服务器是在国外,所以很多时候下载都比较慢,所以我们可以配置国内的yum源,速度会快很多。
yum源的修改方法
首先备份CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载对应版本的CentOS-Base.repo,放入/etc/yum.repos.d/
# CentOS 5
wget -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
# CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
运行yum makecache生成缓存
yum makecache
安装Maven
拷贝文件名为*_bin.tar.gz的链接地址:
http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz
下载文件到Linux上的/usr/local目录下
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz
解压maven
tar -zxvf apache-maven-3.6.0-bin.tar.gz
# 重命名
mv apache-maven-3.6.0 maven
配置环境变量
vim /etc/profile
export M2_HOME=/usr/local/maven
export PATH=$M2_HOME/bin:$PATH
重新编译环境变量,使配置生效
source /etc/profile
验证是否安装成功
mvn -v
-
阿里云Maven仓库地址+CentOS阿里云yum源
2017-09-13 14:50:22新安装的Maven使用国外源,在更新jar包时速度非常之慢,其实我们可以切换到国内镜像源以加速下载。 配置 maven 在安装目录conf中找到settings.xml并设置源。 alimaven aliyun maven ...1. 修改阿里云Maven仓库地址
背景
新安装的Maven使用国外源,在更新jar包时速度非常之慢,其实我们可以切换到国内镜像源以加速下载。
配置
maven
在安装目录conf中找到settings.xml并设置源。
<mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>
gradle
在 USER_HOME/.gradle/ 下面创建新文件 init.gradle,输入下面的内容并保存。
allprojects{ repositories { def REPOSITORY_URL = 'http://maven.aliyun.com/nexus/content/groups/public/' all { ArtifactRepository repo -> if(repo instanceof MavenArtifactRepository){ def url = repo.url.toString() if (url.startsWith('https://repo1.maven.org/maven2') || url.startsWith('https://jcenter.bintray.com/')) { project.logger.lifecycle "Repository ${repo.url} replaced by $REPOSITORY_URL." remove repo } } } maven { url REPOSITORY_URL } } }
经测试在切换到阿里源之后,下载速度还是非常快速的。
2.CentOS系统更换软件安装源
第一步:备份你的原镜像文件,以免出错后可以恢复。
第二步:下载新的CentOS-Base.repo 到/etc/yum.repos.d/mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
CentOS 5 wget -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
更改CentOS-Media.repo使其为不生效:enabled=0
第三步:运行yum makecache生成缓存yum clean all yum makecache
-
Linux ISO镜像源,yum源,docker镜像源,docker加速器,maven仓库整理
2021-04-08 11:14:40linux镜像源 centos https://wiki.centos.org/Download http://mirrors.sohu.com/ http://mirrors.163.com/ https://mirrors.tuna.tsinghua.edu.cn/centos/ ubuntu http://cdimage.ubuntu.com/releases/ #server版 ...linux镜像源
centos
https://wiki.centos.org/Download
http://mirrors.sohu.com/
http://mirrors.163.com/
https://mirrors.tuna.tsinghua.edu.cn/centos/ubuntu
http://cdimage.ubuntu.com/releases/ #server版
https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cdimage/releases/
http://releases.ubuntu.com/
http://mirrors.aliyun.com/ubuntu-releases/
https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/yum源配置
基本源,epel源,extras源
centos7-yum源配置
[BaseOS] name=BaseOs baseurl=https://mirrors.huaweicloud.com/centos/$releasever/os/$basearch/ https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/os/$basearch/ enabled=1 gpgcheck=0 [epel] name=epel baseurl=https://mirrors.huaweicloud.com/epel/$releasever/$basearch/ https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/$basearch/ enabled=1 gpgcheck=0 [extras] name=extras baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/extras/$basearch/ https://mirrors.huaweicloud.com/centos/$releasever/extras/$basearch/ enabled=1 gpgcheck=0
centos8 yum源配置:
[BaseOS] name=BaseOS baseurl=https://mirrors.huaweicloud.com/centos/$releasever/BaseOS/$basearch/os/ https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/BaseOS/$basearch/os/ enabled=1 gpgcheck=0 [AppStream] name=AppStream baseurl=https://mirrors.huaweicloud.com/centos/$releasever/AppStream/$basearch/os/ https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/AppStream/$basearch/os/ enabled=1 gpgcheck=0 [epel] name=epel baseurl=https://mirrors.huaweicloud.com/epel/$releasever/Everything/$basearch/ https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/$basearch/ enabled=1 gpgcheck=0 [extras] name=extras baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/extras/$basearch/os/ https://mirrors.huaweicloud.com/centos/$releasever/extras/$basearch/os/ enabled=1 gpgcheck=0
ubunut apt源配置
#添加阿里源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse #中科大源 deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse #163源 deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse #清华源 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
docker镜像站点
https://hub.docker.com/
https://hub.daocloud.io/
https://promotion.aliyun.com/ntms/act/kubernetes.htmldocker加速器
https://hub-mirror.c.163.com/
https://xxxxxxx.mirror.aliyuncs.com/ # xxxx需要在阿里云的控制台–>容器与镜像服务–>镜像加速器获取
Maven依赖搜索
https://maven.aliyun.com/mvn/view
https://mvnrepository.com/artifact/org.aopalliance/com.springsource.org.aopalliance/1.0.0 -
yum安装Maven
2019-04-28 17:08:20# 获取maven的yum源 #>wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo #>sed -i s/\$releasever/6/g /etc/yum.repos.... -
本地yum源制作
2019-03-13 11:55:26YUM源其实就是一个保存了多个RPM包的服务器,可以通过http的方式来检索、下载并安装相关的RPM包,有点像java中的maven 制作本地yum源 本例子是以cenos6.5为例 1,准备一台linux系统的虚拟机 2,配置好ip地址 3... -
centos7 yum安装maven_YUM仓库配置及命令详解
2020-12-29 02:03:06YUM软件仓库简介借助于YUM软件仓库,可以完成...特别是在拥有大量Linux主机的本地网络中,构建一台源服务器可以大大缓解软件安装、升级等对Internet的依懒。YUM仓库简单来说就是:1.RPM包构建的软件更新机制;2.自动... -
制作本地YUM源
2018-06-02 22:53:38本地YUM源制作1. YUM相关概念1.1. 什么是YUMYUM(全称Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。相当于maven。基于RPM包管理,能够从指定的服务器自动下载RPM包... -
CentOS7 yum 安装 maven
2021-03-23 18:01:34CentOS -7设置为阿里云yum源 rm -rf /etc/yum.repos.d/* curl -o /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo curl -o /etc/yum.repos.d/epel-7.repo ... -
liunx yum 安装maven
2019-07-17 13:56:00# 获取maven的yum源 #>wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo #>sed -i s/\$releasever/6/g /e... -
配置本地Yum源
2016-01-11 22:59:11CentOS配置本地Yum源 发表于 7 December 2015 | 分类于 运维 | 暂无评论 现场环境没有网络,有些软件安装简直太痛苦,和maven的依赖链一样,最终耗时耗力不一定能安装好,此时制作本地yum只读光盘就是一个好主意,... -
yum源不存在解决方法
2016-08-08 23:32:10看到百度百科上的一个yum -y install apache-maven的文章,里面提到: 当 安装maven yum -y install apache-maven 这时候可能会报错 碰到这个错误时,我们可以 这时候需要用wget命令去网络上下载... -
yum 安装maven
2019-01-02 11:51:38前提是安装有jdk // 安装yum配置工具 # yum install -y yum-utils ...# yum-config-manager --add-repo http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo # yum-config-man... -
CentOS 7 yum安装Maven、Ant
2016-11-08 11:10:49apache源配置 wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo yum -y install apache-maven yum -y install ant -
Linux系统(CentOS)配置yum源
2019-11-13 14:59:39在公司内网中常常会遇到yum源问题,在搭建环境时梳理两个别人给的yum源,整理如下 后续再继续扩展 确保maven.inspur.com能ping通,如果不能的话修改机器的DNS,确保可以ping通,将maven.inspur.com换成10.111.24.62... -
Linux软件rpm方式安装,yum源地址变更
2018-05-08 09:17:43rpm包安装 (不用配置环境变量)rpm -qa |grep jdk 检查是否安装过jdkrpm -e 包名 如果已经有了安装包,卸载rpm -ivh 包名 安装rpm包 yum remove 包名 yum卸载安装包yum安装:改变yum源地址:yum相当于maven的中心库,... -
Linux CentOS7 yum安装maven
2020-09-29 16:56:461.下载Maven源 wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo yum -y install apache-maven 2.安装 查看当前 Centos 系统版本... -
linux后端开发环境搭建记录(一):yum源、jdk安装、Tomcat安装、maven安装、ftp服务器搭建、Ngnix安装和...
2020-08-02 13:40:43yum makecache yum源生成缓存 二、jdk 安装jdk1.7 查看本机自带jdk版本 rpm -qa | grep jdk 卸载本机自带的jdk的命令 sudo yum remove XXX(为上面的命令查到的jdk的结果) 个人先不卸载跳过此步骤 安装命令... -
CentOS-7yum安装maven
2019-11-11 19:37:02CentOS -7设置为阿里云yum源 rm -rf /etc/yum.repos.d/* curl -o /etc/yum.repos.d/Centos-7.repo http://mirrors.aliyun.com/repo/Centos-7.repo curl -o /etc/yum.repos.d/epel-7.repo http://mir... -
yum安装maven过程记录
2020-03-16 20:34:01安装maven,环境虚拟机: 1.安装yum配置工具 $ yum install -y yum-utils 2.使用配置工具配置第三方epel源仓库 [root@ab0be27c0bd3 ~]# yum-config-manager --add-repo http://repos.fedorapeople.or... -
Centos7-yum安装maven
2018-10-21 08:19:09前提是安装jdk,这个前面的文章好像讲过了,省略吧。。。 // 安装yum配置工具 # yum install -y ...# yum-config-manager --add-repo http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-ap... -
设置yum-maven-gradle-docker镜像
2019-01-24 21:22:55一、阿里yum源镜像 1、设置阿里云镜像为本地yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #清理缓存数据 yum clean all &amp;&amp; yum ... -
阿里云yum仓库和maven仓库配置记录
2016-12-07 20:38:18阿里云yum源仓库配置:镜像地址:http://mirrors.aliyun.com/ 仓库地址:http://mirrors.aliyun.com/repo/ 安装过程: 备份:mv 下载:wget 更新:yum clean all;yum makecache 阿里云maven中央仓库配置:... -
yum,maven,npm离线库
2020-10-15 17:20:25yum 同步软件包 基础依赖 安装依赖 yum install -y wget make cmake gcc gcc-c++ yum install -y pcre-devel...# 下载aliyun镜像源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos- -
大黄狗yum本地源的安装及配置,通过yum本地源来安装软件
2020-06-14 21:24:10yum是用来管理rpm的,就跟maven管理jar包相似。本地源比如说光盘里面一般会附带一些软件,这个时候就可以把光盘当成本地源来安装软件。 一:yum的概念 Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和... -
CentOS 7 安装 Maven
2019-10-01 16:47:42下载源 wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo 安装 Maven yum -y install apache-maven -
Linux下maven的安装
2019-08-30 17:34:31Linux下maven的安装直接使用yum 源安装通过安装包安装1.如果需要通过使用wget命令,直接通过网络下载maven安装包时,需要在linux系统中安装wget命令2.下载maven安装包3、解压缩maven4、配置maven环境变量5、验证结果... -
linux-yum
2020-04-02 09:25:32用来进行包管理,类似maven,可以自定义yum源 在Fedora、RedHat、CentOS中使用,别的发行版不用这个工具 基于rpm 1. COM 在server设置本机的yum源并通过httpd发布到网络,然后client将yum源配置为server节点即可。 ... -
linux centos7在线安装maven(完整篇)
2020-06-22 09:34:39// 安装yum配置工具 yum install -y // 使用配置工具配置第三方epel源仓库 yum-config-manager --add-repo ...yum install -y apache-maven // 验证mave -
docker搭建Maven私服
2020-10-07 01:05:44yum源安装docker 查看是否已安装docker列表 yum list installed | grep docker yum安装docker yum -y install docker 启动docker systemctl start docker 查看docker服务状态 systemctl status ...