代码改变世界

随笔档案-2013年06月

Linux系统github使用

2013-06-25 13:54 by 相涛, 1115 阅读, 收藏,
摘要: 命令行下使用:1.检查ssh keycd ~/.ssh如果提示"No such file or directory",则需要创建一个ssh key.2.创建ssh key.ssh-keygen -t rsa -C "your_email@example.com"会有相应提示,按照提示操作:# Creates a new ssh key, using the provided email as a label# Generating public/private rsa key pair.# Enter file in which to save the 阅读全文

Linux发布web app 到Tomcat

2013-06-07 14:29 by 相涛, 1413 阅读, 收藏,
摘要: 1.将webContent内容打成war包:命令中进入到$workspacePATH/projectName/webContent目录下,运行命令:jar -cvfM0 projectName.war ./2.将war包发送到服务器上:运行命令scp projectName.war userName@serverIP:$TOMCAT_HOME/webapps/回车后,输入密码,过程中有进度标识.3.登陆到服务器:运行命令ssh serverIP回车后,输入密码,即可登陆成功。4.重启Tomcat:运行命令./$TOMCAT_HOME/bin/shutdown.sh./$TOMCAT_HOME/ 阅读全文