?
?
0.创建用户?
class="java" name="code">useradd byprojecttest passwd byprojecttest
?
?
1.添加 jdk tomcat?
scp -r ./ byprojecttest@10.153.29.77:/home/byprojecttest/ ls jdk1.8.0_121 tomcat
?
?
?
2.配置jdk?
vi ~/.bash_profile
?
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH export JAVA_HOME=/home/byprojecttest/jdk1.8.0_121 export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar: export PATH=$JAVA_HOME/bin:$PATH
?
?
3.修改 tomcat 支配地址?
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="/usr/yyt/byprojecttest" debug="0" reloadable="true" crossContext="true" ></Context> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host>
?
?
?
4.修改 lang?
export LANG=zh_CN.UTF-8
?
?
?
5.创建项目文件地址 并赋权限?
mkdir -p /usr/yyt/byprojecttest chown -R byprojecttest:byprojecttest /usr/yyt/byprojecttest
?
?
5.解压项目到 指定目录?
unzip byprojecttest.zip -d /usr/yyt/byprojecttest/
?
?
?
6.启动项目./catalina.sh start
?
?
?
7.访问curl http://127.0.0.1:8080/
?
?
?
?
?
?
?
?
?
?
?
?
在兴趣的驱动下,写一个免费
的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信 以及扣扣群),没钱捧个人场,谢谢各位。
?
个人主页:http://knight-black-bob.iteye.com/
?
?
?谢谢您的赞助,我会做的更好!
?