
服务器
NHPH
事繁勿慌,事闲勿荒,有言必信,无欲则刚
展开
-
Unable to negotiate with 120.26.106.212 port 22: no matching host key type f
原因是Terminal找不到支持的密钥交换方法,因为新版Openssh中认为SHA1这种hash散列算法过于薄弱,已经不再支持,所以我们需要手动去允许对于SHA1的支持 。解决办法:在生成公钥的~/.ssh文件夹下,新建一个config文件(config文件没有后缀),文件中添加如下内容:Host *HostkeyAlgorithms +ssh-rsaPubkeyAcceptedKeyTypes +ssh-rsa...原创 2022-03-31 15:07:41 · 5298 阅读 · 0 评论 -
Swoole结合Thinkphp发送10万+微信模板消息
使用Thinkphp5.0框架服务端:<?phpnamespace app\Console;use think\console\Command;use think\console\Input;use think\console\Output;use think\Db;use think\Cache;/*** swoole异步* public同级目录下,执行php think task:start*/class Async extends Command{ .原创 2020-11-03 10:03:37 · 1423 阅读 · 2 评论 -
thinkphp生成海报 Grafika
使用的是Grafika组件,下载及手册<?phpnamespace app\api\controller;use Grafika\Color;use Grafika\Grafika;class Poster{ /** * 生成海报 * @param $openid 推荐者用户id * @param $qrcodeUrl 二位码将要跳转的链接 */ public function create($openid='', $qrcodeUrl原创 2020-08-20 11:28:44 · 1163 阅读 · 0 评论 -
wx小程序录音并上传到后端保存[后端PHP]
wxml文件:<view class="container"> <view class="audio_ctl"> <button bindtouchstart="handleRecordStart" bindtouchend="handleRecordEnd">长按录音</button> <button bindtap...翻译 2019-11-22 09:48:46 · 1934 阅读 · 0 评论 -
PHP强制下载文件,不通过浏览器打开
浏览器发送一个请求,请求访问服务器中的某个网页(如:down.php),该网页的代码如下。服务器接受到该请求以后,马上运行该down.php文件运行该文件的时候,必然要把将要被下载的文件读入内存当中(这里是圣诞狂欢.jpg这张图片),这里通过fopen()函数完成该动作注意:任何有关从服务器下载的文件操作,必然需要先在服务端将文件读入内存当中现在文件已经在内存当中了,这是需要从内存当中读取...转载 2019-07-10 16:36:11 · 828 阅读 · 0 评论 -
S3 Browser操作对象存储oss
网易云手册S3Browser下载原创 2019-09-18 10:40:16 · 1002 阅读 · 0 评论