• Starting mongodb service in the background of Linux


    1. Enter the CD / lib / SYSTEMd / system directory 2. Create and edit ﹣ VI mongodb.service 3. Paste content into mongodb.service Save to exit [Unit] Description=mongodbAfter=network.target remote-fs.target nss-lookup.target [Service]Type=forkingExecStart=/usr/local/mongodb/bin/mongod –config /usr/local/mongodb/bin/mongodb.confExecReload=/bin/kill -s HUP $MAINPIDExecStop=/usr/local/mongodb/bin/mongod –shutdown –config /usr/local/mongodb/bin/mongodb.confPrivateTmp=true [Install]WantedBy=multi-user.target 4. Execute the command systemctl start mongodb.serviceIf an error is reported, the system CTL daemon […]

  • Crontab configuration does not work in Ubuntu


    Operating system: kylin V4 based on Ubuntu 15.04 The configuration of crontab on kylin is correct, but crontab doesn’t work. Configuration method A document was prepared in advance crontab.conf , contains only the following, printed every minute */1 * * * * echo test Copy the file to the crontab configuration corresponding to the root […]

  • Typescript write wechat applet – create project


    Create project Create a project in the wechat developer tool and select from the languageTypeScript Renovation project editpackage.jsonFile, modifyminiprogram-api-typingsandtypescriptedition { “name”: “miniprogram-ts-quickstart”, “version”: “1.0.0”, “description”: “”, “scripts”: { “compile”: “./node_modules/typescript/bin/tsc”, “tsc”: “node ./node_modules/typescript/lib/tsc.js” }, “keywords”: [], “author”: “”, “license”: “”, “dependencies”: { }, “devDependencies”: { “typescript”: “^4.1.3”, “miniprogram-api-typings”: “^2.12.1-beta.0” } } Editor tsconfig.json File, modify […]

  • CIMCO edit V8 Chinese unlimited trial installation tutorial


    CIMCO Edit v8CIMCO is a new programming tool specially designed for NC programming by CIMCO software company. It has built-in powerful and practical NC editing function, intelligent comparison of files, 3D simulation of tool path, DNC transmission and other functions. It can meet your programming requirements of easy to learn, high efficiency, powerful function and […]

  • Android development technology weekly issue


    Journalism Pixel 4A rendering exposure: may become a strong competitor of new iPhone se Google play store provides automatic installation for pre registered games and apps Android’s strongest single shot pixel 4A sample exposure: 12 million pixels easily beat 48 million Kotlin vocabulary | enumeration and R8 compiler Open source library JetpackMvvm A rapid development […]

  • IntelliJ idea shortcut collation (Mac version)


    CMD(Command) CMD + D: copy the current code to the next lineCMD + e: open recently accessed files; CMD + Shift + e: recently edited filesCMD + J: select code template**CMD + N: generate code (constructor, getter, setter, toString…), equal to Ctrl + enterCMD + O: open classCMD + Shift + O: open file**CMD + […]

  • Trust learning — reading files (using lib files for the first time)


    Step 1: create a miigrep initialization project for cargo new minigrep Step 2: Edit lib.rs File: use std::fs; use std::error::Error; #[derive(Debug)] pub struct Config<‘a> { pub query: &’a str, pub filename: &’a str, } impl Config<‘_>{ pub fn parse_config1(args: &[String]) -> Result<Config, &’static str> { if args.len() < 3 { Panic! (“path error”); } let […]

  • [1 minute series tutorial] Linux system dual network card binding configuration


    System version [[email protected] ~]# cat /etc/redhat-release  CentOS release 6.8 (Final) [[email protected] ~]# uname -r 2.6.32-642.6.1.el6.x86_64 Network card description Eth0 ﹣ (server external network card)eth1eth2Two server network cards (intranet) Turn off firewall [[email protected] ~]# /etc/init.d/iptables stop [[email protected] ~]#  chkconfig iptables off Close SELinux [[email protected] ~]#setenforce 0 [[email protected] ~]#sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/‘ /etc/selinux/config Disable NetworkManager [[email protected] ~]# […]

  • VIM advanced macro and application of macro


    What is a macro Macros allow us to repeat specific changes in vim. In VIM, we can record and store any key operation to a certain locationregisterFor playback later. To use a macro, you first need to record a macro, that is, input a series of commands, and store the series of commands in a […]

  • Configuring MySQL on MAC


    1、 Download MySQL official website After entering, click downloads After downloading, install it. 2、 Environmental variables Switch to the current user directory at the terminal and edit. /. Bash_ Profile file $ cd ~ $ vim ./.bash_profile Enter the VIM editing environment. Press I to enter the insert mode export PATH=$PATH:/usr/local/mysql/bin export PATH=$PATH:/usr/local/mysql/support-files Press ESC […]

  • Vscode edit multiple text at the same time


    When using vscode to write code, you need to replace the same content. Use replacement or batch replacement, which is either too slow or too fast. When the content to be replaced is not too much, select the content to be replaced and useCtrl+Shift+LAt this time, all the same content will enter the editing state […]