摘要: 参考资料 官方接口文档 sp-api https://developer-docs.amazon.com/sp-api/ PHPSDK https://github.com/clousale/amazon-sp-api-php 接口签名规范 https://docs.aws.amazon.com/z 阅读全文
posted @ 2022-09-26 15:30 ncsb 阅读(195) 评论(0) 推荐(0) 编辑
摘要: PHP代码 网站配置根目录下 info.php <?php echo "<pre>"; echo $_SERVER['SERVER_NAME']; host配置 127.0.0.1 www.my-search.com 127.0.0.1 www.my-play.com nginx配置 server 阅读全文
posted @ 2022-06-06 22:25 ncsb 阅读(160) 评论(0) 推荐(0) 编辑
摘要: win10下克隆了两台linux虚拟机,共三台。克隆完成启动三台系统发现网络都不可以使用了。 原linux虚拟机网络连接使用的是桥接模式,配置的是静态IP地址: TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no DEFROUTE=yes IPV4_FAI 阅读全文
posted @ 2022-02-28 01:15 ncsb 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 安装head插件:需要有git环境,nodejs环境 head插件下载 安装步骤参考 : https://github.com/mobz/elasticsearch-head git clone git://github.com/mobz/elasticsearch-head.git cd elas 阅读全文
posted @ 2022-02-23 00:50 ncsb 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 配置 查看防火墙配置:iptables L n v 配置文件: /etc/sysconfig/iptables 配置项 A INPUT p tcp dport 20 j ACCEPT A INPUT p tcp dport 21 j ACCEPT A INPUT p tcp dport 22 j A 阅读全文
posted @ 2020-01-20 14:52 ncsb 阅读(1911) 评论(0) 推荐(0) 编辑
摘要: 买的云服务,服务时间跑着跑着就比实际时间慢了几分钟,不管是阿里云服务器,还是亚马逊服务器,还是香港的主机,都出现过这种情况 下面是同步时间: 手动同步+计划任务定时去同步时间 linux 时间同步 service ntpd status 联网情况 同步互联网的时间(可自行找一个时间服务器) ntpd 阅读全文
posted @ 2020-01-18 11:07 ncsb 阅读(195) 评论(0) 推荐(0) 编辑
摘要: echart https://www.echartsjs.com/examples/zh/index.html highcharts https://www.highcharts.com.cn/ chartjs https://www.chartjs.org/ https://github.com/ 阅读全文
posted @ 2020-01-15 18:04 ncsb 阅读(2177) 评论(0) 推荐(1) 编辑
摘要: 方法封装 php中双字节字符编码范围 1. GBK (GB2312/GB18030) x00 xff GBK双字节编码范围 2. UTF 8 (Unicode) u4e00 u9fa5 (中文) x3130 x318F 参考: https://www.feiniaomy.com/post/312.h 阅读全文
posted @ 2020-01-13 16:52 ncsb 阅读(605) 评论(0) 推荐(0) 编辑
摘要: larave admin 编辑/增加处理方法如下 关闭laravel全局debug模式异常信息不显示 $user checkNick($form nick, $user id); 此处昵称合法性检查,不通过会抛出异常,在开启debug模式的情况下异常信息是可以显示出来 修正代码如下尝试 捕获异常的代 阅读全文
posted @ 2019-12-06 18:03 ncsb 阅读(1983) 评论(0) 推荐(0) 编辑
摘要: 执行原始SQL且分页 $sql = '(SELECT id,title,uid, ( +likes 20+collects 30+comments 10)/POW(UNIX_TIMESTAMP(NOW()) UNIX_TIMESTAMP(release_at),1.2) AS score, ,lik 阅读全文
posted @ 2019-12-03 10:45 ncsb 阅读(197) 评论(0) 推荐(0) 编辑