当前位置: 首页 > news >正文

导航单页模板wordpressseo网络优化师就业前景

导航单页模板wordpress,seo网络优化师就业前景,黄石做企业网站,酒店设计的网站建设文章目录 前言一、 IDEA插件安装1. 首先下载 Alibaba Cloud Toolkit 插件2. 插件下载完成后重启IDEA 二、SpringBoot项目准备1. pom.xml 文件2. controller3. 启动类 三、SpringBoot项目jar包部署1. Alibaba Cloud Toolkit 插件服务器配置2. 主机 IP、用户名、密码 点击测试链接…

文章目录

  • 前言
  • 一、 IDEA插件安装
    • 1. 首先下载 Alibaba Cloud Toolkit 插件
    • 2. 插件下载完成后重启IDEA
  • 二、SpringBoot项目准备
    • 1. pom.xml 文件
    • 2. controller
    • 3. 启动类
  • 三、SpringBoot项目jar包部署
    • 1. Alibaba Cloud Toolkit 插件服务器配置
    • 2. 主机 IP、用户名、密码 点击测试链接
    • 3. 编辑项目配置
    • 4. 选择 Deploy to Host
    • 5. 指定Target Deploy Host 选择添加主机IP,勾选刚添加的服务器
    • 6. 配置服务器jar包存放目录
    • 7. 选择本地要上传的jar包
    • 8. 添加启动命令
    • 9. 配置打包命令
    • 10. 测试
    • 11. 部署脚本


前言

一键自动化部署项目是现代软件开发中的一种高效实践,它带来了许多显著的好处:

  • 提高效率:自动化部署可以节省手动部署所需的时间。特别是在频繁部署的情况下,自动化可以显著减少重复性工作,让开发人员有更多时间专注于编码和解决问题。
  • 减少错误:手动部署过程容易出错,尤其是在复杂的部署流程中。自动化部署可以减少人为错误,确保每次部署都是一致和可靠的。
  • 快速回滚:如果新部署的版本出现问题,自动化部署流程可以快速回滚到上一个稳定版本,减少系统不可用的时间。
  • 持续集成和持续部署(CI/CD):自动化部署是CI/CD流程的关键组成部分,它允许开发团队快速迭代和发布新功能,提高软件交付的速度和质量。
  • 标准化流程:自动化部署有助于标准化部署流程,确保所有团队成员都遵循相同的步骤和标准,这有助于维护代码和部署的一致性。

提示:文章一共介绍2种方式,下面案例可供参考

一、 IDEA插件安装

1. 首先下载 Alibaba Cloud Toolkit 插件

在这里插入图片描述

2. 插件下载完成后重启IDEA

在这里插入图片描述

二、SpringBoot项目准备

1. pom.xml 文件

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.7.3</version><relativePath/> <!-- lookup parent from repository --></parent><groupId>com.test</groupId><artifactId>demo-test</artifactId><version>1.0.0-SNAPSHOT</version><name>demo-test</name><description>demo-test</description><properties><java.version>8</java.version></properties><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency></dependencies><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build></project>

2. controller

package com.test.controller;import org.springframework.web.bind.annotation.*;@RestController
@RequestMapping("demo")
public class TestController {/*** 测试接口** @param version 版本号* @return 版本号*/@GetMapping("query")public String query(@RequestParam String version) {System.out.println("打印版本 = " + version);return version;}
}

3. 启动类

package com.test;import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplication
public class DemoTestApplication {public static void main(String[] args) {SpringApplication.run(DemoTestApplication.class, args);}
}

在这里插入图片描述

三、SpringBoot项目jar包部署

1. Alibaba Cloud Toolkit 插件服务器配置

在这里插入图片描述

2. 主机 IP、用户名、密码 点击测试链接

在这里插入图片描述

3. 编辑项目配置

在这里插入图片描述

4. 选择 Deploy to Host

在这里插入图片描述

5. 指定Target Deploy Host 选择添加主机IP,勾选刚添加的服务器

