linux 命令
1.看出tomcat进程
ps- ef|grep java
2.杀死tomcat 进程
kill -9 ****
(****代表上面的端口号)
3.启动/关闭 tomcat
进入tomcat/bin目录下
cd/user/local/tomcat/bin
启动
./startdown.sh
关闭
./startup.sh
查看tomcat日志
进入tomcat/logs目录下
tail -f catalina.out
4 从其他地址复制文件到当前地址
scp root@111.200.53.19:/opt/plisp_pub.war ./
(root 代表用户名,111.200.53.19为文件的原始地址,/opt/为路径,plisp_pub.war是要复制的文件 ./ 表示复制到当前根目录)
之后输入yes 然后输入密码
5 删除文件/文件夹
rm -rf /var/log/httpd/access 删除文件夹
rm -f /var/log/httpd/access.log 删除文件
dos 命令
1.远程工具 mstsc
2.查看本机ipconfig
3.tomcat端口冲突,被占用
netstat -nao|findstr 8080
4.查找占用端口的服务
tasklist| findstr 7308
5.查看服务列表 services.msc
6.导出指定表
exp mocrescue/mocrescue@192.168.1.168:1521/orcl tables=(inmaric_fishery_info,rcc_ship_based) file=./mocrescue_threetb20160716.dmp
7导入指定表
imp mocrescue/mocrescue@192.168.1.168:1521/orcl tables=(inmaric_fishery_info,rcc_ship_based) file=./mocrescue_threetb20160716.dmp