How to write an rsync network service startup script with shell

First of all, before writing a script, you need to know the theoretical knowledge and practical operation of rsync, in order to write an ok script. Let's start with a stroke: rsync start command: rsync --daemon Stop command: kill rsync process number pkill rsync killall rsync Don't say much, script: #!/bin/bash ############################### ...

Posted on Sat, 02 Nov 2019 10:06:21 -0400 by axon

Handle Number Overrun and Lots of CLOSE_WAIT Connection Problem Checking

problem After a framework upgrade, many components run for a period of time without access, and http requests are pending Analysis 1. Handle number exception Check the log immediately after a problem occurs, and there are a lot of exceptions Socket accept failed java.io.IOException: Too many open files The number of handles opened by th ...

Posted on Tue, 08 Oct 2019 07:00:27 -0400 by lepass_7

Python uses the psutil module to be your computer housekeeper.

Computer housekeeper Maybe everyone has the feeling that optimizing the perfect computer system, you lend your computer to a computer and use it for a few days. When you get it back, you will find that all kinds of slow and messy software are loaded up. So how do we use Python to get computer relate ...

Posted on Sun, 06 Oct 2019 04:45:13 -0400 by PHP Newb

spring boot deployment startup script

Links to the original text: https://fly533.iteye.com/blog/2428721 Function: # 1. Designated User Running - Not Implemented # 2. Default logs Directory - can you specify it separately?   # 3. JMX Monitoring - To be implemented, a sec ...

Posted on Sat, 05 Oct 2019 13:10:46 -0400 by dethknite

Golang Automated Deployment Tool

An example of automated deployment by golang The automated deployment has Jenkins. Why do I have to write this file? It should be too much for the company server, and the Jenkins server is blown up.So it's too painful to use golnag to deploy automated deployment tools and scp every time the program is updated Automated Deployment Tool for Pract ...

Posted on Fri, 04 Oct 2019 20:57:44 -0400 by elfyn

Networks, processes, scripts

Blog assignments 1. What is the OSI seven-tier model? Physical Layer, Data Link Layer, Network Layer, Transport Layer, Session Layer, Representation Layer and Application Layer 2. Are there any terminal modes of switches? What are their functions? Access type ports: can only belong to one VLAN, generally used to connect computer ports. Trunk t ...

Posted on Sun, 25 Aug 2019 05:11:19 -0400 by stefharley

Coding at work

{{# if(d !="" && d != null ) {}} <div class="form-item old-item"> <label for="" class="form-label"> //Old nickname: </label> <div class="form-input"> <span class="ol ...

Posted on Fri, 09 Aug 2019 00:27:01 -0400 by nathanblogs

Using lsof under linux

Welcome to my personal blog website: http://www.yanmin99.com/ Introduction to lsof Lsof (list open files) is a tool for listing open files for the current system. In linux environment, everything exists in the form of files, through which not only conventional data can be accessed, but also network connections and hardware can be accessed. ...

Posted on Fri, 07 Jun 2019 18:19:36 -0400 by prkarpi

Self-taught nginx (2): interpretation of nginx configuration file

outline The first section describes the installation of nginx. This section records the first nginx configuration file that you need to care about after installation, plus some of your own understanding. The same reading time is about 5 minutes. nginx version nginx version: nginx/1.10.3 built by gcc 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ...

Posted on Fri, 31 May 2019 15:28:01 -0400 by amitshah

proxy implements mysql read-write separation

Realization of mysql Read-Write Separation Illustration: Environmental Science: iptables and selinux shutdown proxy:test2 172.25.1.2 Master: test3 172.25.1.3 Slave:test4 172.25.1.4 The environment has implemented master-slave replication of test3(master) and test4(slave) Server2: [root@test2 ~]# ls mysql-proxy-0.8.5-linu ...

Posted on Sun, 12 May 2019 01:01:15 -0400 by blogfisher