SSH Secure Shell-Secure Shell Client操作使用说明

1.通常情况下开发的web系统在apache + tomcat Linux环境中测试,使用客户端操作工具:SSH Secure Shell
首先是安装:SSHSecureShellClient-3.2.9.exe
安装完成后,打开Secure Shell Client -> Quick Connect
 Host Name: 192.168.0.23
 User Name: root
 Port 22
 Authentication <Profile Settings> 默认值
 Connect -> Enter your Password -> OK
命令行界面定位到:[root@localhost root]#
同理打开:Secure File Transfer Client,用于文件传输。

 

2.目录结构(图形界面)

Xml代码 复制代码
  1. /   
  2.  ...   
  3.  usr   
  4.    apache2   
  5.      ...   
  6.      conf   
  7.        ...   
  8.        httpd.conf   
  9.      bin   
  10.        ...   
  11.        apachectl   
  12.    tomcat5   
  13.      ...   
  14.      conf   
  15.        ...   
  16.        server.xml   
  17.      bin   
  18.        ...   
  19.        shutdown.sh   
  20.        startup.sh   
  21.    webapps   
  22.      ...   
  23.      eWebEditor  

  
3.命令界面
 cd /usr/tomcat5/bin  转入到tomcat5 bin文件夹
    ./shutdown.sh       关闭tomcat服务
    ./startup.sh           启动tomcat服务
 cd /usr/apache2/bin 转入到apache2 bin文件夹
    ./apachectl start|stop|restart|graceful    启动|关闭|重启|优化apache服务
 ls                             查看目录文件命令
 move 文件夹 ..          移动文件夹到上一目录
 rm -rf eWebEditor/   删除文件夹eWebEditor
 ps -ef|grep java    查看tomcat启动进程信息,进程ID
   kill -9 进程ID         强制关闭tomcat服务进程
 缓存清理
   /usr/tomcat5/work/Catalina/eWebEditor  直接删掉eWebEditor文件夹清理缓存
 
4.配置文件
 1./usr/tomcat5/conf 修改server.xml
  增加一个Host节点 如下:

Xml代码 复制代码
  1. <Host name="eWebEditor.7234.com.cn"    
  2.     debug="0"    
  3.     appBase=""    
  4.     unpackWARs="true"    
  5.     autoDeploy="true">  
  6.  <Context path=""    
  7.       docBase="/usr/webapps/eWebEditor/"    
  8.       debug="0"    
  9.       privileged="true"    
  10.       reloadable="true"/>  
  11. </Host>  

 
 2./usr/apache2/conf 修改httpd.conf
  增加一个VirtualHost节点 如下:

Xml代码
<VirtualHost *>  
  1.         <LocationMatch "/WEB-INF/">  
  2.         AllowOverride None   
  3.         deny from all   
  4.         </LocationMatch>  
  5.   
  6.         <LocationMatch "/META-INF/">  
  7.         AllowOverride None   
  8.         deny from all   
  9.         </LocationMatch>  
  10.   
  11.         RewriteEngine on   
  12.         RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)   
  13.         Rewriterule .* - [F]   
  14.   
  15.         ServerAdmin aaa@7234.com   
  16.         DocumentRoot /usr/webapps/eWebEditor/   
  17.         ServerName eWebEditor.7234.com.cn   
  18.         ErrorLog logs/eWebEditor.7234.com.cn-error_log   
  19.         CustomLog "|/usr/local/sbin/cronolog /usr/logs/apache_logs/eWebEditor.7234.com.cn_access_log.%Y%m%d" combined   
  20.   </VirtualHost>  

 

5.本地hosts配置:C:/WINDOWS/system32/drivers/etc/hosts
 192.168.0.23 eWebEditor.7234.com.cn

 

6.拼是否成功:开始->运行->cmd
 ping eWebEditor.7234.com.cn
 #查看域名对应的IP地址:是内网还是外网的方法或是否连接成功。

 

7.最后在浏览器中输入:http://ewebeditor.7234.com.cn/ 请求页面,查看页面显示效果。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值