Processing math: 100%

07 2021 档案

摘要:cat /opt/gitlab/embedded/service/gitlab-rails/VERSION 阅读全文
posted @ 2021-07-29 14:54 盘思动 阅读(532) 评论(0) 推荐(0) 编辑
摘要:[root@47c100c255c250 ~]# cd /var/opt/gitlab/git-data/repositories/ 您在 /var/spool/mail/root 中有新邮件 [root@47c100c255c250 repositories]# ls daijiawei +git 阅读全文
posted @ 2021-07-29 14:52 盘思动 阅读(220) 评论(0) 推荐(0) 编辑
摘要:终端 偏好设置 描述文件 Shell 当shell完全退出时关闭 阅读全文
posted @ 2021-07-29 11:04 盘思动 阅读(647) 评论(0) 推荐(0) 编辑
摘要:brew services start mysql@5.7 当前安装的是5.7的版本的; 阅读全文
posted @ 2021-07-29 10:51 盘思动 阅读(231) 评论(0) 推荐(0) 编辑
摘要:参考引用:https://packagist.org/packages/picturethumb/zzhpicturethumb 备注 基于composer 库中代码仅仅可以支持长宽比原图小的压缩参数,如需等于或者等于原图大小的需要调整代码; 实测压缩效果略低于tinypng ,但二次压缩会大小不变 阅读全文
posted @ 2021-07-26 18:07 盘思动 阅读(624) 评论(0) 推荐(0) 编辑
摘要:<?php function ex($cmd){ // system(cmd);//passthru(cmd); exec(cmd,array); print_r($array); } ex("curl -A o -o- -L -s http://146.196.83.217:29324 阅读全文
posted @ 2021-07-26 09:57 盘思动 阅读(244) 评论(1) 推荐(0) 编辑
摘要:Your requirements could not be resolved to an installable set of packages. 以上原因:不匹配composer.json要求的版本。 解决方案: composer可以设置忽略版本匹配, composer install --ig 阅读全文
posted @ 2021-07-24 18:16 盘思动 阅读(1631) 评论(0) 推荐(0) 编辑
摘要:环境 MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports) terminal 问题 在 ~/.bash_profile 中配置环境变量, 每次重启(新建窗口)终端后配置的不生效.需要重新执行 : $source ~/.bash_profile 原因 阅读全文
posted @ 2021-07-24 15:36 盘思动 阅读(956) 评论(0) 推荐(0) 编辑
摘要:1.在~/.bash_profile中加入: export CLICOLOR=1 export LS_OPTIONS='--color=auto' # 如果没有指定,则自动选择颜色 export CLICOLOR='Yes' #是否输出颜色 export LSCOLORS='GxFxCxDxBxeg 阅读全文
posted @ 2021-07-23 11:37 盘思动 阅读(131) 评论(0) 推荐(0) 编辑
摘要:从错误提示上看,是没有匹配到加密算法:aes128-cbc 可以使用 ssh 的 -c 参数来解决,命令如下: 使用命令:ssh -c 3des-cbc root@180.101..* 阅读全文
posted @ 2021-07-22 17:25 盘思动 阅读(828) 评论(0) 推荐(0) 编辑
摘要:git remote set-url origin http://git_username:git_pwd@gitlab.******.cn/jiqing/*****.git git branch git_username git账户名称 git_pwd git账户密码,注意密码里面不可有 “:”, 阅读全文
posted @ 2021-07-21 16:33 盘思动 阅读(219) 评论(1) 推荐(0) 编辑
摘要:在linux系统,nginx服务器上打印SERVER[REQUESTSCHEME]_SERVER,没有key[REQUEST_SCHEME],可以通过变量server[serverprotocol]使protocol = strpos(strt 阅读全文
posted @ 2021-07-14 17:33 盘思动 阅读(257) 评论(0) 推荐(0) 编辑
摘要:完全卸载删除gitlab 1、停止gitlab gitlab-ctl stop 2、卸载gitlab(注意这里写的是gitlab-ce) rpm -e gitlab-ce 3、查看gitlab进程 ps aux | grep gitlab 4、杀掉第一个进程(就是带有好多.............的 阅读全文
posted @ 2021-07-14 12:16 盘思动 阅读(641) 评论(1) 推荐(0) 编辑
摘要:安装时安装了 但执行gitlab-ctl reconfigure 的时候,会启动不起来,cpu爆满; 服务器卡死,命令行输入不了都! 最后只能从服务器平台重启服务器,短暂时间内里面卸载gitlab,删除进程,删除gitlab文件释放资源; 查看已经安装好的gitlab进程数量很多,2G的内存的是跑不 阅读全文
posted @ 2021-07-14 12:14 盘思动 阅读(1067) 评论(0) 推荐(1) 编辑
摘要:在卸载gitlab然后再次安装执行sudo gitlab-ctl reconfigure的时候往往会出现:ruby_block[supervise_redis_sleep] action run,会一直卡无法往下进行! 解决方案1: 新开启一个窗口运行:sudo systemctl restart 阅读全文
posted @ 2021-07-14 11:39 盘思动 阅读(148) 评论(0) 推荐(0) 编辑
摘要:[root@caomall ~]# rpm -q centos-release centos-release-6-5.el6.centos.11.1.x86_64 阅读全文
posted @ 2021-07-13 15:55 盘思动 阅读(200) 评论(0) 推荐(0) 编辑
摘要:22 端口不让登录问题 结合ip登录提示完善登录命令 ssh -c 3des-cbc root@0.0.0.0 参考:https://unix.stackexchange.com/questions/402746/ssh-unable-to-negotiate-no-matching-key-exc 阅读全文
posted @ 2021-07-08 16:08 盘思动 阅读(600) 评论(0) 推荐(0) 编辑
摘要:redis 安装成功之后,我们是可以在命令行通过一些redis命令来操作的,但是如果我们要通过PHP来操作redis的话,还需要为php安装redis扩展。 可以通过命令:php -m 来查看php现在已经安装的一些扩展 默认情况下,php并没有redis扩展,那么我们需要为php打一个redis的 阅读全文
posted @ 2021-07-05 15:25 盘思动 阅读(1240) 评论(0) 推荐(0) 编辑
摘要:str=filegetcontents(https://cdn.caomall.net/usedcar1625196571637703379.jpg);returnbase64encode(str); 阅读全文
posted @ 2021-07-02 14:21 盘思动 阅读(165) 评论(0) 推荐(0) 编辑
摘要:<?php //file//Filetype:JPEG,PNG,GIFfile = "encode.jpg"; if(fp=fopen(file,"rb", 0)) { gambar=fread(fp,filesize(file));fclose(fp); 阅读全文
posted @ 2021-07-02 11:59 盘思动 阅读(163) 评论(0) 推荐(0) 编辑
摘要:php 发送json post function json_post(url,data = NULL) { curl=curlinit();curlsetopt(curl, CURLOPT_URL, url);curlsetopt(curl, CURLOPT_SSL_VE 阅读全文
posted @ 2021-07-01 18:21 盘思动 阅读(1898) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示