tail -f application.log(实时查看日志文件)
gzip -d xxx.gz(解压gzip文件)
tar –xvf file.tar //解压 tar包
tar -xzvf file.tar.gz //解压tar.gz
wget -c http://www.linuxsense.org/xxxx/xxx.tar.gz(下载 )
https://www.cnblogs.com/yuanbo123/p/5819564.html(java安装)
sudo shutdown -r now(重启)
https://blog.csdn.net/c233728461/article/details/52679558(端口)
用户
https://jingyan.baidu.com/article/a17d5285eb93ea8099c8f24d.html(切换用户)
https://www.cnblogs.com/biaopei/p/7730542.html(root权限分配)
https://www.cnblogs.com/mylinux/p/5576316.html(用户操作)
ES
安装:https://www.cnblogs.com/lizichao1991/p/7809156.html
https://blog.csdn.net/qq_15175765/article/details/78862797(log4j*错误)
重启:
ps -ef | grep elastic
kill -9 3250
elasticsearch -d
安装node
(cd 'usr/local',去nodejs官网查看linux二进制包地址)
wget https://nodejs.org/dist/v10.14.1/node-v10.14.1-linux-x64.tar.xz
xz -d node-v10.14.1-linux-x64.tar.xz
tar -xvf node-v10.14.1-linux-x64.tar
ln -s /usr/local/node-v10.14.1-linux-x64/bin/node /usr/local/bin/node
ln -s /usr/local/node-v10.14.1-linux-x64/bin/npm /usr/local/bin/npm
npm install -g n
ln -s /usr/local/node-v10.14.1-linux-x64/bin/n /usr/local/bin/n
https://www.jb51.net/article/98153.htm(如果不生效,Linux切换node版本)
vi ~/.bashrc(设置环境变量,添加下面这行:)
export PATH=/usr/local/node/bin:$PATH(linux添加环境变量)
puppereer在centos下的问题
提升缺少 libXcomposite 等依赖:
MAC
## 常用终端命令
Mac查看端口占用 lsof -i tcp:port
Mac杀掉进程 kill Pid