war 修改:
mvn install:install-file -Dfile=std_oss-0.0.6.jar -DgroupId=com.hengtiansoft.standard -DartifactId=std_oss -Dversion=0.0.6-SNAPSHOT -Dpackaging=jar
http://mis20.hengtiansoft.com:9010/MyhengtianService/restful/GetAddressInfo
进入tomcat安装目录,找到bin目录下的`catalina.sh`文件,增加
declare -x CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=60222"
springboot项目jar包的形式远程debug配置
java -Dspring.profiles.active=uc -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=60222 -jar Alogin-1.0.0.jar
例子:
jar 启动的时候配置相关配置信息
nohup java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=13444 IMonitor-Web.jar -Djava.io.tmpdir=/usr/local/imonitor/files/tmp --log.path=/usr/local/imonitor/logs/ > /usr/local/imonitor/logs/imonitor.log 2> /usr/local/imonitor/logs/imonitor.log &
tomcat 在cata.sh 第二行进行配置:
tomact 快速启动:
export PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$M3_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:/lib
# shutdown tomcat
pidlist=`ps -ef |grep apache-tomcat-8.5.84 |grep -v "grep"|awk '{print $2}'`
kill -9 $pidlist
/usr/local/apache-tomcat-8.5.84/bin/startup.sh
tail -200f /usr/local/apache-tomcat-8.5.84/logs/catalina.out
jar 包快速启动
export PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$M3_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:/lib
# shutdown tomcat
pidlist=`ps -ef |grep IMonitor-Web |grep -v "grep"|awk '{print $2}'`
kill -9 $pidlist
cd /usr/local/imonitor/
nohup java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=13444 IMonitor-Web.jar -Djava.io.tmpdir=/usr/local/imonitor/files/tmp --log.path=/usr/local/imonitor/logs/ > /usr/local/imonitor/logs/imonitor.log 2> /usr/local/imonitor/logs/imonitor.log &
tail -f /usr/local/imonitor/logs/imonitor.log
npm:
## npm依赖下载
npm install @ht/hae-runtime --registry=http://172.30.6.72:4873/
npm install @ht/role-auth --registry=http://172.30.6.72:4873/
npm config set registry = http://172.30.6.72:4873/
npm config set registry https://registry.npmmirror.com
需要安装对应版本才行:
npm install [email protected] [email protected] --save-dev //安装对应的版本
cnpm install sass-loader@版本号 node-sass@版本号 --save-dev //安装对应的版本
npm cache clean --force 清楚vue 缓存
q 键位可以退出less 编辑系统
直接安装cnpm 安装淘宝提供的cnpm,并更改服务器地址为淘宝的国内地址, 命令:`npm install -g cnpm --registry=https://registry.npm.taobao.org`,以后安装直接采用`cpm`替代`npm`, 例如原生npm命令为:`npm install uniq --save`,cnpm命令为:`cnpm install uniq --save`
替换npm仓库地址为淘宝镜像地址(推荐) 命令:`npm config set registry https://registry.npm.taobao.org`, 查看是否更改成功:`npm config get registry`,以后安装时,依然用npm命令,但是实际是从淘宝国内服务器下载的
npm install -g cnpm --registry=https://registry.npmmirror.com 使用阿里的cnpm命令行工具代替npm命令行
npm config set registry https://registry.npmmirror.com 修改npm源地址
//查看被占用端口:8080
netstat -ano|findstr "8080"
//找到占用该端口的进程
tasklist|findstr "10680"
taskkill /F /pid 10680 --kill掉进程