Linux Shell脚本专栏_自动发布Java项目(tomcat)_10

在这里插入图片描述

文章目录

  • 一、需求背景及实现流程
    • 1. 需求背景
    • 2. 实现流程
  • 二、软件准备
    • 2.1. 公共工具包yum下载
    • 2.2. tomcat安装及配置
    • 2.3. maven安装及配置
    • 2.4. 安装mysql
    • 2.5. order项目配置
    • 2.6. 脚本制作
    • 2.7. 运行脚本

一、需求背景及实现流程

1. 需求背景

order项目代码已经到版本仓库中,执行shell脚本一键部署

2. 实现流程

实现流程实现流程说明
1.远程拉取git远程仓库代码
2.使用mvn进行编译打包
3.一键部署项目
order项目地址https://github.com/gb-heima/order

二、软件准备

2.1. 公共工具包yum下载

yum install unzip wget git -y

2.2. tomcat安装及配置

Centos7 下载、安装、配置、启动部署

2.3. maven安装及配置

Centos7 安装maven

2.4. 安装mysql

Linux6、7 系列 安装、卸载mysql

2.5. order项目配置

配置数据库、执行sql创建表

2.6. 脚本制作

#
#!/bin/bash
DATE=$(date +%F_%T)TOMCAT_NAME=$1
TOMCAT_DIR=/root/$TOMCAT_NAME
ROOT=$TOMCAT_DIR/webapps/ROOTBACKUP_DIR=/data/backup
WORK_DIR=/tmp
PROJECT_NAME=$2# 拉取代码
cd $WORK_DIR
if [ ! -d $PROJECT_NAME ]; thengit clone $3cd $PROJECT_NAME
elsecd $PROJECT_NAMEgit pull
fi# 构建
mvn clean package -Dmaven.test.skip=true
if [ $? -ne 0 ]; thenecho "maven build failure!"exit 1
fi# 部署
TOMCAT_PID=$(ps -ef |grep "$TOMCAT_NAME" |egrep -v "grep|$$" |awk 'NR==1{print $2}')
[ -n "$TOMCAT_PID" ] && kill -9 $TOMCAT_PID
[ -d $ROOT ] && mv $ROOT $BACKUP_DIR/${TOMCAT_NAME}_ROOT$DATE
unzip $WORK_DIR/$PROJECT_NAME/target/*.war -d $ROOT
$TOMCAT_DIR/bin/startup.sh

运行脚本.

#格式 ./batch_order tomcat名称
./batch_order tomcat9

2.7. 运行脚本

#格式 bash 脚本 tomcat名称 项目链接
[root@ly-01 ~]# bash 12.sh order-tomcat order https://github.com/gb-heima/order -x
Cloning into 'order'...
remote: Enumerating objects: 433, done.
remote: Counting objects: 100% (433/433), done.
remote: Compressing objects: 100% (272/272), done.
remote: Total 433 (delta 136), reused 398 (delta 101), pack-reused 0
Receiving objects: 100% (433/433), 3.18 MiB | 140.00 KiB/s, done.
Resolving deltas: 100% (136/136), done.
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.gblfy:order:war:1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 127, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] --------------------------< com.gblfy:order >---------------------------
[INFO] Building order 1.0
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ order ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ order ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ order ---
[INFO] Compiling 9 source files to /tmp/order/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ order ---
[INFO] Not copying test resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ order ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ order ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-war-plugin:2.2:war (default-war) @ order ---
[INFO] Packaging webapp
[INFO] Assembling webapp [order] in [/tmp/order/target/order]
[INFO] Processing war project
[INFO] Copying webapp resources [/tmp/order/src/main/webapp]
[INFO] Webapp assembled in [1052 msecs]
[INFO] Building war: /tmp/order/target/order.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  12.633 s
[INFO] Finished at: 2020-02-25T13:07:16+08:00
[INFO] ------------------------------------------------------------------------
Archive:  /tmp/order/target/order.warcreating: /root/order-tomcat/webapps/ROOT/META-INF/inflating: /root/order-tomcat/webapps/ROOT/META-INF/MANIFEST.MF  creating: /root/order-tomcat/webapps/ROOT/WEB-INF/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/mybatis/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/spring/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/model/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/controller/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/service/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/service/impl/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/dao/creating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/creating: /root/order-tomcat/webapps/ROOT/assets/creating: /root/order-tomcat/webapps/ROOT/assets/avatars/creating: /root/order-tomcat/webapps/ROOT/assets/css/creating: /root/order-tomcat/webapps/ROOT/assets/css/images/creating: /root/order-tomcat/webapps/ROOT/assets/font/creating: /root/order-tomcat/webapps/ROOT/assets/images/creating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/creating: /root/order-tomcat/webapps/ROOT/assets/js/creating: /root/order-tomcat/webapps/ROOT/assets/js/date-time/creating: /root/order-tomcat/webapps/ROOT/assets/js/flot/creating: /root/order-tomcat/webapps/ROOT/assets/js/fuelux/creating: /root/order-tomcat/webapps/ROOT/assets/js/fuelux/data/creating: /root/order-tomcat/webapps/ROOT/assets/js/jqGrid/creating: /root/order-tomcat/webapps/ROOT/assets/js/jqGrid/i18n/creating: /root/order-tomcat/webapps/ROOT/assets/js/markdown/creating: /root/order-tomcat/webapps/ROOT/assets/js/x-editable/creating: /root/order-tomcat/webapps/ROOT/jsp/creating: /root/order-tomcat/webapps/ROOT/jsp/common/inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/web.xml  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/logback.xml  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/mybatis/jdbc.properties  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/spring/applicationContext.xml  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/spring/context-dispatcher.xml  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/model/Category$CategoryBuilder.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/model/Category.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/model/Menu$MenuBuilder.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/model/Menu.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/controller/OrderEntryControllor.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/service/MenuManager.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/service/CategoryManager.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/service/impl/CategoryManagerImpl.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/service/impl/MenuManagerImpl.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/dao/MenuDAO.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/classes/com/gblfy/order/dao/CategoryDAO.class  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/slf4j-api-1.7.26.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/logback-classic-1.2.3.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/logback-core-1.2.3.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/mybatis-3.1.1.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/mybatis-spring-1.2.3.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/mysql-connector-java-8.0.16.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/protobuf-java-3.6.1.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/spring-webmvc-4.0.0.RELEASE.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/spring-beans-4.0.0.RELEASE.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/spring-context-4.0.0.RELEASE.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/spring-core-4.0.0.RELEASE.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/commons-logging-1.1.1.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/spring-expression-4.0.0.RELEASE.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/spring-web-4.0.0.RELEASE.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/aopalliance-1.0.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/spring-aop-4.0.0.RELEASE.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/spring-tx-4.0.0.RELEASE.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/spring-jdbc-4.0.0.RELEASE.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/jstl-1.2.jar  inflating: /root/order-tomcat/webapps/ROOT/WEB-INF/lib/standard-1.1.2.jar  inflating: /root/order-tomcat/webapps/ROOT/assets/avatars/Thumbs.db  inflating: /root/order-tomcat/webapps/ROOT/assets/avatars/avatar.png  inflating: /root/order-tomcat/webapps/ROOT/assets/avatars/avatar1.png  inflating: /root/order-tomcat/webapps/ROOT/assets/avatars/avatar2.png  inflating: /root/order-tomcat/webapps/ROOT/assets/avatars/avatar3.png  inflating: /root/order-tomcat/webapps/ROOT/assets/avatars/avatar4.png  inflating: /root/order-tomcat/webapps/ROOT/assets/avatars/avatar5.png  inflating: /root/order-tomcat/webapps/ROOT/assets/avatars/profile-pic.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/avatars/user.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/css/ace-ie.min.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/ace-rtl.min.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/ace-skins.min.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/ace.min.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/bootstrap-editable.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/bootstrap-timepicker.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/bootstrap.min.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/chosen.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/colorbox.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/colorpicker.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/datepicker.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/daterangepicker.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/dropzone.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/font-awesome-ie7.min.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/font-awesome.min.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/fullcalendar.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/images/Thumbs.db  inflating: /root/order-tomcat/webapps/ROOT/assets/css/images/loading.gif  inflating: /root/order-tomcat/webapps/ROOT/assets/css/jquery-ui-1.10.3.custom.min.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/jquery-ui-1.10.3.full.min.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/jquery.gritter.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/select2.css  inflating: /root/order-tomcat/webapps/ROOT/assets/css/ui.jqgrid.css  inflating: /root/order-tomcat/webapps/ROOT/assets/font/fontawesome-webfont.woff  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/image-1.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/image-2.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/image-3.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/image-4.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/image-5.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/image-6.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/thumb-1.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/thumb-2.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/thumb-3.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/thumb-4.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/thumb-5.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/images/gallery/thumb-6.jpg  inflating: /root/order-tomcat/webapps/ROOT/assets/js/ace-elements.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/ace-extra.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/ace.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/additional-methods.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/bootbox.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/bootstrap-colorpicker.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/bootstrap-tag.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/bootstrap-wysiwyg.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/bootstrap.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/chosen.jquery.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/date-time/bootstrap-datepicker.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/date-time/bootstrap-timepicker.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/date-time/daterangepicker.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/date-time/moment.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/dropzone.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/excanvas.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/flot/jquery.flot.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/flot/jquery.flot.pie.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/flot/jquery.flot.resize.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/fuelux/data/fuelux.tree-sampledata.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/fuelux/fuelux.spinner.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/fuelux/fuelux.tree.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/fuelux/fuelux.wizard.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/fullcalendar.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/html5shiv.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jqGrid/i18n/grid.locale-en.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jqGrid/jquery.jqGrid.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery-1.10.2.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery-2.0.3.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery-ui-1.10.3.custom.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery-ui-1.10.3.full.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.autosize.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.colorbox-min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.dataTables.bootstrap.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.dataTables.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.easy-pie-chart.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.gritter.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.hotkeys.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.inputlimiter.1.3.1.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.knob.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.maskedinput.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.mobile.custom.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.nestable.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.slimscroll.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.sparkline.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.ui.touch-punch.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/jquery.validate.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/markdown/bootstrap-markdown.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/markdown/markdown.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/respond.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/select2.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/typeahead-bs2.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/x-editable/ace-editable.min.js  inflating: /root/order-tomcat/webapps/ROOT/assets/js/x-editable/bootstrap-editable.min.js  inflating: /root/order-tomcat/webapps/ROOT/index.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/categoryAdd.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/categoryEdit.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/categoryList.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/categoryList_blank.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/common/commonStyle.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/common/header.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/common/leftTree.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/menuAdd.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/menuAdd_blank.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/menuEdit.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/menuList.jsp  inflating: /root/order-tomcat/webapps/ROOT/jsp/menuList_blank.jsp  creating: /root/order-tomcat/webapps/ROOT/META-INF/maven/creating: /root/order-tomcat/webapps/ROOT/META-INF/maven/com.gblfy/creating: /root/order-tomcat/webapps/ROOT/META-INF/maven/com.gblfy/order/inflating: /root/order-tomcat/webapps/ROOT/META-INF/maven/com.gblfy/order/pom.xml  inflating: /root/order-tomcat/webapps/ROOT/META-INF/maven/com.gblfy/order/pom.properties  
Using CATALINA_BASE:   /root/order-tomcat
Using CATALINA_HOME:   /root/order-tomcat
Using CATALINA_TMPDIR: /root/order-tomcat/temp
Using JRE_HOME:        /app/jdk1.8.0_202
Using CLASSPATH:       /root/order-tomcat/bin/bootstrap.jar:/root/order-tomcat/bin/tomcat-juli.jar
Tomcat started.
[root@ly-01 ~]#

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/521136.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

[Phoenix] 十、全局索引设计实践

概述 全局索引是Phoenix的重要特性&#xff0c;合理的使用二级索引能降低查询延时&#xff0c;让集群资源得以充分利用。 本文将讲述如何高效的设计和使用索引。 全局索引说明 全局索引的根本是通过单独的HBase表来存储数据表的索引数据。我们通过如下示例看索引数据和主表数…

云原生数据库崛起,阿里云POLARDB当选世界互联网领先科技成果

戳蓝字“CSDN云计算”关注我们哦&#xff01;作者 | 晶少责编 | 阿秃10月20日&#xff0c;在第六届世界互联网大会上&#xff0c;阿里云自研数据库POLARDB当选世界互联网领先科技成果&#xff0c;POLARDB解决了企业在云时代的数据库难题&#xff0c;帮助企业在数小时内完成上云…

gitee提交代码_git 版本控制,github和gitee

3.4 git 版本控制# 查看本地状态git status # 修改README.txt &#xff0c;添加一行,保存&#xff0c;添加到暂存区git add README.txt # 查看当前仓库某一个文件的版本git diff README.txt# 提交到本地仓库git commit README.txt -m second Commit# 查看当前仓库某一个文件版本…

IT 拉呱室 | 论我遇到的最刺激的bug【长期福利站】

戳蓝字“CSDN云计算”关注我们哦&#xff01;套路的最高境界是没有套路&#xff1a;这是一个只送福利的长期互动栏目【如果你们让我尴尬&#xff0c;我就哭给你们看】。书籍、键盘、鼠标、鼠标垫、CSDN 20周年纪念T恤、技术沙龙门票、线上公开课名额……你敢一直在&#xff0c;…

“百变”Redis带你见识不同场景下的产品技术架构

2018飞天技术汇24期-云数据库Redis产品发布会&#xff0c;由阿里云数据库技术组技术专家王欢、怀听、梁盼分别带来以“Redis全球多活产品”、“Redis混合存储产品”、“Redis多线程性能增强版”为题的演讲。本文对Redis进行了简单的介绍&#xff0c;进而针对不同的应用场景研制…

阿里云PyODPS 0.7.18发布,针对聚合函数进行优化同时新增对Python 3.7支持

近日&#xff0c;阿里云发布PyODPS 0.7.18&#xff0c;主要是针对聚合函数进行优化同时新增对Python 3.7支持。 PyODPS是MaxCompute的Python版本的SDK&#xff0c;SDK的意思非常广泛&#xff0c;辅助开发某一类软件的相关文档、范例和工具的集合都可以叫做“SDK”。 PyODPS在这…

centos安装rabbitmq_【SpringBoot MQ系列教程】RabbitMq 初体验

SpringBoot 系列教程之 RabbitMq 初体验​mp.weixin.qq.commq 在异步解耦削峰的优势非常突出&#xff0c;现在很多的项目都会用到&#xff0c;掌握 mq 的知识点&#xff0c;了解如何顺畅的使用 mq&#xff0c;可以说是一个必备的职业技能点了接下来我们进入 rabbitmq 的学习过程…

java rpc与webservice_RPC体系,RPC和WebService的区别详解

RPC和WebService的关系RPC(Remote Procedure Call)— 远程过程调用&#xff0c;是一个很大的概念, 它是一种通过网络从远程计算机程序上跨语言跨平台的请求服务&#xff0c;rpc能省略部分接口代码的开发&#xff0c;可以跨机器之间访问对象(java rmi)&#xff0c;可以有更方便的…

免费公测中-GPU数据库SQream DB正式上线云市场

业内领先的GPU 数据库服务SQream DB在阿里云云市场正式开启免费公测&#xff01;SQream DB是一款由阿里战略投资的以色列SQream公司提供&#xff0c;能够支撑海量数据高速分析的业内领先的GPU数据库。通过将计算密集型操作卸载到GPU上&#xff0c;与业界的解决方案相比&#xf…

唏嘘!2019榜单出炉:铁打的Python连续3年第一,它居然跌出前十?

IEEE Spectrum2019年度编程语言排行榜最近刚刚出炉&#xff0c;Python不出意外的又拿了个第一&#xff0c;但是意料之外的是&#xff0c;曾经大火的PHP&#xff0c;居然跌出了前十&#xff01;PHP曾被大家称为“世界上最好的编程语言”&#xff0c;去年排名第六&#xff0c;前年…

阿里云ECS家族再添新成员,推出密集计算型实例规格族ic5

去年&#xff0c;阿里云正式发布云服务器ECS企业级产品家族&#xff0c;推出面向173种企业应用场景的19款实例。适合在复杂的企业计算环境下&#xff0c;满足对于高性能、高可靠的计算需求。 时隔近一年&#xff0c;回看ECS企业级产品家族已经发展到30款实例&#xff0c;近日再…

findbugs插件_Intellij静态代码扫描插件SpotBugs

最近要做Java静态扫描的部分工作&#xff0c;之前是在Jenkins上使用findbugs插件完成的&#xff0c;但是由于现在Jenkins权限收回和Java代码权限的放开(我也搞不懂这两者的关联性)&#xff0c;目前打算在本地完成静态代码扫描工作。选来选取还是选择在Intellij中用插件来完成&a…

一张图看懂智联车管理云平台

智联车管理云平台&#xff08;IoV Command Center&#xff0c;简称IoV CC&#xff09;是阿里云面向智联车领域&#xff0c;专门推出的车辆全生命周期云端管理平台&#xff0c;旨在赋能车厂转型出行服务商&#xff0c;提高运营效率、降低自建成本。 传统模式下&#xff0c;车辆…

刨根问底 | 红遍全网的SD-WAN,到底是个啥?

戳蓝字“CSDN云计算”关注我们哦&#xff01;作者 | 小枣君责编 | 阿秃作为一个热门概念&#xff0c;SD-WAN近年以来频繁地出现在我们的视野当中。很多人说&#xff0c;它是未来最具发展潜力的通信技术之一&#xff0c;极具商业价值。行业里的老牌通信设备商和运营商对它一致看…

centos7安装rabbitmq简单方式

安装rabbitmq前要准备的基础环境 yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c kernel-devel m4 ncurses-devel tk tc xz tcp_wrappers需下载的安装文件如下 ## erlang wget www.rabbitmq.com/releases/erlang/erlang-18.3-1.…

车联网上云最佳实践(一)

一、车联网行业特性讲解 最近两年车联网发展受到政府部门、科研院以及各大互联网巨头的广泛关注和积极推动。从应用来看&#xff0c;主要包括两种模式&#xff1a;一是前装模式&#xff08;即车辆出厂前安装&#xff09;&#xff0c;是乘用车厂主导或者与有相关能力的公司合作&…

python3 网站状态监控_基于python3监控服务器状态进行邮件报警

在正式的生产环境中&#xff0c;我们常常会需要监控服务器的状态&#xff0c;以保证公司整个业务的正常运转&#xff0c;常常我们会用到像nagios、zabbix这类工具进行实时监控&#xff0c;那么用python我们怎么进行监控呢&#xff1f;这里我们利用了python3调用psutil和yagmail…

车联网上云最佳实践(二)

云上对标架构及技术详解 我们对传统IDC应用架构进行分析之后&#xff0c;我们发现之前的系统架构存在一些不合理的地方导致了很多的痛点&#xff0c;为了解决这些痛点我们最终考虑上云。开始思考怎样利用云上产品来解决目前遇到的痛点。例如 为了解决我们自建IDC底层基础设施可…

java list 字段去重_java list 根据对象一个字段去重

1.主要思路就是根据从写equals 以及 hashCode 方法。代码如下&#xff1a;package com.bfd.unibase.modules.dataview.entity;import org.hibernate.validator.constraints.Length;import java.util.ArrayList;import java.util.Date;import java.util.HashSet;import java.uti…

Dubbo Mesh | 阿里巴巴中间件团队在 Service Mesh 的实践和探索(附PPT)

精彩观点导读&#xff1a; 我们去探索一项技术&#xff0c;并不会仅仅因为其先进性&#xff0c;而是因为我们目前遇到了一些无法解决的问题&#xff0c;而这项技术正好能解决这个问题。 所有软件最重要的使命不是满足功能要求&#xff0c;而是演进&#xff0c;从而持续成长。…