Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_38390092/article/details/90206138
Tomcat installation
Tomcat WEB container, javaEE run this program
LINUX system:
Version: Tomcat7
1. official website to download decompression: tar -zxvf apache-tomcat-7.0.73.tar.gz
2. Configure Environment Variables
sudo vim /etc/profile
最下方添加 export CATALINA_HOME (安装目录)=/developer/apache-tomcat-7.0.73
3. Save and exit
:wq
4. validate the configuration
source/etc/profile
5. Configure UTP-8 character set
1.进入tomcat安装的conf文件夹,编辑server.xml
2.找到配置8080默认端口的位置,在xml节点末尾添加URIEncoding = "UTF-8"
6. Verify
1.进入系统解压后的tomcat目录
2.进入bin目录
3.执行./startup.sh
看到设置的JDK路径启动成功
4.打开启动tomcat机器的ip地址和默认8080端口,本机访问http://localhost:8080
其它机器访问 执行 ifconfig找到此机器IP地址,进行访问
WINDOWS installation
和JDK一样配置环境变量即可 之后配置符集 找到server.xml 找到8080 最后面添加RIEncoding="UTF-8"
验证 进入bin目录 CMD 执行startup.bat 弹出新窗口 网址查看 运行成功 OK
常用命令 /bin/startup.sh 启动 /bin/shutdown.sh (LINUX)