Tag:command

  • Use redistemplate to operate bitmap to complete daily check-in

    Time:2021-10-22

    Use redistemplate to operate bitmap to complete daily check-in There are only two statuses: Yes and no (1, 0). A month can last up to 31 days. The four byte32 bits can just accommodate the data volume of a month. Each bit 0 and 1 indicates whether to check in or not. Therefore, using 4 […]

  • Take you to master the GIT commands commonly used in work with examples in 7 minutes

    Time:2021-10-22

    Author: ValeriaTranslator: front end XiaozhiSource: medium Dream, dry goods, wechat search[move to the world]Pay attention to this dish washing wisdom who is still washing dishes in the early morning. This article GitHubhttps://github.com/qq449245884/xiaozhiIt has been included. There are complete test sites, materials and my series of articles for the interview of front-line large factories. In essence, […]

  • Golang encapsulates a bash function for executing bash commands

    Time:2021-10-21

    Encapsulate a bash function in go to execute bash commands package main import “os/exec” //Execute bash command, return output and exit status code after execution func Bash(cmd string) (out string, exitcode int) { cmdobj := exec.Command(“bash”, “-c”, cmd) output, err := cmdobj.CombinedOutput() if err != nil { // Get the exitcode of the output if […]

  • Kafka cluster construction and ZK cluster construction

    Time:2021-10-21

    Kafka Reprint:https://segmentfault.com/a/11…ZK Reprint:https://segmentfault.com/a/11…Compare the two. In addition, when checking Kafka messages, logs are constantly displayed. I don’t know how to close them. There are children’s shoes that can be pointed out Be sure to start zookeeper first and then Kafka. The sequence cannot be changed.Close Kafka first and then zookeeper. Zookeeper startup:Execute on three machines: […]

  • [go] go language practice – supervisor compilation, installation and operation of go version

    Time:2021-10-21

    When the daemon needs to be implemented and the self-developed command automatically crashes and restarts, you can use the go version of supervisor, which is less dependent than the python version git clone https://github.com/ochinchina/supervisord.gitenv GOOS=linux GOARCH=amd64 go build -o supervisord_ linux_ amd64   64 bit version env GOOS=linux GOARCH=386 go build -o supervisord_ linux_ three […]

  • Detailed explanation of Linux iptables command

    Time:2021-10-21

    Iptables is an important part of Linux firewall system. The main function of iptables is to control the access and forwarding of network packets. Iptables can be used to control when data packets need to enter the device, flow out of the device, or be forwarded and routed by the device. The following Liangxu Xiaobian […]

  • Docker WARNING! Using –password via the CLI is insecure. Use –password-stdin

    Time:2021-10-21

    I haven’t updated my blog for a long time. The whole industry is not very optimistic this year. I joined a new owner to beg for food under the recommendation of my friends. It’s rare to calm down for a weekend. Well, there’s no more nonsense, Today, we updated the docker toolbox of windows docker […]

  • Understand what scaffolding is from the perspective of use

    Time:2021-10-21

    Introduction to scaffold Scaffolding is essentially a client of the operating system, which executes through commands, such as:vue create vue-test-appThe command above consists of three parts: Main command:vue command: create Param of command:vue-test-app It means to create a Vue project namedvue-test-app, the above is a relatively simple scaffold command, but the actual scene is often […]

  • Supervisor

    Time:2021-10-20

    Supervisor [note] Supervisor – H view supervisor command help Supervisorctl – H view supervisorctl command help Supervisorctl help view the action command of supervisorctl Supervisorctl help any action to view the use of this action 1. Introduction Supervisor is a process control system. Generally speaking, it can monitor your process. If the process exits abnormally, […]

  • Solution to unstable NPM download in the tutorial

    Time:2021-10-20

    The node sass download here failed. I used cnpm instead. I’m afraid that the download commands in the future will be unstable. In the future, I used cnpm instead of NPM for downloading. The command is npm install -g cnpm –registry=https://registry.npm.taobao.org If you don’t understand anything or other solutions, please leave a message at the […]

  • Detailed explanation of Linux diff command

    Time:2021-10-20

    The diff (difference) command is often used to compare the contents of two files. The diff command compares the differences between two files in the simplest case. If you use “-” instead of the file parameter, the content to be compared will come from standard input. Next, Liang Xu Xiaobian willLinux diff commandIn detail, I […]

  • NPM Engineering & source code analysis of Inquirer

    Time:2021-10-20

    fromnpm run-scriptApplication start View the of some NPM packagesnpm_package_scripts, you can often see itrun-scriptExample: … “scripts”: { “prerelease”: “npm test && npm run integration”, “release”: “env-cmd lerna version”, “postversion”: “lerna publish from-git”, “fix”: “npm run lint — –fix”, “lint”: “eslint . -c .eslintrc.yaml –no-eslintrc –ignore-path .gitignore –cache –cache-location ./node_modules/.cache/eslint”, “integration”: “jest –config jest.integration.js –maxWorkers=2”, “pretest”: […]