测试
作者:互联网
常用命令
maven
mvn clean package -Dmaven.test.skip=true
dos差端口占用 杀进程
tasklist
netstat -ano
taskkill /f /im java.exe
redis-cli -h 127.0.0.1 -p 6379 shutdown
redis-server.exe redis.windows.conf
Linux:
netstat -nupl (UDP类型的端口)
netstat -ntpl (TCP类型的端口)
free -h
压缩
tar -cvf
解压
tar -zxvf
ps -eo pmem,pcpu,rss,vsize,args | sort -k 1 -r | less
cat /proc/sys/vm/drop_caches 查看
echo 1 > /proc/sys/vm/drop_caches 清除缓存
/etc/init.d/crond status
/etc/init.d/crond start
添加计划任务
crontab -e
10 5 * * 6 echo 1 > /proc/sys/vm/drop_caches 每周六5:10 进行缓存清理
crontab -l
clickhouse
sudo systemctl start clickhouse-server
sudo systemctl stop clickhouse-server
sudo systemctl status clickhouse-server
Docker:
docker run --rm -d -p 80:80 --name nginx \
-v /home/nginx/www:/usr/share/nginx/html \
-v /home/nginx/conf/nginx.conf:s/etc/nginx/nginx.conf \
-v /home/nginx/logs:/var/log/nginx \
nginx
docker run -itd --name redis-test -p 6379:6379 redis
服务:
金华OBD接收服务。 部署在金华2期服务器上。
路径:
/data/Recivers/OBDReceiver
启动命令:
nohup java -jar GB17691_2020DataTCPServer-jar-with-dependencies.jar 12011 ./system4CH.properties >log.txt 2>1&
curl http://10.33.139.40/jdcwqzhjg-kzjc/check/vin -X POST -i -H "Content-Type:application/json" -H "Accept:application/json" -d '{"vin" : "LVSFBFAC84F017084"}'
curl http://10.45.14.57:80/obd/newcarcheck/vin -X POST -i -H "Content-Type:application/json" -H "Accept:application/json" -d '{"vin":"LA71AJH48L0005385","regTime":"2020-12-03 14:02:04"}'
标签:redis,vin,server,nginx,json,测试,clickhouse 来源: https://www.cnblogs.com/anzi1983/p/14149902.html