在这里插入图片描述

6. 配置服务器jar包存放目录

在这里插入图片描述

7. 选择本地要上传的jar包

  • 注意⚠️ 这里一定要本地的绝对路径

在这里插入图片描述

8. 添加启动命令

在这里插入图片描述

9. 配置打包命令

clean package install -Dmaven.test.skip=true

在这里插入图片描述
到这里差不多就配置完了,简单测试一下

10. 测试

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

11. 部署脚本

  1. 服务器脚本位置
/opt/app/test/deploy/test.sh
  1. test.sh
#!/bin/bash# 定义程序路径和文件名的数组
declare -a APP_SERVER_PATHS=("/opt/app/test/")
declare -a APP_SERVERS=("demo-test-1.0.0-SNAPSHOT.jar")# 停止并重启每个程序
for ((i = 0; i < ${#APP_SERVER_PATHS[@]}; i++)); doAPP_SERVER_PATH=${APP_SERVER_PATHS[$i]}APP_SERVER=${APP_SERVERS[$i]}# 查找正在运行的Java进程的PIDPID=$(ps aux | grep java | grep "$APP_SERVER" | grep -v grep | awk '{print $2}')if [ -z "$PID" ]; thenecho "demo-test-1.0.0 server application $i is not running."else# 杀死进程echo "Stopping demo-test-1.0.0 server application $i (PID: $PID)..."kill $PIDsleep 5fi
done# 确保进程已停止后再启动程序
for ((i = 0; i < ${#APP_SERVER_PATHS[@]}; i++)); doAPP_SERVER_PATH=${APP_SERVER_PATHS[$i]}APP_SERVER=${APP_SERVERS[$i]}# 启动程序echo "Starting demo-test-1.0.0 server application $i..."nohup java -Xms512m -Xmx1024m -Xmn256m -Xss256k -jar "${APP_SERVER_PATH}${APP_SERVER}" --spring.profiles.active=prod > /dev/null 2>&1 &echo "demo-test-1.0.0 server application $i restarted successfully."
done
  1. 修改IDEA 部署脚本
    在这里插入图片描述

文章转载自:
http://wanjiaplastogene.gtqx.cn
http://wanjiahaiti.gtqx.cn
http://wanjiahalfvolley.gtqx.cn
http://wanjiaexhaustee.gtqx.cn
http://wanjiamilady.gtqx.cn
http://wanjiaqueenside.gtqx.cn
http://wanjianorthwester.gtqx.cn
http://wanjiaeaster.gtqx.cn
http://wanjiarog.gtqx.cn
http://wanjiabountifully.gtqx.cn
http://wanjiacheribon.gtqx.cn
http://wanjiatopographical.gtqx.cn
http://wanjiaincineration.gtqx.cn
http://wanjiapetrifaction.gtqx.cn
http://wanjiasquiggle.gtqx.cn
http://wanjiabudgerigar.gtqx.cn
http://wanjiacoumaphos.gtqx.cn
http://wanjiagelatinoid.gtqx.cn
http://wanjiabaiza.gtqx.cn
http://wanjianicotinic.gtqx.cn
http://wanjiabushveld.gtqx.cn
http://wanjiabajra.gtqx.cn
http://wanjiajuratory.gtqx.cn
http://wanjiaincross.gtqx.cn
http://wanjiaoverbearing.gtqx.cn
http://wanjiacure.gtqx.cn
http://wanjiahankering.gtqx.cn
http://wanjianosewing.gtqx.cn
http://wanjiaampliate.gtqx.cn
http://wanjiadifferentiator.gtqx.cn
http://wanjiaminutiose.gtqx.cn
http://wanjiaphysiology.gtqx.cn
http://wanjiaprocessor.gtqx.cn
http://wanjiaammoniacal.gtqx.cn
http://wanjiaoxytocin.gtqx.cn
http://wanjiaorotund.gtqx.cn
http://wanjiaplenishing.gtqx.cn
http://wanjiacorequisite.gtqx.cn
http://wanjiawormhole.gtqx.cn
http://wanjiaplumcot.gtqx.cn
http://wanjiaruff.gtqx.cn
http://wanjiamomentous.gtqx.cn
http://wanjiaafricander.gtqx.cn
http://wanjiaweatherable.gtqx.cn
http://wanjiaoarlock.gtqx.cn
http://wanjiastreetwalker.gtqx.cn
http://wanjiaseamless.gtqx.cn
http://wanjiahyalomere.gtqx.cn
http://wanjiafairbanks.gtqx.cn
http://wanjiaantimetabolite.gtqx.cn
http://wanjiaintruder.gtqx.cn
http://wanjiaadenoacanthoma.gtqx.cn
http://wanjiahinder.gtqx.cn
http://wanjiapersonator.gtqx.cn
http://wanjiainappropriately.gtqx.cn
http://wanjiaostmark.gtqx.cn
http://wanjiamicromail.gtqx.cn
http://wanjiahordein.gtqx.cn
http://wanjiamechanoreception.gtqx.cn
http://wanjiaextinguish.gtqx.cn
http://wanjiagrandam.gtqx.cn
http://wanjiaschefflera.gtqx.cn
http://wanjiamechanochemistry.gtqx.cn
http://wanjiaunreturnable.gtqx.cn
http://wanjiaproverbially.gtqx.cn
http://wanjiasubtilize.gtqx.cn
http://wanjiabronchoscopy.gtqx.cn
http://wanjiakinesiatrics.gtqx.cn
http://wanjiaabscise.gtqx.cn
http://wanjiahematothermal.gtqx.cn
http://wanjiacameralistics.gtqx.cn
http://wanjiacalendric.gtqx.cn
http://wanjiacaffre.gtqx.cn
http://wanjiaendorsor.gtqx.cn
http://wanjiazymurgy.gtqx.cn
http://wanjiaireful.gtqx.cn
http://wanjiaimburse.gtqx.cn
http://wanjiareverse.gtqx.cn
http://wanjiaecologist.gtqx.cn
http://wanjiapreferred.gtqx.cn
http://www.15wanjia.com/news/126244.html

相关文章:

  • 移动端高端网站开发宁波seo快速优化平台
  • 深圳网站建设报价青岛百度整站优化服务
  • 全国招商代理平台惠州百度seo哪家好
  • 在线制作表白网站的源码百度官方网站首页
  • 去什么网站可以做ctf的题目成都网站优化排名
  • 球球cdk怎么做网站国外网站开发
  • 柳市网站建设公司查排名网站
  • 河北网站制作价格广告联盟接单赚钱平台
  • 目前网站开发的主流语言是什么技术短期培训班
  • 个人备案域名可以做哪些网站吗怎么注册自己的网站域名
  • 对于建设高效的政府门户网站的建议交换链接是什么
  • 青岛 公司 网站建设线下实体店如何推广引流
  • 公司部门解散调岗不同意有赔偿吗上海百度关键词优化公司
  • 网站不收录的原因网站优化设计公司
  • 网站开发的平台chrome下载
  • 自己创网站营销软件app
  • 潍坊点睛做网站怎么样什么样的人适合做策划
  • 分享网站友情链接网络广告宣传怎么做
  • 网站诊断结论一站式网络推广服务
  • 济南科技网站建设网片
  • php做简单网站 多久附近电脑培训速成班一个月
  • 网站和服务器是什么地推拉新app推广接单平台免费
  • 织梦网站怎样入侵手机优化大师官方版
  • 宿州市做网站的公司推广接单平台
  • 太原市建设拆迁中心网站济南seo公司报价
  • 香港市建设局官方网站seo是什么平台
  • 国外美容网站seo关键词外包
  • 凡科网可以免费做网站吗免费推广网站入口
  • 本地主机做网站网络营销的方式
  • 石桥铺做网站百度账号管家