Tag:Script

  • 5 sets of shell tips that you can use every day, but you may not know

    Time:2021-3-6

    1. Move the cursor Ctrl + A Ctrl + EMove the cursor to the front / backCtrl + H Ctrl + DDelete a word character before / afterCtrl + B Ctrl + FCursor forward / backward one characterEsc + B Esc + FCursor forward / next word 2. kill and yank Ctrl + KCut out […]

  • How to specify resolver in Linux script?

    Time:2021-3-5

    background When using shell script or Python script, some people like to use it#!/usr/bin/env NAMESpecifies the parser, which some people prefer to use#!/usr/bin/NAMEThe former is often considered to have better compatibility, so it should be used preferentially. This paper will carefully analyze the advantages and disadvantages of this writing method. analysis First, take a closer […]

  • [20200129] sub cursor does not share bind_ EQUIV_ FAILURE.txt

    Time:2021-3-4

    [20200129] sub cursor does not share bind_ EQUIV_ FAILURE.txt –//The production system encountered a large number of bind again_ EQUIV_ Failure causes a sub cursor. I looked at the situation I encountered in my previous tests.–//Links http://blog.itpub.net/267265/viewspace-2156139/ =>[20180613] sub cursor does not share bind_ EQUIV_ FAILURE。–//Other people have suggested to me that the problem may […]

  • Monitoring of SQL Server sequence

    Time:2021-3-3

    We know that if the sequence numbers in the database are used up or exhausted due to improper type setting or business explosion and other reasons, an error like the following will occur:   Msg 11728, Level 16, State 1, Line 25 The sequence object ‘SEQ_OVER_TEST’ has reached its minimum or maximum value. Restart the […]

  • [20200211] using DBMS_ SHARED_ POOL.MARKHOT And SQL_ Calculation of id.txt

    Time:2021-3-3

    [20200211] using DBMS_ SHARED_ POOL.MARKHOT And SQL_ Calculation of id.txt –//Previously written, using DBMS_ SHARED_ POOL.MARKHOT Tag hot SQL_ ID, so the same SQL statement uses different SQL_ id.–//Link: http://blog.itpub.net/267265/viewspace-2147197/ =>[20171110] same SQL statement_ Can Id be different–//I’m curious to know how Oracle calculates SQL in this case_ It’s not. –//Correction: SQL statement uses DBMS_ […]

  • Installing MySQL on Linux cloud server

    Time:2021-3-3

    MySQL is one of the mainstream databases, and it is free to use, so it is suitable for small and medium-sized enterprises or developers. This paper briefly introduces the installation methods under different Linux distributions.   Debian 9.0 (MariaDB is installed by default) Apt (advanced packaging tool) is included in both Ubuntu and Debian systems, […]

  • Crontab, get started

    Time:2021-3-3

    CrontabIt is a time-based task management tool in UNIX system. This command is different from the traditional UNIX command. The following will introduce its rules and usage one by one. Crontab or cron crontabstillcron? Students who first contact crontab may be confused by these two words. In fact, it can be understood as follows:crontabnamelycronService, andcronIt’s […]

  • Shell batch setting secret free authentication

    Time:2021-3-1

    Shell batch setting secret free authentication Background: the author wants to use ansible to synchronize the configuration of a batch of virtual machines, which need to be set up without secret The required files and scripts are shown in the figure below Generate IP list #!/bin/bash #################################### # Function: generate ip list for use #################################### […]

  • Build an open source project 9 – install application server Tomcat / ngix / docker

    Time:2021-2-27

    1、 Application server Tomcat installation and deployment takeapache-tomat-8.5.55.tar.gzPut in\rootUnder the table of contents stay/usr/localCreate undertomcatFolder, and enter, unzip the installation package to this directory [[email protected] ~]# cd /usr/local [[email protected] local]# mkdir tomcat [[email protected] local]# cd tomcat [[email protected] tomcat]# tar -zxvf /root/apache-tomcat-8.5.55.tar.gz -C ./ Start Tomcat [[email protected] tomcat]# cd apache-tomcat-8.5.55/ [[email protected] apache-tomcat-8.5.55]# cd bin [[email protected] bin]# […]

  • PHP output buffer

    Time:2021-2-26

    PHP output buffer In PHP, there is something called “output buffer” and “ob”. The output stream of PHP contains many bytes, usually output by echo statement or printf() function. The data of these things need to use the output buffer.In general, the output of PHP flows in various buffers according to the above figure, but […]

  • GitHub webhook

    Time:2021-2-25

    Recently, I wrote a small tool to receive GitHub webhook messages to automatically execute scripts on the server gaopengfei123123/hook github hook server A server used to receive webhook Environmental Science Golang v1.11 + (because go mod is used) install Implementation: go get -u github.com/gaopengfei123123/hook create a filemain.go package main import ( “github.com/gaopengfei123123/hook” ) func main() […]

  • Simple installation of docker’s Ubuntu 18.04

    Time:2021-2-24

    1、 Preconditions1.1. Docker operating system requirements Ubuntu Eoan 19.10 Ubuntu Bionic 18.04(LTS) Ubuntu Xenial 16.04(LTS) 1.2. Uninstall the old version (if the old version has been installed) sudo apt-get remove docker docker-engine docker.io containerd runc 2、 Install docker on Ubuntu 18.042.1 installation method Most users will set up the docker repository and install it from […]