JSP  环境配置

来源:互联网 发布:屏蔽淘宝网 百度 编辑:程序博客网 时间:2024/06/03 16:37

网上下载的myeclipse

安装好了myeclipse以后准备配置TomCat服务器
在官网下载 [ 下载链接 ]

下载之后放在相应的位置我的是放在/Users/hezhe/local下面
然后在终端里面设置权限
这里写图片描述

接着测试配置

这里写图片描述

这里写图片描述

配置Tomcat启动脚本

#!/bin/bashcase $1 instart)sh /Users/hezhe/local/apache-tomcat-9.0.0.M18/bin/startup.sh;;stop)sh /Users/hezhe/local/apache-tomcat-9.0.0.M18/bin/shutdown.sh;;restart)sh /Users/hezhe/local/apache-tomcat-9.0.0.M18/bin/shutdown.shsh /Users/hezhe/local/apache-tomcat-9.0.0.M18/bin/startup.sh;;*)echo “Usage: start|stop|restart”;;esacexit 0

将文件保存为tomcat,小写并不带后缀。赋予文件执行权限:

chmod 777 tomcat

。将这个文件放置到终端包含的路径中,例如/usr/bin,而后便可以在终端中简单地输入tomcat start和tomcat stop启用tomcat了。

快捷命令如下:

1)tomcat start
2) tomcat stop
3) tomcat restart

0 0
原创粉丝点击