第一篇 linux安装与常见命令

1.去系统之家,下载Centos7 Linux系统.

2.linux常见命令.

Ctrl+Alt+F1     virtual进入到命令行界面或者到桌面模式(Ctril+Alt+F2)

1.ifconfig -a       查看ip地址.
2.exit          退出用户
3.clear         清屏
4.Shift + PageUp    向上翻页(linux命令行过长翻页,没有滚动条向上查看的)
5.Shift + PageDown  向下翻页
6.pwd           查看查看当前路径/目录
7.ls/dir        显示当前目录下的文件

3.linux下tomcat操作命令.

都在bin目录下执行.

./startup.sh 启动Tomcat命令

./shutdown.sh 停止Tomcat服务命令

ps -ef|grep java 查看tomcat是否启动

kill -9 121912  //强制关闭tomcat,其中121912为ps -ef|grep java查看的进程号.

遇到问题:

1.tomcat部署遇到如下错误:
    Illegal access: this web application instance has been stopped already. Could not load org.IOItec.zkclient.ZkClient$8. The eventual following strack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
    java.lang.IllegalStateException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1244)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
    ...

    原因:上次tomcat的进程没有杀掉导致tomcat启动不起来,所以启动会报这样的错误.

你可能感兴趣的:(linux)