Tag:rename

  • Go get unrecognized import path “gopkg.in/yaml.v2”

    Time:2021-7-6

    To install the ngin: go get -u github.com/gin-gonic/gin An error occurred: package gopkg.in/yaml.v2: unrecognized import path “gopkg.in/yaml.v2” (https fetch: Get https://gopkg.in/yaml.v2?go-get=1: net/http: TLS handshake timeout) As shown in the figure: Try online solutions: 1: git config –global http.sslVerify “false” 2: git config –global http.postBuffer 524288000 3: go env -w GOPROXY=https://goproxy.cn,direct Once again, go get did […]

  • Add custom network card and change interface of network card in Linux system

    Time:2021-6-25

    This document details how to add a custom network card to rhel7 and change the interface of the network cardenvironmentVMware Workstation ProRed Hat Enterprise Linux Server release 7.3 View the current network card information[[email protected] ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.3 (Maipo)[[email protected] ~]# ifconfigens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.11 netmask 255.255.255.0 broadcast […]

  • Mongodb aggregate

    Time:2021-6-14

      https://www.cnblogs.com/wt7018/p/11929359.html Mongodb aggregate   1、 Foundation 1. What is aggregation? Aggregation is an aggregation pipeline based on data processing. Each document passes through a pipeline composed of multiple stagesIt can group and filter the pipelines in each stage, and then output the corresponding results after a series of processing DB. Set name. Aggregate ({pipeline: […]

  • Operation methods and precautions of MySQL rename table

    Time:2021-6-9

    1. Rename table method You can rename a table by using the rename table statement or alter table statement. The basic syntax is as follows: #Rename table syntax: RENAME TABLE     tbl_name TO new_tbl_name     [, tbl_name2 TO new_tbl_name2] …      #Alter table syntax: ALTER TABLE old_table RENAME new_table; #   Specific examples: mysql> show tables; +——————+ | Tables_in_testdb | +——————+ | tb1              | | tb2              | +——————+ 2 rows in set (0.00 sec) mysql> rename table tb1 to new_tb1; Query OK, 0 rows affected (0.03 sec) mysql> alter table tb2 rename new_tb2; Query OK, 0 rows affected (0.04 sec) mysql> show tables; +——————+ | Tables_in_testdb | […]

  • Manually install yii2 redis extension

    Time:2021-5-2

      Originally, I wanted to download the yii2 redis extension through composer. It’s too slow. I haven’t installed it in the morning. Please install it manually. Here’s a record. 1、 Download address https://github.com/yiisoft/yii2-redis   2、 Use 1. After decompression, it is renamed yii2 redis, and the downloaded extension is placed in thevendor/yiisoftUnder the directory   […]

  • Customizing network card and changing interface of network card in Linux system

    Time:2021-4-28

    This document details how to add a custom network card to rhel7 and change the interface of the network cardenvironmentVMware Workstation ProRed Hat Enterprise Linux Server release 7.3 View the current network card information[[email protected] ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.3 (Maipo)[[email protected] ~]# ifconfigens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.11 netmask 255.255.255.0 broadcast […]

  • Building angularjs application with gulp

    Time:2021-4-24

    The reason of using gulp to build angularjs application In 2016, the front-end has become very popular. This year, we also decided to keep up with the pace of the times and enter the ranks of front-end automation. It happens that the company framework adopts angularjs, and CSS adopts SCSS precompiled language. The so-called “think […]

  • Nodejs – deploying node environment on alicloud lightweight server

    Time:2021-4-18

    Go to the root directory: cd / Download node: wget -c https://nodejs.org/dist/v12.1… Decompression: tar -xvf node-v12.16.1-linux-x64.tar.xz Rename: mv node-v12.16.1-linux-x64 nodejs Establish a soft connection to facilitate the global use of related commands: ln -s /nodejs/bin/npm /usr/bin/npmln -s /nodejs/bin/node /usr/bin/node Finally, check whether it is successful or not npm -vnode -v reference material: Node website: https://nodejs.org/en/ […]

  • Git rename remote branch

    Time:2021-4-13

    There are three steps Rename local branch git branch -m dev_andoid_O dev_news_sdk New branch committed to remote git push origin dev_news_sdk Delete remote “old branch” git push –delete origin dev_andoid_O 1. Rename local branch git branch -m dev_andoid_O dev_news_sdk 2. New branch committed to remote git push origin dev_news_sdk 3. Delete remote “old branch” git […]

  • Mongodb installation and management tool

    Time:2021-4-12

    Regular installation cd /usr/local/src #Download curl -O https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.4.20.tgz #Decompression tar -zxvf mongodb-osx-ssl-x86_64-3.4.20.tgz #Rename to mongodb mv mongodb-osx-ssl-x86_64-3.4.20 mongodb #Start, – dbpath specifies the database path, and the default is / data / DB /usr/local/mongodb/bin/mongod –dbpath=/usr/local/coding/data/mongodb Installation based on docker Mongo4 image, start a Mongo container docker run -d –name mymongo -v /usr/local/coding/data/mongodb:/data/db -p 27017:27017 mongo:4 […]

  • 15 git commands you may not know

    Time:2021-3-31

    Author: zaiste Crazy technology house Original text: https://zaiste.net/15-git-com… No reprint without permission Git can be intimidating at times. Because there are so many commands and details to learn. However, although there is a lot of content in the document, it is easy to read. Once you’ve overcome the initial feeling of being overwhelmed, you’ll feel […]

  • Introduction to pandas

    Time:2021-3-26

    By Billy fetznerCompile VKSource: towards Data Science I think that since you click this page, you may have a lot of data to analyze, and you may be thinking about the best and most effective way to solve some problems of your data. The answer to your question can be solved by pandas. How to […]