Webpack command:
Webpack--watch Monitor changes and automatically package, abbreviated-W
Webpack-p--progress--color Compression obfuscation script
webpack-d generate a mapping file to tell where those modules are packaged
Webpack--disply-error-details
NPM command:
NPM Init
NPM Install Webpack-g
NPM Install Webpack-save-dev
NPM Install Url-loader-save-dev
NPM run Build-dist Generate Dist folder
NPM Run clean cleans up packaged files
NPM configuration:
NPM config rm proxy
NPM config rm http-proxy
NPM Config RM Https-proxy
NPM config set proxy no-proxy. godsoftware.com
NPM Config set registry http://rnd/npm-registry/
NPM Install
npm install-g typescript
npm install-g webpack
npm install echarts
npm run Build/dev
NPM Lin K Module
nginx command:
./nginx-s start start Nginx
./nginx-s Reload Restart N Ginx, hot start
./nginx-s stop to close Nginx
./nginx-t test for syntax error after modifying configuration
nginx with Reset:
server{
Listen;
server_name read.zsm.com;
Location/{
Proxy_set_header Host $host;
Proxy_set_header X-real-ip $remote _addr;
Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;
Rewrite/$ Http://read.zsm.com/login/login last;
Proxy_pass http://1.1.1.1:8080;
}
location/login/{
Proxy_set_header Host $host;
Proxy_set_header X-real-ip $remote _addr;
Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;
Proxy_pass http://1.1.1.1:8010/login/;
}
}
Tomcat's server.xml configuration:
<server port= "8001" >
<connector urienconding= "UTF-8" port= "8002" protocol= "http/1.1" connectiontimeout= "20000" redirectPort= "8080" >
<connector port= "8003" protocol= "ajp/1.3" redirectport= "8080" >
git command:
git config--system core.ignorecase false does not ignore case
jar Command:
Jar XVF Test.jar Unpacking jar Package
Jar UVF jar update file name directory consistent files
Shell command:
Cat/proc/cpuinfo Viewing CPU information
Free-m Viewing memory
Fdisk-l viewing hard disk partitions
Ifconfig Viewing network card information
Du-sh * summarizes the file sizes in the current directory, respectively
Df-h View the total number of blocks in the file system
Bash start.sh Execute start file
Show file list:
LS [-options] [filelist] filelist: absolute or relative path
-l verbose File information-a lists all files
Show file Contents command: Cat,more,head,tail
Copy file: CP [options] Src_file Dst_file
Moving files: MV Src_file dst_file
Delete Files: RM file_list
Create file: Touch filename
Create Link: ln-s link file src_file
Directory Operations:
PWD Displays the current path
CD changes the current working directory
Mk Dir Create directory
RM dir Delete directory, add-R to empty directory
file permissions operation:
chmod [-options] mode files
U file owner + add R allows to read or copy files
G Same group member-clear W Allow write file
o Other user x allows executable files to be run
Modify file group:
(root) chown New_user.new_group file
(root) chown New_user file
(Root,user) chown. new_group file
(root,user) chgrp new_group file
file Compression Backup:
Package: Tar CVF filename to package directory
Unpacking: Tar xvf filename
Compression: gzip-c filename > filename.gz
Decompression: gzip-d filename.gz
Find lookup: Find/-name filename
grep match: Ps-ef |grep sendmail
file operation:
VI: Command mode Press "Iiaaoo" to enter edit mode
/pattern: Search at the end of the file at the beginning of the cursor
? Pattern: Search at the beginning of the file from the cursor
X: Delete the character at the cursor DD: delete the row
I: Enter edit mode u: Undo
: Wq Save Exit VI ESC: Exit Edit
: W Save current file: X Save current file and exit
: Q Do not save exit vi:q! Do not save the file and Exit VI
Kill PID termination Process PID kill-9 PID forced termination process
PS Build process list, Ps-aux | GREP finds the specified process
Ifconfig-a: View the configured NIC name
IP route Show: View routes
free [-b/-k-m] [-O] [-s delay] [-t] [-V]: view memory
-b-k-M: Display memory usage in bytes (KB,MB), respectively
-S delay: Displays memory usage once every second delay
-T: Show memory Sum-o: Do not show buffer throttling columns
Vmstat 2 3: Reporting virtual Memory information
Netstat-p-a-t-u-n-e-r: View network ports
Who: Display login online IP, user, time and other information
CLS: Clear Screen
RM-RF file/Delete Folder command
chmod 777./STOP_DAEM Elevate Execute file permissions
chmod u+x./start_daem Elevate Execute file permissions
Jar XVF Test.jar Unpacking jar Package
Jar UVF Myjar.jar com/change/file.txt update jar package file
Telnet IP 80 attempts to connect to the IP 80 port login
PS Auxw | grep Tomcat View Tomcat service
PS-SF | grep Tomcat View Tomcat service
kill-signal PID PID Process number, PS can be queried, signal sent to the process signal, term (-9) means unconditional termination
VI common commands:
Ctrl + u: Turn half screen to file home page
Ctrl + D: to the end of the file half screen
Ctrl + F: Flip a screen to the end of the file
Ctrl + B: Flip one screen to the top of the file
ESC: Switching from edit mode to command mode
ZZ: Save changes to the current file and Exit VI
: line number cursor jumps to the beginning of the specified line
: $ cursor jumps to the beginning of the last line
X: Delete the character after the cursor x: Delete the character before the cursor
D: Delete all characters from the current cursor to the end of the line
DD: Delete cursor in the row
NDD: Deletes the current line and its subsequent n-1 rows
P: Paste text below cursor P: Paste text above cursor
/find: Text finds find, looks backwards and highlights
? Find: Text finds find, search forward and highlight
/s: Replace text action
A,BS/F/T: Replace line A to line B and replace F with T
A: Add text after the current character
A: Add text at the end of A row
I: Inserting text in the current word match either
I: Inserting text at the beginning of a line
O: Insert a blank line after the current line
O: Insert a blank line before the current line
: Wq Command mode, execute save to exit operation
: In w command mode, perform a disk operation
: w! Command mode, perform a forced disk operation
: Q Command mode, perform exit VI operation
: q! Command mode, perform a forced exit VI operation
: E filename Command mode, open and edit files
: n Command mode, if multiple files are open at the same time, continue editing the next file
: F Command mode, display file name, cursor line number, scale
: In Set number command mode, line numbers are displayed at the leftmost end
: Set nonumber command mode, line numbers are not displayed on the leftmost side
Webpack, NPM, nginx, git common commands