Tag:command

  • Use local JSON server service to create simple local API data

    Time:2020-11-25

    preface Recently, I was learning Vue framework. In the process of learning, I found a third-party library similar to mockjs: JSON server. It can not only simulate the perfect interface data, but also modify the type of request to modify the local data. It is a very good library, so share your experience. Get started […]

  • The database connection pool connection is exhausted, resulting in no response to Tomcat request, showing a feign dead state

    Time:2020-11-25

    The most difficult thing is to know yourself! Personal websiteWelcome to visit! preface: Recently, my colleagues in the testing department came to me and said that they found that the service interface request had not been responded in a short time when they were testing. Tomcat was dead, but did not return any error response. […]

  • Win10 Cortana how to delete — win7w.com

    Time:2020-11-25

    How to delete win10 Cortana? Cortana is one of the hallmarks of windows 10, but any function is needed by some people, not liked by others, and not all users like it. Some people think Cortana is useless, so they want to disable it or even uninstall it completely from the computer. Well, next, I’d […]

  • Linux Installation JDK + Tomcat + MySQL tutorial

    Time:2020-11-24

    preparation: Linux version: CentOS 7 64 bit The following operations are all performed under the root account 1、 To install the JDK: 1. Check and uninstall JDK Check whether the system comes with JDK and related installation package. If so, uninstall it first. Check JDK version: java -version Query all installed JDK RPM packages rpm […]

  • Redis persistence AOF and RDB

    Time:2020-11-24

    Redis persistence Redis supports two persistence mechanisms, RDB and AOF. The persistence function can effectively avoid data loss caused by process exit. When the next restart, the previously persistent files can be used to realize data recovery RDB RDB persistence is a process to generate a snapshot of current process data and save it to […]

  • Installing composer in MAC environment

    Time:2020-11-23

    You can declare the dependent external libraries in your project, and composer will help you install these dependent libraries. Composer can also manage projects.Generally speaking, composer is a PHP based version control and project management tool. Official website:getcomposer.org/English image:https://packagist.orgChinese official website:www.phpcomposer.com/Chinese image:pkg.phpcomposer.com/ Install composer There are only two things you need to do to install […]

  • Shell script instance

    Time:2020-11-23

    1. Hello world script #!/bin/bash echo “hello world” 2. Create user: 2.1 creating users through location variables #!/bin/bash #$1 is the first parameter (user name) to execute the script and $2 is the second parameter (password) to execute the script useradd “$1” echo “$2” | passwd –stdin “$1” 2.2 prompt the user to enter the […]

  • K8s basic configuration

    Time:2020-11-23

    Installing kubectl Using Tsinghua source Red hat system $ cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=“` https://mirrors.tuna.tsinghua.edu.cn/kubernetes/yum/repos/kubernetes-el7-$basearch enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg EOF $ yum install -y kubectl Debian system $ sudo apt-get update && sudo apt-get install -y apt-transport-https $ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add – $ echo “deb https://mirrors.tuna.tsinghua.edu.cn/kubernetes/apt kubernetes-xenial main” […]

  • The best eating skills of Windows terminal

    Time:2020-11-23

    introduce Windows TerminalIt is a new, modern and high-performance terminal application for command line users. It mainly has the following functions Multi tab, free and convenient switching between tabs pane Unicode and UTF-8 character support GPU accelerated text rendering engine Customize theme, text, color, background, and shortcut key binding wait The following is my configuration […]

  • NPM super detailed tutorial

    Time:2020-11-23

    NPM super detailed tutorial brief introduction NPM, full name of node package manger. NPM isNodeIs an open module registration and management systemNode.jsPackage’s standard publishing platform forNode.jsPackage release, dissemination, dependency control, website: https://www.npmjs.com/ NPM provides a command-line tool, which can easily download, install, upgrade and delete packages, and also allows you to publish and maintain packages […]

  • Nginx learning notes 01 – nginx introduction and installation

    Time:2020-11-22

    Write it at the front If you can click in to read this article, you may have heard of itNginxThis name, want to start learning and master nginx. Maybe you are a front-end programmer, learning nginx has become a hard demand in your work. In any case, if you are an initial contact with nginx, […]

  • Redis full replication and partial replication

    Time:2020-11-22

    Redis master slave replication Redis instance is divided into master node and slave node By default, redis is the master node Each slave node can only have one master node, and the master node can have multiple slaves at the same time The replicated data flow is unidirectional and can only be replicated from the […]