putty ubuntu tomcat 文件传输

 利用putty连接remote ubuntu ,用psftp

windows 下运行 psftp.exe ,登录后改变在linux下的目录:
cd /usr/tomcat-camp
改变在windows下上传和下载的目录:  

lcd  d:/   

这个目录在 psftp 中不能列出来,我觉得这点不太好,如果不改变的话就是默认putty的安装目录,默认下载到这儿,上传的文件也是要在这个文件夹里面

比如在 d:盘有一个 MaintenanceServiceImpl.class
上传文件到linux:  psftp >  put  MaintenanceServiceImpl.class
这个命令会把 d:/5.rmvb 上传到 /usr/tomcat-camp/MaintenanceServiceImpl.class

从linux下载文件:  psftp >  get  MaintenanceServiceImpl.class

这个命令会把 /usr/tomcat-camp/MaintenanceServiceImpl.class
下载到 d:/MaintenanceServiceImpl.class

因为我开始在putty.exe(username,password),重启tomcat:

cd /usr/tomcat-camp/bin

./shutdown.sh

但是出现了error:

ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

可能是ports question。不理它,用另外方法启动tomcat

http://10.10.2.17:8080/ 你的remote server ip and tocame port

Tomcat Manager

 Start   Stop   Reload   Undeploy 

ok that is all!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值