Tag:Operation log

  • Managing multiple toolkits using lerna


    When producing a solution, it is inevitable to produce multiple solutionsnpmPackages are used to adapt to different user groups, and these packages may depend on each other and are relatively complex to manage,lernaIt can easily help us manage multiple packages Advantages and disadvantages of lerna Advantages: You don’t need to care about the dependencies between […]

  • Mongodb installation and management tool


    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 […]

  • Centos7 install tomcat7


    Download JDK, JRE and Tomcat Running Tomcat requires Java JDK and JRE running environment. Here we choose to install JDK version 1.7 and download JDK and JRE package on the official website. Download address of JDK 1.7 and JRE 1.7 official website Tomcat download addressDownload core package through WGet commandwget http://mirrors.tuna.tsinghua…. After the JDK and […]

  • How to add user action log in CentOS? How to add user action log in CentOS


    1. Put the following at the end of / etc / profile (some systems, such as CentOS 5.5, may need to end at / etc / bashrc) HISTFILESIZE=2000 HISTSIZE=2000 exportHISTTIMEFORMAT=”%Y%m%d-%H%M%S:” exportPROMPT_COMMAND='{ command=$(history1 | { readx y; echo$y; } | cut-d “:”-f2-); logger -p local1.notice -t bash”$command(user=$USER,ppid=$PPID,from=$SSH_CLIENT,pwd=$PWD)”; }’ readonlyPROMPT_COMMAND Note: readonly prompt command prevents malicious ordinary […]