原因: 前端传递的数组过于复杂,倒是出现这种问题,前端采用vue axios,发送请求,后端java接收代码,实现前后端分离 后端就收fastjson接收json,进行业务处理,后端Controller状况: 1 /** 2 * 3 * <p> 4 * <p>添加订单 5 * 6 * @return ...
分类:
Web程序 时间:
2018-04-28 14:01:02
阅读次数:
1401
服务器状态码及其含义: 200:服务器响应正常。 304:该资源在上次请求之后没有任何修改(这通常用于浏览器的缓存机制,使用GET请求时尤其需要注意)。 400:无法找到请求的资源。 401:访问资源的权限不够。 403:没有权限访问资源。 404:需要访问的资源不存在。 405:需要访问的资源被禁 ...
分类:
其他好文 时间:
2018-04-27 13:52:24
阅读次数:
119
[toc]分发系统-expect一、什么是分发系统?如今一些比较大的企业,大都使用了负载均衡,而有时因为一些程序要更改,或者有些bug要修改,如果仅是几台server的话,很简单,把已经改好的程序拷过去,或者rsync远程推送,再或者网上NFS共享一下就可以了;但如果有几十台几百台,那样的方法会太繁琐,我们此时就可以用expect来批量实现分发任务。这个由expect来构建的系统可以帮助我们把更新
分类:
系统相关 时间:
2018-04-27 13:24:20
阅读次数:
233
如何利用expect和shell结合实现 批量同步文件,批量执行命令;
分类:
其他好文 时间:
2018-04-27 12:23:16
阅读次数:
134
expect脚本同步文件1.创建脚本:[root@weix-01sbin]#vi4.expect#!/usr/bin/expectsetpasswd"w14"spawnrsync-avroot@192.168.127.132:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}"password:"{send"$passwd\r"}}expecteof2.添加权
分类:
其他好文 时间:
2018-04-27 12:18:53
阅读次数:
149
20.31expect脚本同步文件将文件从sever2同步到server1。[root@z1~]#vim4.expect#!/usr/bin/expectsetpasswd"123456"spawnrsync-avroot@192.168.8.138:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}
分类:
其他好文 时间:
2018-04-27 12:14:59
阅读次数:
146
一、expect脚本同步文件 1、编辑同步脚本4.expect #! /usr/bin/expectset passwd "root1234"spawn rsync -av root@192.168.134.131:/tmp/hk.txt /tmp #将131 上hk.txt 考到 本地tmp下ex ...
分类:
系统相关 时间:
2018-04-27 02:45:16
阅读次数:
216
expect脚本自动同步文件#!/usr/bin/expectsetpasswd"1q2w3e"spawnrsync-avroot@192.168.67.129:/tmp/12.txt/tmp/expect{"yes/no"{send"yes\r"}"password:"{send"$passwd\r&quo
分类:
其他好文 时间:
2018-04-27 02:23:54
阅读次数:
149
一、expect脚本同步文件[root@zlinux-01~]#cd/usr/local/sbin/[root@zlinux-01sbin]#ls01.expect02.expect03.expectcheck_ng.shlvs_dr.shlvs_nat.shmonnginx_log_rotate.sh[root@zlinux-01sbin]#vim04.expect//自动同步脚本#!/usr/
分类:
系统相关 时间:
2018-04-27 02:13:58
阅读次数:
219
20.31expect脚本同步文件#!/usr/bin/expectsetpasswd"liang.123"spawnrsync-avroot@192.168.137.130:/tmp/12.txt/tmp/将远程的/tmp/12.txt同步到本地的机器上expect{"yes/no"{send"yes\r"}第一次会提示yes或no&q
分类:
其他好文 时间:
2018-04-26 23:39:30
阅读次数:
329