Tag:Frequently used commands

  • Using NVM to install and manage NPM under Linux


    Linux uses NVM to install NPM Resources nvm node Command mode to install NVM curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash or wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash Versions thereofv0.35.2You can select the version you want in https://github.com/nvm-sh/nvm/releases After installation~/.bashrcWait for the following configuration to appear in the configuration file (if not, please add it yourself) export NVM_DIR=”$([ […]

  • Arrangement of flask learning resources


    learning resource Python Chinese learning base (highly recommended by explore flask) Flask development starts from Xiaobai Cnblog flask learning materials Recommend some flask resources Flask good essay Summary of the use of flag Flask example Flask development blog Flask common commands Package dependent packages in the flask package pip freeze >requirements.txt Install dependency package pip […]

  • Summary of redis common commands


    1、redis-benchmarkRedis benchmark information, redis server performance test redis-benchmark -h localhost -p 6379 -c 100 -n 100000100 concurrent connections, 100000 requests, performance of redis server with localhost port of 6379 detected [[email protected] redis-1.2.6]# redis-benchmark -h localhost -p 6379 -c 100 -n 100000 ====== PING ====== 10001 requests completed in 0.41 seconds 50 parallel clients 3 bytes […]

  • Redis summary notes (1): installation and common commands


    1、 Brief introduction to redis Redis is a member of the NoSQL family, a memory database with key value pairs. But it supports saving data locally. This is better than memcached. Disadvantages: there is no local data buffer, and there is no complete data aggregation support at present Advantages: simple configuration, convenient use, high performance, […]

  • Redis common commands, common errors, configuration skills, etc


    1. Redis view all current keys Copy codeThe code is as follows: KEYS * 2. View the current redis configuration information Copy codeThe code is as follows: CONFIG GET * 3. MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set […]

  • Brief summary of common operation commands on rails command line


    New class Copy codeThe code is as follows: Ruby script / generate model < class name > < field 1 >: < type > ruby script/generate Model Item name:string age:integer Remove class Copy codeThe code is as follows: ruby script/destroy Model New controller Copy codeThe code is as follows: Ruby script / generate controller < […]

  • How to use UBIFS


    Common commands: View block device partition informationcat /proc/mtd View block device informationmtdinfo /dev/mtd0 Format MTD partitionubiformat /dev/mtd0 Associate MTD partition with UBIubiattach /dev/ubi_ctrl -m 0 Cancel Associationubidetach /dev/ubi_ctrl -m 0 View information about UBI devicesubinfo /dev/ubi0 Create logical volumeubimkvol /dev/ubi0 -N rootfs -s 115MiB mountmount -t ubifs ubi0_0 /mnt First use execution:ubiformat /dev/mtd0ubiattach /dev/ubi_ctrl -m […]

  • Centos7 install MySQL


    Frequently used commands // start up > service mysqld start // close > service mysqld stop // restart > service mysqld restart Install the base environment before installing: > yum install -y perl perl-Module-Build net-tools autoconf libaio numactl-libs Install MySQL #Download MySQL source installation package > wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm #Install MySQL source > yum localinstall mysql57-community-release-el7-8.noarch.rpm […]

  • Mongodb common commands summary


    Simple addition, deletion, modification and query of data Specify whether to display or not to display a field in query results For example, we want to find all the data in the notes collection, but we don’t want to include the slides field in the returned results; because slides is a huge image array represented […]

  • Kafka-5- common command


    Kafka common commands Create topic bin/kafka-topics.sh –create –bootstrap-server localhost:9092 –replication-factor 3 –partitions 1 –topic my-replicated-topic –config message.timestamp.type=CreateTime –Config can specify the configuration of topic. Message.timestamp.type specifies the usage of topic timestamp. For other configurations, see https://kafka.apache.org/docu… View topic status bin/kafka-topics.sh –describe –bootstrap-server localhost:9092 –topic my-replicated-topic Producer bin/kafka-console-producer.sh –broker-list localhost:9092 –topic my-replicated-topic Consumer bin/kafka-console-consumer.sh –bootstrap-server localhost:9092 […]

  • Summary of common commands of redis string type


    Redis string type String type is the most basic data storage type in redis. It is binary safe in redis, which means that this type can accept data of any format, such as JPEG image data or JSON object description information. In redis, the maximum data length that a value of string type can hold […]

  • Summary of common commands of redis list type


    List type introduction List type is also a type we need to use for a long time. For example, when we blog, we need to use the blog list. If there is no list, we can only traverse the key to get all articles or some articles. The syntax is keys, but this command needs […]