-----------------------------------------------------------------------------html
SecureCRTPortable 中文显示配置:选项---会话选项---终端---外观---字符编码---UTF-8java
tail -10f log.txt ---输出log.txt文件最后10行 参考:https://ruby-china.org/topics/20154spring
rm -rf dirname ---删除非空的目录 (-i 删除前逐一询问确认。-f 即便原档案属性设为惟读亦直接删除无需逐一确认。 -r 将目录及如下之档案亦逐一删除 )centos
nohup java -jar springboot-helloworld-0.0.1-SNAPSHOT.jar & ---后台运行(默认会产生nohup.out文件,能够经过>log.txt来指定控制台输出)tomcat
-----------------------------------------------------------------------------springboot
yum install telnet ---安装telnet客户端-----------------------------------------------------------------------------服务器
netstat -lnp|grep 80 ---查看端口占用状况post
ps -aux |grep tomcat ---查看tomcat进程编码
ps -ef|grep java|grep -v grep ---显示出全部的java进程,去处掉当前的grep进程。
参考:https://blog.csdn.net/r13929847477/article/details/52336925
-----------------------------------------------------------------------------
systemctl list-unit-files --type service ---查看全部服务的开机自启状态
systemctl is-active name.service ---查看某服务当前激活与否的状态
systemctl start/stop/restart name.service ---启动/中止/重启某服务
点击查看更多服务相关命令 Centos7服务器启动jar包项目最佳方式
-----------------------------------------------------------------------------
CentOS7更改计算机名:
hostnamectl ---查看hostname信息
hostnamectl set-hostname newname ---设置新的计算机名 而后重启便可
参考:
http://www.361way.com/centos7-hostnamectl/3816.html
https://blog.csdn.net/paulluo0739/article/details/73277273
-----------------------------------------------------------------------------
SPRINGBOOT-部署到CENTOS7
https://www.cnblogs.com/yuwentims/articles/9361411.html
-----------------------------------------------------------------------------
unZip/Zip的安装及使用
yum install -y unzip zip
参考:https://www.cnblogs.com/duyao/p/5990398.html
-----------------------------------------------------------------------------
解决 Centos7 下中文显示乱码
参考:https://blog.csdn.net/dxk539687357/article/details/53071658
-----------------------------------------------------------------------------
centos7 挂载新的硬盘
参考:https://blog.csdn.net/u013919633/article/details/79016201
-----------------------------------------------------------------------------
centOS7下实践查询版本/CPU/内存/硬盘容量等硬件信息
参考:https://blog.csdn.net/dream_broken/article/details/52883883
-----------------------------------------------------------------------------