• Linux
  • apache
  • centos
  • Git版本管理
  • Linux基本命令
  • linux配置与优化
  • Nginx
  • PHP
  • Redis
  • Supervisor
  • Swoole
  • windows
  • THINKPHP
  • 开发者手册
  • Chat GPT / Open Ai
  • /*1.Connection*/ $redis = new Redis();   $redis->connect('127.0.0.1',6379,1);//短链接,本地host,端口为6379,超过1秒放弃链接   $redis->open('127.0.0.1',6379,1);//短链接(同上)   $redis->pconnect('127.0.0.1',6379,1);//长链接,本地...
    日期:2022-09-25 浏览:390次 bob手机版网页登录: 0 阅读全文
    $_SERVER详解$_SERVER[‘HTTP_ACCEPT_LANGUAGE’]//浏览器语言$_SERVER[‘REMOTE_ADDR’] //当前用户 IP 。$_SERVER[‘REMOTE_HOST’] //当前用户主机名$_SERVER[‘REQUEST_URI’] //URL$_SERVER[‘REMOTE_PORT’] //端口。$_SERVER[‘SERVER_NAME’] //服务器主机的名称。$_SERVER[‘PHP_SELF’]//正在执行脚本的文件名$_SERVER[‘argv...
    日期:2022-09-25 浏览:323次 bob手机版网页登录: 0 阅读全文
    github上的版本和本地版本冲突的解决方法 情景: 在github上创建项目,然后本地git init 然后没有git pull -f --all 然后git add .  | git commit -am "init" 导致github上的版本里有readme文件和本地版本冲突,下面给出冲突原因:  提交到远程一般 git remote add origin ...
    日期:2022-07-29 浏览:711次 bob手机版网页登录: 0 阅读全文
    1.删除远程库文件,但本地保留该文件 git rm --cached xxx git commit -m "remove file from remote" git push -u origin master 2.删除远程库文件夹,但本地保留该文件夹 git rm --cached -r xxx git commit&nb...
    日期:2022-07-21 浏览:564次 bob手机版网页登录: 0 阅读全文
    fatal: could not read Username for 'http:// 解决方案 在部署drone(CICD软件)后,触发提交时,drone-runner执行拉取仓库代码(在自己部署的gogs上)时出现该问题 Initialized empty Git repository in /drone/src/.git/ + git fetch origin +refs/heads/master: ...
    日期:2022-07-21 浏览:3375次 bob手机版网页登录: 0 阅读全文
    宝塔环境安装使用hyperf框架时使用第三方SDK会提示:cURL error 1014: SSL verify failed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 解决方法就是重新编译swoole,不要用宝塔自带的扩展,截止目前宝塔版本7.8.0依旧需要自己手动重新编 解决方法就是重新编译swoole,不要用宝塔自带的扩展,截止目...
    日期:2022-07-21 浏览:1323次 bob手机版网页登录: 0 阅读全文
    这种数据分组操作比较常用,记录一下,可以直接复制使用     /**      * @description:根据数据       * @param {dataArr:需要分组的数据;keyStr:分组依据}       * @return: ...
    日期:2022-07-19 浏览:633次 bob手机版网页登录: 0 阅读全文
    简单实现上传阿里云存储功能 首先:composer安装oss扩展 composer require aliyuncs/oss-sdk-php 然后:引入类库 <?php   namespace app\home\controller;   vendor('aliyuncs.oss-sdk-php.autoload');   use OSS\OssClient; use OSS\Core\OssException; us...
    日期:2022-07-19 浏览:589次 bob手机版网页登录: 0 阅读全文
    宝塔环境安装使用hyperf框架时使用第三方SDK会提示:cURL error 1014: SSL verify failed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 解决方法就是重新编译swoole,不要用宝塔自带的扩展,截止目前宝塔版本7.8.0依旧需要自己手动重新编 下载swoole扩展文件 注意: 不要直接clone下来,不然编译会报...
    日期:2022-07-19 浏览:527次 bob手机版网页登录: 0 阅读全文
    一、添加用户   1、登录root 用户   2、useradd xxx(用户名) 回车   3、passwd xxx(上面输入的用户名) 回车 此项是设置密码   4、#密码 回车   5、#确认密码 回车     二、给该用户添加root权限   1、#chmod -v&n...
    日期:2022-07-16 浏览:1176次 bob手机版网页登录: 0 阅读全文