Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy Enterprise Automation and analyze Syncd system

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Today, I will talk to you about how to carry out enterprise automation deployment and Syncd system analysis, many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

Syncd is an open source code deployment tool, it is simple, efficient, easy to use and other features, can improve the efficiency of the team. Official website address: https://syncd.cc/

Characteristics

1.Go language development, simple compilation, efficient 2.Web interface access, interactive friendly 3. The permission model is flexible and free 4. Support custom build 5. Support Git Warehouse 6. Support branch, Tag online 7. Deploy Hook support with strong scalability 8. 5. Perfect online workflow 9. Mail notification mechanism 10. Video tutorial

Deployment proc

This is my own test found that the syncd deployment online process, after this process and then combined with their own requirements to use the tool

1. From the clone code of git warehouse to the server that syncd belongs to. Use the tar command to compress the project into a file 3. Copy the compressed file to the configured server by scp command. Extract the file 5 on the target server. Finish 6. Video tutorial

Install syncd

Environmental requirements operating system Linux / macOS + Bash. It should be noted that Syncd does not support Win systems. Go compilation environment Syncd depends on the Go1.11+ compilation environment, which can be downloaded and installed from the official website or domestic image. MySQL MySQL 5.6 + Git upgrade the operating system Git to the latest version.

Installation can be quickly installed through the command. If an error occurs, check whether the environment meets the requirements.

Curl https://syncd.cc/install.sh | bash

The import database file is located in the resource/sql folder under the syncd installation directory, and the data is imported into the database through the database import command.

The configuration file is syncd-deploy/etc/syncd.ini, and the configuration is easy to understand. You can mainly modify the configuration related to the database.

Launch to go to the bin folder under the syncd-deploy directory, execute. / syncd to run, and open http://IP:8878 in the browser to enter the login page. Login account: syncd password: 111111

Using project space is the basic organizational unit of the project and the main boundary for project and multi-user isolation and access control. Project-> Space Management-> add Project Space

Project Management Project-> Project Management-> [switch Project Space]-> New Project

Member Management-> member Management-> [switch Project Space]-> add a new member

Cluster Management Server Cluster Server-> Cluster Management-> add Cluster

The server manages the servers under the cluster, and the deployment server (the server where the Syncd service is located) and the production server (code deployment target machine) communicate through the ssh protocol, so you need to add the public key of the deployment server (usually here: $HOME/.ssh/id_rsa.pub) to the trust list of the production machine (usually here $HOME/.ssh/authorized_keys).

The variables supported by the build configuration configuration are only two local copy directories of the ${env_workspace} code warehouse ${env_pack_file} absolute address of the packaging file. After the construction is completed, the code that needs to be deployed online is packaged into this file, which must be packaged using the tar-zcf command. The deployment module will distribute the package to the target host and extract it to the specified directory. Please package it as required, otherwise the deployment will fail. Video tutorial configuration example

Cd ${env_workspace} tar-zcvf ${env_pack_file} *

New launch application form select items to fill in the launch form

Upper line

Do you have any further understanding of industrial automation deployment and Syncd system analysis? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report