退出当前文件编写:ctrl c :q!
保存并退出当前文件编写:ctrl c :wq
查看tomcat版本:cd /data/tomcat/bin ./version.sh
查看centOS版本:cat /etc/redhat-release
查看linux版本:uname -r
重启服务器:sudo reboot
查看重启记录:last|grep reboot