• CICD 流程学习(五)Jenkins后端工程构建


    案例1:数据库服务部署
    MySQL部署
    1. #安装MySQL服务
    2. [root@Services ~]# yum clean all; yum repolist -v
    3. ...
    4. Total packages: 8,265
    5. [root@Services ~]# yum -y install mysql.x86_64 mysql-server.x86_64 mysql-devel.x86_64
    6. ...
    7. Complete!
    8. [root@Services ~]#
    9. #启动MySQL服务
    10. [root@Services ~]# systemctl enable mysqld #设置MySQL服务开机自启动
    11. [root@Services ~]# systemctl start mysqld #启动MySQL服务
    12. [root@Services ~]# ss -antpul | grep mysql #确认3306端口被监听
    13. tcp LISTEN 0 70 *:33060 *:* users:(("mysqld",pid=6875,fd=22))
    14. tcp LISTEN 0 128 *:3306 *:* users:(("mysqld",pid=6875,fd=25))
    15. [root@Services ~]#
    16. #初始化MySQL服务
    17. [root@Services ~]# mysql
    18. mysql> ALTER USER root@'localhost' IDENTIFIED BY 'Tarena'; #设置root用户密码
    19. Query OK, 0 rows affected (0.00 sec)
    20. mysql> exit
    21. Bye
    22. [root@Services ~]# mysql -hlocalhost -uroot -p'Tarena' -e "STATUS;"
    23. mysql: [Warning] Using a password on the command line interface can be insecure.
    24. --------------
    25. mysql Ver 8.0.26 for Linux on x86_64 (Source distribution)
    26. Connection id: 9
    27. Current database:
    28. Current user: root@localhost
    29. SSL: Not in use
    30. Current pager: stdout
    31. Using outfile: ''
    32. Using delimiter: ;
    33. Server version: 8.0.26 Source distribution
    34. Protocol version: 10
    35. Connection: Localhost via UNIX socket
    36. Server characterset: utf8mb4
    37. Db characterset: utf8mb4
    38. Client characterset: utf8mb4
    39. Conn. characterset: utf8mb4
    40. UNIX socket: /var/lib/mysql/mysql.sock
    41. Binary data as: Hexadecimal
    42. Uptime: 2 min 0 sec
    43. Threads: 2 Questions: 9 Slow queries: 0 Opens: 130 Flush tables: 3 Open tables: 46 Queries per second avg: 0.075
    44. --------------
    45. [root@Services ~]#
    46. #创建HIS项目数据库
    47. [root@Services ~]# mysql -hlocalhost -uroot -p'Tarena'
    48. mysql> CREATE DATABASE his; #创建his库
    49. Query OK, 1 row affected (0.00 sec)
    50. mysql> CREATE USER 'his'@'192.168.88.60' IDENTIFIED BY 'hisadmin'; #创建his用户
    51. Query OK, 0 rows affected (0.01 sec)
    52. mysql> GRANT ALL ON his.* TO 'his'@'192.168.88.60'; #授权his用户
    53. Query OK, 0 rows affected (0.00 sec)
    54. mysql> SHOW GRANTS FOR 'his'@'192.168.88.60'; #查看his用户权限
    55. +----------------------------------------------------------+
    56. | Grants for his@192.168.88.60 |
    57. +----------------------------------------------------------+
    58. | GRANT USAGE ON *.* TO `his`@`192.168.88.60` |
    59. | GRANT ALL PRIVILEGES ON `his`.* TO `his`@`192.168.88.60` |
    60. +----------------------------------------------------------+
    61. 2 rows in set (0.00 sec)
    62. mysql> exit
    63. Bye
    64. [root@Services ~]#
    65. #导入HIS项目SQL
    66. [root@Services ~]# ls his.sql
    67. his.sql
    68. [root@Services ~]# mysql -hlocalhost -uroot -p'Tarena' his < his.sql
    69. mysql: [Warning] Using a password on the command line interface can be insecure.
    70. [root@Services ~]# mysql -hlocalhost -uroot -p'Tarena' -e "SHOW TABLES FROM his;"
    71. mysql: [Warning] Using a password on the command line interface can be insecure.
    72. +----------------------------------+
    73. | Tables_in_his |
    74. +----------------------------------+
    75. | bms_bills_record |
    76. | bms_invoice_exp |
    77. | bms_invoice_record |
    78. | bms_operator_settle_record |
    79. | bms_settlement_cat |
    80. | dms_case_history |
    81. | dms_case_model |
    82. | dms_case_model_catalog |
    83. | dms_dise |
    84. | dms_dise_catalog |
    85. | dms_dosage |
    86. | dms_drug |
    87. | dms_drug_model |
    88. | dms_drug_refund_item_record |
    89. | dms_herbal_item_record |
    90. | dms_herbal_model_item |
    91. | dms_herbal_prescription_record |
    92. | dms_medicine_item_record |
    93. | dms_medicine_model_item |
    94. | dms_medicine_prescription_record |
    95. | dms_non_drug |
    96. | dms_non_drug_item_record |
    97. | dms_non_drug_model |
    98. | dms_registration |
    99. | pms_patient |
    100. | sms_dept |
    101. | sms_description |
    102. | sms_frequent_used |
    103. | sms_login_log |
    104. | sms_permission |
    105. | sms_registration_rank |
    106. | sms_role |
    107. | sms_role_permission_relation |
    108. | sms_skd |
    109. | sms_skd_rule |
    110. | sms_skd_rule_item |
    111. | sms_staff |
    112. | sms_workload_record |
    113. +----------------------------------+
    114. [root@Services ~]#
    Redis部署
    1. #安装Redis服务
    2. [root@Services ~]# yum -y install redis.x86_64
    3. #配置Redis服务
    4. [root@Services ~]# vim /etc/redis.conf
    5. [root@Services ~]# sed -rn '69p;88p;507p' /etc/redis.conf
    6. bind 0.0.0.0 #监听本地所有网络
    7. protected-mode no #关闭保护模式
    8. requirepass hisadmin #设置redis访问密码
    9. [root@Services ~]#
    10. #启动Redis服务
    11. [root@Services ~]# systemctl enable redis.service #设置Redis服务开机自启动
    12. [root@Services ~]# systemctl start redis.service #启动Redis服务
    13. [root@Services ~]# ss -antpul | grep redis #确认6379端口被监听
    14. tcp LISTEN 0 128 0.0.0.0:6379 0.0.0.0:* users:(("redis-server",pid=7839,fd=6))
    15. [root@Services ~]#
    16. #测试Redis服务
    17. [root@Services ~]# redis-cli -h localhost -p 6379 -a hisadmin info
    案例2:Jenkins全局工具配置
    配置JDK环境

     

     配置Git工具

     配置Maven工具

    1. #Jenkins主机安装Maven
    2. [root@Jenkins ~]# ls apache-maven-3.6.3-bin.tar.gz
    3. apache-maven-3.6.3-bin.tar.gz
    4. [root@Jenkins ~]# tar -xf apache-maven-3.6.3-bin.tar.gz #解包
    5. [root@Jenkins ~]# mv apache-maven-3.6.3 /usr/local/maven #移动到指定目录
    6. [root@Jenkins ~]# ls /usr/local/maven/
    7. bin boot conf lib LICENSE NOTICE README.txt
    8. [root@Jenkins ~]#
    9. #配置Maven环境变量
    10. [root@Jenkins ~]# vim /etc/bashrc #修改bash环境配置
    11. [root@Jenkins ~]# tail -2 /etc/bashrc
    12. export MAVEN_HOME="/usr/local/maven/" #声明MAVEN_HOME变量
    13. export PATH=${MAVEN_HOME}/bin/:$PATH #将MAVEN命令加入PATH
    14. [root@Jenkins ~]# source /etc/bashrc #刷新bash环境
    15. [root@Jenkins ~]# echo ${MAVEN_HOME} #测试变量声明
    16. /usr/local/maven/
    17. [root@Jenkins ~]# mvn -v #测试mvn命令
    18. Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
    19. Maven home: /usr/local/maven
    20. Java version: 11.0.15, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-11-openjdk-11.0.15.0.9-2.el8_5.x86_64
    21. Default locale: en_US, platform encoding: UTF-8
    22. OS name: "linux", version: "4.18.0-372.9.1.el8.x86_64", arch: "amd64", family: "unix"
    23. [root@Jenkins ~]#
    24. #部署Maven本地仓库
    25. [root@Jenkins ~]# ls repository.tar.gz
    26. repository.tar.gz
    27. [root@Jenkins ~]# tar -xPpf repository.tar.gz -C / #解压Maven仓库
    28. [root@Jenkins ~]# ls /var/lib/jenkins/.m2/
    29. repository
    30. [root@Jenkins ~]# ls /var/lib/jenkins/.m2/repository/
    31. aopalliance classworlds commons-beanutils commons-io de joda-time net
    32. backport-util-concurrent cn commons-codec commons-lang io junit org
    33. ch com commons-collections commons-logging javax mysql
    34. [root@Jenkins ~]#

    配置邮件工具
    1. #启动邮件服务
    2. [root@Jenkins ~]# systemctl enable postfix.service
    3. [root@Jenkins ~]# systemctl start postfix
    4. [root@Jenkins ~]# ss -antpul | grep master
    5. tcp LISTEN 0 100 127.0.0.1:25 0.0.0.0:* users:(("master",pid=1203,fd=13))
    6. tcp LISTEN 0 100 [::1]:25 [::]:* users:(("master",pid=1203,fd=14))
    7. [root@Jenkins ~]#

     

    1. #确认邮件接收情况
    2. [root@Jenkins ~]# yum -y install mailx #安装邮件客户端命令
    3. Complete!
    4. [root@Jenkins ~]# mail -u root #查看root用户邮件
    5. Heirloom Mail version 12.5 7/5/10. Type ? for help.
    6. "/var/mail/root": 1 message 1 new
    7. >N 1 没有配置邮箱地址 Fri Feb 24 12:04 18/640 "Test email #4"
    8. & 1
    9. Message 1: #查看邮件内容
    10. From nobody@nowhere Fri Feb 24 12:04:20 2023
    11. Return-Path: <nobody@nowhere>
    12. X-Original-To: root
    13. Delivered-To: root@Jenkins.localdomain
    14. Date: Fri, 24 Feb 2023 12:04:20 +0800 (CST)
    15. From: 没有配置邮箱地址 <nobody@nowhere>
    16. To: root@Jenkins.localdomain
    17. Subject: Test email #4
    18. Content-Type: text/plain; charset=UTF-8
    19. Status: R
    20. This is test email #4 sent from Jenkins
    21. & quit
    22. Held 1 message in /var/mail/root
    23. [root@Jenkins ~]#
    案例3:Jenkins后端工程构建
    Jenkins中创建HIS-BACKEND工程

     

    1. #Maven打包参数:Maven执行打包操作时需要调用pom.xml文件,所以需要指定pom.xml文件位置
    2. clean package -Dmaven.test.skip=true #清理旧文件、跳过测试直接打包

     测试HIS-BACKEND工程构建

     

    1. #Jenkins主机确认HIS-BACKEND构建情况
    2. [root@Jenkins ~]# ls /var/lib/jenkins/workspace/ #确认拉取HIS-BACKEND代码
    3. HIS-BACKEND HIS-FONTEND
    4. [root@Jenkins ~]# ls /var/lib/jenkins/workspace/HIS-BACKEND/
    5. HIS-api HIS-common HIS-demo HIS-mbg HIS-service pom.xml
    6. [root@Jenkins ~]# ls /var/lib/jenkins/workspace/HIS-BACKEND/HIS-api/
    7. mvnw mvnw.cmd pom.xml src target
    8. [root@Jenkins ~]# ls /var/lib/jenkins/workspace/HIS-BACKEND/HIS-api/target/ #确认打包
    9. classes generated-sources HIS-api-1.0-SNAPSHOT.jar HIS-api-1.0-SNAPSHOT.jar.original maven-archiver maven-status
    10. [root@Jenkins ~]#
    11. #清理HIS-BACKEND本次构建
    12. [root@Jenkins ~]# rm -rf /var/lib/jenkins/workspace/HIS-BACKEND/
    13. [root@Jenkins ~]#
    案例4:Jenkins后端自动发布
    添加SSH服务器

     

     

    HIS-BACKEND工程配置自动发布

     

    Backend主机部署
    • 部署OpenJDK环境
    1. #安装OpenJDK-1.8
    2. [root@Backend ~]# yum clean all; yum repolist -v
    3. ...
    4. Total packages: 8,265
    5. [root@Backend ~]# yum -y install java-1.8.0-openjdk-devel.x86_64 #安装jdk-1.8
    6. #配置JDK环境变量
    7. [root@Backend ~]# ln -s /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.332.b09-1.el8_5.x86_64/ /usr/lib/jvm/jdk #制作软链接
    8. [root@Backend ~]# vim /etc/bashrc #配置JAVA相关环境变量
    9. [root@Backend ~]# tail -3 /etc/bashrc
    10. export JAVA_HOME="/usr/lib/jvm/jdk/" #声明JAVA_HOME
    11. export PATH=${JAVA_HOME}/bin/:$PATH #将JAVA_HOME加入PATH
    12. export CLASSPATH=. #声明类库路径
    13. [root@Backend ~]# source /etc/bashrc #刷新bash环境
    14. [root@Backend ~]# echo ${JAVA_HOME} #测试变量声明
    15. /usr/lib/jvm/jdk/
    16. [root@Backend ~]# java -version
    17. openjdk version "1.8.0_332"
    18. OpenJDK Runtime Environment (build 1.8.0_332-b09)
    19. OpenJDK 64-Bit Server VM (build 25.332-b09, mixed mode)
    20. [root@Backend ~]#
    • 部署jar包运行配置文件
    1. #HIS项目采用外置配置文件方式
    2. [root@Backend ~]# mkdir /opt/his/
    3. [root@Backend ~]# scp 192.168.88.10:/root/HIS/HIS-CONFIG/*.yml /opt/his/
    4. application-prod.yml 100% 2690 912.9KB/s 00:00
    5. application.yml 100% 257 374.1KB/s 00:00
    6. [root@Backend ~]# ls /opt/his/
    7. application-prod.yml application.yml
    8. [root@Backend ~]#
    HIS-BACKEND工程自动发布测试

     

     

    1. #Jenkins主机确认HIS-BACKEND打包成功
    2. [root@Jenkins ~]# ls /var/lib/jenkins/workspace/HIS-BACKEND/HIS-api/target/HIS-api-1.0-SNAPSHOT.jar
    3. /var/lib/jenkins/workspace/HIS-BACKEND/HIS-api/target/HIS-api-1.0-SNAPSHOT.jar
    4. [root@Jenkins ~]#
    5. #Backend主机确认jar包发布情况
    6. [root@Backend ~]# ls /opt/his/
    7. application-prod.yml application.yml HIS-api-1.0-SNAPSHOT.jar
    8. [root@Backend ~]#
    9. #手工运行jar包测试HIS后端程序
    10. [root@Backend his]# java -jar HIS-api-1.0-SNAPSHOT.jar #前台进程
    11. /opt/his/.
    12. . ____ _ __ _ _
    13. /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
    14. ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
    15. \\/ ___)| |_)| | | | | || (_| | ) ) ) )
    16. ' |____| .__|_| |_|_| |_\__, | / / / /
    17. =========|_|==============|___/=/_/_/_/
    18. :: Spring Boot :: (v2.1.3.RELEASE)
    19. ...
    20. 2023-02-24 13:00:24.881 INFO 9629 --- [ main] com.neu.his.HisApiApplication : Started HisApiApplication in 13.82 seconds (JVM running for 14.352)
    21. #另开终端验证
    22. [root@Backend ~]# ss -antpu | grep :8888 #确认8888端口被监听
    23. tcp LISTEN 0 100 *:8888 *:* users:(("java",pid=9629,fd=63))
    24. [root@Backend ~]# ss -antpu | grep java
    25. #访问测试
    26. [root@Backend ~]# curl http://localhost:8888
    27. DOCTYPE html>
    28. <html lang="cn">
    29. <head>
    30. <meta charset="UTF-8">
    31. <title>Title
    32. head>
    33. <body>
    34. <h1>HIS
    35. body>
    36. html>[root@Backend ~]# curl http://localhost:8888/actuator/health?pretty
    37. {"status":"UP","details":{"rabbit":{"status":"UP","details":{"version":"3.11.5"}},"diskSpace":{"status":"UP","details":{"total":10725883904,"free":8431407104,"threshold":10485760}},"db":{"status":"UP","details":{"database":"MySQL","hello":1}},"elasticsearch":{"status":"UP","details":{"clusterName":"elasticsearch","numberOfNodes":1,"numberOfDataNodes":1,"activePrimaryShards":22,"activeShards":22,"relocatingShards":0,"initializingShards":0,"unassignedShards":20}},"elasticsearchRest":{"status":"UP","details":{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":22,"active_shards":22,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":20,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":52.38095238095239}},"redis":{"status":"UP","details":{"version":"5.0.3"}}}}[root@Backend ~]#
    案例5:HIS项目展示
    配置Nginx前后端交互
    1. #修改his.conf虚拟主机配置
    2. [root@Fontend ~]# vim /etc/nginx/conf.d/his.conf
    3. [root@Fontend ~]# cat /etc/nginx/conf.d/his.conf
    4. server {
    5. listen 80 default_server;
    6. server_name __;
    7. access_log "/opt/his/log/$host.log";
    8. location / {
    9. root "/opt/his/web/";
    10. index index.html index.htm;
    11. }
    12. #配置api转发
    13. location /prod-api/ {
    14. proxy_pass http://192.168.88.60:8888/;
    15. }
    16. }
    17. [root@Fontend ~]# systemctl restart nginx.service #重启nginx服务
    18. [root@Fontend ~]# ss -antpul | grep nginx
    19. tcp LISTEN 0 128 0.0.0.0:80 0.0.0.0:* users:(("nginx",pid=952,fd=6),("nginx",pid=951,fd=6),("nginx",pid=950,fd=6))
    20. [root@Fontend ~]#
    HIS效果展示
    1. #确保HIS后端程序正常运行
    2. [root@Fontend ~]# curl http://192.168.88.60:8888/
    3. <!DOCTYPE html>
    4. <html lang="cn">
    5. <head>
    6. <meta charset="UTF-8">
    7. <title>Title</title>
    8. </head>
    9. <body>
    10. <h1>HIS</h1>
    11. </body>
    12. </html>
    13. [root@Fontend ~]#
    14. #浏览器访问HIS前端页面:http://192.168.88.70/

     

    案例6:HIS项目全流程
    清理Jenkins工作目录
    1. #手工清理Jenkins工作目录
    2. [root@Jenkins ~]# rm -rf /var/lib/jenkins/workspace/*
    3. [root@Jenkins ~]#
    前端全流程
    1. #更新HIS-FONTEND工程
    2. 1、构建前清理/opt/his/web/下原有代码
    3. 2、构建后自动解压fontend.tar.gz压缩包
    4. 3、删除fontend.tar.gz压缩包
    5. #构建前操作
    6. rm -rf /opt/his/web/* #清理旧版本文件
    7. #构建后操作
    8. cd /opt/his/web/ #切换到前端代码存放目录
    9. tar -xf fontend.tar.gz #解压fontend.tar.gz压缩包
    10. rm -rf fontend.tar.gz #清理fontend.tar.gz压缩包

     

     

     

     

     后端全流程

    1. #更新HIS-FONTEND工程
    2. 1、构建前终止HIS后端jar进程
    3. 2、清理/opt/his/目录下原有jar包
    4. 3、发送jar后远程启动jar包
    5. #构建前操作
    6. jps | grep jar | awk '{print $1}' | xargs kill #查找HIS后端jar包pid并杀死进程
    7. rm -rf /opt/his/HIS-api-1.0-SNAPSHOT.jar #清理旧版本jar包
    8. #构建后操作
    9. cd /opt/his/ #切换到jar包目录
    10. nohup java -jar HIS-api-1.0-SNAPSHOT.jar > ./his.log 2>&1 & #后台启动jar包

     

     

     

    CI/CD全流程测试
    • 前端全流程测试
    1. #查看现有首页内容,注意title内容为"东软云"
    2. [root@Fontend ~]# vim /opt/his/web/index.html
    3. [root@Fontend ~]#
    4. #Programer主机更新前端代码,title更新为"达内云"
    5. [root@Programer HIS-FONTEND]# vim index.html #修改title内容
    6. [root@Programer HIS-FONTEND]#
    7. [root@Programer HIS-FONTEND]# git add ./ #添加修改到暂存区
    8. [root@Programer HIS-FONTEND]# git commit -m "modify index.html" #生成新版本
    9. [master 33da040] modify index.html
    10. 1 file changed, 1 insertion(+), 1 deletion(-)
    11. [root@Programer HIS-FONTEND]# git tag v2 #打v2标签
    12. [root@Programer HIS-FONTEND]# git push #推送分支到服务器
    13. 枚举对象中: 5, 完成.
    14. 对象计数中: 100% (5/5), 完成.
    15. 使用 2 个线程进行压缩
    16. 压缩对象中: 100% (3/3), 完成.
    17. 写入对象中: 100% (3/3), 345 字节 | 345.00 KiB/s, 完成.
    18. 总共 3(差异 1),复用 0(差异 0),包复用 0
    19. To http://192.168.88.20/devops/HIS-FONTEND.git
    20. 2c9f9bb..33da040 master -> master
    21. [root@Programer HIS-FONTEND]# git push --tags #推送标签到服务器
    22. 总共 0(差异 0),复用 0(差异 0),包复用 0
    23. To http://192.168.88.20/devops/HIS-FONTEND.git
    24. * [new tag] v2 -> v2
    25. [root@Programer HIS-FONTEND]#

     

     

     

    1. #Fontend主机验证构建结果
    2. [root@Fontend ~]# ls /opt/his/web/ #确认fontend.tar.gz清理情况
    3. favicon.ico index.html static
    4. [root@Fontend ~]# vim /opt/his/web/index.html #查看页面内title内容是否为"达内云"
    5. [root@Fontend ~]#
    6. #Jenkins主机确认自动清理工作目录
    7. [root@Jenkins ~]# ls /var/lib/jenkins/workspace/
    8. [root@Jenkins ~]#
    • 后端全流程测试
    1. #此时HIS后端jar包应为之前的手工启动前台进程
    2. [root@Fontend ~]# curl http://192.168.88.60:8888/
    3. <!DOCTYPE html>
    4. <html lang="cn">
    5. <head>
    6. <meta charset="UTF-8">
    7. <title>Title</title>
    8. </head>
    9. <body>
    10. <h1>HIS</h1> #页面展示为HIS
    11. </body>
    12. </html>[root@Fontend ~]#
    13. #Programer主机更新HIS-BACKEND代码
    14. [root@Programer ~]# cd HIS/HIS-BACKEND/
    15. [root@Programer HIS-BACKEND]# vim HIS-api/src/main/resources/static/index.html
    16. [root@Programer HIS-BACKEND]# cat HIS-api/src/main/resources/static/index.html
    17. <!DOCTYPE html>
    18. <html lang="cn">
    19. <head>
    20. <meta charset="UTF-8">
    21. <title>Title</title>
    22. </head>
    23. <body>
    24. <h1>医疗信息系统</h1> #修改后端首页内容
    25. </body>
    26. </html>
    27. [root@Programer HIS-BACKEND]# git add . #添加修改到暂存区
    28. [root@Programer HIS-BACKEND]# git commit -m "modify index.html" #生成版本库
    29. [master 8343263] modify index.html
    30. 1 file changed, 2 insertions(+), 2 deletions(-)
    31. [root@Programer HIS-BACKEND]# git tag v2 #打v2标签
    32. [root@Programer HIS-BACKEND]# git push --all #推送所有分支到服务器
    33. 枚举对象中: 15, 完成.
    34. 对象计数中: 100% (15/15), 完成.
    35. 使用 2 个线程进行压缩
    36. 压缩对象中: 100% (6/6), 完成.
    37. 写入对象中: 100% (8/8), 607 字节 | 607.00 KiB/s, 完成.
    38. 总共 8(差异 4),复用 0(差异 0),包复用 0
    39. To http://192.168.88.20/devops/HIS-BACKEND.git
    40. f582569..8343263 master -> master
    41. [root@Programer HIS-BACKEND]# git push --tags #推送所有标签到服务器
    42. 总共 0(差异 0),复用 0(差异 0),包复用 0
    43. To http://192.168.88.20/devops/HIS-BACKEND.git
    44. * [new tag] v2 -> v2
    45. [root@Programer HIS-BACKEND]#

     

     

    1. #确认结果
    2. 2023-02-24 15:29:58.229 INFO 9629 --- [ Thread-5] AnnotationNacosInjectedBeanPostProcessor : class com.alibaba.nacos.spring.beans.factory.annotation.AnnotationNacosInjectedBeanPostProcessor was destroying!
    3. [root@Backend his]# #手工运行jar包的前台进程退出
    4. #确认jar包后台运行
    5. [root@Backend his]# ss -antpu | grep :8888
    6. tcp LISTEN 0 100 *:8888 *:* users:(("java",pid=9934,fd=63))
    7. [root@Backend his]#
    8. #测试访问后台首页
    9. [root@Backend his]# curl http://localhost:8888/
    10. <!DOCTYPE html>
    11. <html lang="cn">
    12. <head>
    13. <meta charset="UTF-8">
    14. <title>Title</title>
    15. </head>
    16. <body>
    17. <h1>医疗信息系统</h1>
    18. </body>
    19. </html>
    20. [root@Backend his]#

     

  • 相关阅读:
    stream流中 filter方法自定义过滤方式
    java IO流【常用流对象二】
    1.机器学习基本概念学习笔记
    Python运维脚本:提高工作效率
    解决Autodesk License Patcher (NLM Crack)重命名电脑名的问题
    Java 字符串相关的类 String StringBuffer StringBuilder
    -邻接点-
    10.java项目-尚医通(10)
    源码分析:数据 dao 层
    esaypoi导入excel工具模版
  • 原文地址:https://blog.csdn.net/2301_79227925/article/details/134003111