Linux 常用命令

来源:互联网 发布:中文版电路设计软件 编辑:程序博客网 时间:2024/06/05 02:26


       tomcat 停止 pkill -9 java   kill -9 pid #pid 为相应的进程号
停止 tomcat ./shutdown.sh   /opt/heer/script/start8085.sh 
启动 /opt/heer/script/      ./start8081.sh 
备份 tar -czvf yjs.20140319.tar.gz yjs
日志 tail -f /opt/heer/server_yjs_quartz/tomcat6/logs/catalina.out
查看当前正在运行的tomcat     ps -ef|grep java
数据源配置 /opt/heer/server_8085/tomcat6/conf/context.xml
端口及包  /opt/heer/server_8085/server.xml
war包备份 tar -czvf yjs.20140305.tar.gz yjs
oracle 命令使用 su - oracle
oracle 启动 步骤:1.su - oracle  2.sqlplus /nolog
          3.connect / as sysdba  4.startup --shutdown immediate 关闭
  5.exit  6.lsnrctl start
关闭防火墙 service iptables stop
重启系统 reboot
删除文件 rm -rf /文件路径
替换文件(复制) cp -r 文件路径 文件路径  或者 -o 覆盖全部 不用询问
vi 编辑命令 vi 文件  插入 i  命令状态 esc  保存 w 退出q 保存退出wq 退出 shhift+zz(ZZ)
文件授权 chmod u+x 文件


查看端口占用:
     netstat -aon|findstr 8080


结束进程:
     taskkill -F -PID 5700
0 0
原创粉丝点击