上一页 1 2 3 4 5 6 7 8 ··· 25 下一页
摘要: 报错ImportError:No module named 'PIL' 缺失一个pillow的数据包,在黑窗口下 pip install -i https://pypi.douban.com/simple pillow 如果报以下错误: 则执行 pip install --upgrade pip - 阅读全文
posted @ 2020-11-09 16:28 一个人的孤独自白 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 在Linux/Unix类操作系统上, DISPLAY用来设置将图形显示到何处. 直接登陆图形界面或者登陆命令行界面后使用startx启动图形, DISPLAY环境变量将自动设置为:0:0, 此时可以打开终端, 输出图形程序的名称(比如xclock)来启动程序, 图形将显示在本地窗口上, 在终端上输入 阅读全文
posted @ 2020-11-06 15:50 一个人的孤独自白 阅读(6442) 评论(0) 推荐(0) 编辑
摘要: 查看是否安装vnc rpm -qa | grep vnc centos安装vnc yum install vnc vnc-server yum install tightvnc-server 去除端口防火墙 iptables -I INPUT -p tcp --dport 5901 -j ACCEP 阅读全文
posted @ 2020-11-06 10:54 一个人的孤独自白 阅读(4329) 评论(0) 推荐(0) 编辑
摘要: 笔者之前一直在使用vagrant作为虚拟机使用。 vagrant的好处自然不必说,只是有一天遇到了一个麻烦事——虚拟硬盘空间不!够!了! 笔者使用了df -h命令一看,结果发现,主硬盘(/dev/sda1)总空间居然只有10G,然而一般的系统镜像初始大小就超过9G。 在网上一查,发现vagrant其 阅读全文
posted @ 2020-11-05 15:23 一个人的孤独自白 阅读(875) 评论(0) 推荐(0) 编辑
摘要: WIN+R打开运行,输入 sysdm.cpl,打开系统属性。 找到环境变量。 在系统变量栏,选中path变量,点编辑。在新界面点新建,将virtualbox的安装目录添加到path变量中。 之后就可以正常执行vboxmanage了 阅读全文
posted @ 2020-11-05 14:49 一个人的孤独自白 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: 报错例子: 如上图报错:nginx: [emerg] host not found in upstream "php" in /etc/nginx/conf.d/localhost.conf:10 原因: 用docker搭建的nginx报upstream错误,一直找不到原因 通过服务器IP和端口,可 阅读全文
posted @ 2020-11-03 16:30 一个人的孤独自白 阅读(3537) 评论(0) 推荐(0) 编辑
摘要: 一、使用场景 一般来说,我们开发都会有测试环境和正式环境之分。当然,数据库也是要分开的。如果能用phpmyadmin直接访问两台服务器上的mysql就好了。这就是需求。 二、解决方案 1、找到phpmyadmin文件夹下面的config.sample.inc.php,重命名为config.inc.p 阅读全文
posted @ 2020-11-02 11:22 一个人的孤独自白 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 1)设置用户名和email git config --global user.name "xxx" git config --global user.email "xxx@qq.com" 2)生成ssh key ssh-keygen -t rsa -C "xxx@qq.com" 直接三次回车就ok【 阅读全文
posted @ 2020-10-29 16:28 一个人的孤独自白 阅读(1955) 评论(0) 推荐(0) 编辑
摘要: 代码: <?php class ErrorHtml { public static function pr($code = 404) { if($code == 404){ $title = '找不到网页'; $desc = '找不到网址对应的网页'; $code = 'HTTP ERROR 404 阅读全文
posted @ 2020-10-29 14:34 一个人的孤独自白 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-10-28 17:50 一个人的孤独自白 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: 注意:使用前自行修改LOCAL_BRANCH,TARGET_BRANCH分支代码 #!/bin/sh RED_COLOR='\E[1;31m' #红 GREEN_COLOR='\E[1;32m' #绿 YELOW_COLOR='\E[1;33m' #黄 BLUE_COLOR='\E[1;34m' # 阅读全文
posted @ 2020-10-28 16:05 一个人的孤独自白 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 先看文章【sourceTree 自定义操作】:https://www.cnblogs.com/-mrl/p/13885674.html 然后执行: sh脚本代码: #!/bin/bash echo 项目路径:$1 echo 选中文件:$2 current_branch=`git symbolic-r 阅读全文
posted @ 2020-10-27 17:58 一个人的孤独自白 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 利用sourcetree自定义操作调用git-bash、cmd、powershell等命令执行工具,传入自定义脚本命令并运行。 sourcetree 工具→选项→自定义操作 sourcetree 操作→自定义操作,选择要执行的自定义命令,执行效果如图 sh脚本代码: #!/bin/bash echo 阅读全文
posted @ 2020-10-27 16:38 一个人的孤独自白 阅读(2125) 评论(0) 推荐(0) 编辑
摘要: Git 提供了四种方法来忽略文件,分别适用不同情况,如下: 1、全局忽略 忽略规则由本机所有仓库共用,配置方法如下:编辑 ~/.gitconfig 文件, [user] name = yourname email = yourname@email.com [gui] encoding = utf-8 阅读全文
posted @ 2020-10-27 15:26 一个人的孤独自白 阅读(12915) 评论(1) 推荐(1) 编辑
摘要: 官网地址:https://plugins.jetbrains.com/plugin/8579-translation github地址:https://github.com/YiiGuxing/TranslationPlugin 安装方法: 1.使用 IDE 内置插件系统安装: Preference 阅读全文
posted @ 2020-10-27 11:03 一个人的孤独自白 阅读(722) 评论(0) 推荐(0) 编辑
摘要: head插件简介 elasticsearch-head被称为是弹性搜索集群的web前端,head插件主要是用来和elastic Cluster交互的Web前端 head插件历史 elasticsearch-head插件在0.x-2.x版本的时候是集成在elasticsearch内的,由elastic 阅读全文
posted @ 2020-10-26 14:12 一个人的孤独自白 阅读(830) 评论(0) 推荐(0) 编辑
摘要: 首先确保ElasticSearch镜像已经启动 一定要保证ElasticSearch和ElasticSearch插件的版本一致 我是用的是ElasticSearch是6.5.4版本 对应elasticsearch-analysis-ik-6.5.4 IK与ES版本兼容 ,详情请参考https://g 阅读全文
posted @ 2020-10-26 11:50 一个人的孤独自白 阅读(1794) 评论(0) 推荐(0) 编辑
摘要: php index.php "/test/?a=1&b=2&c=3" public static function argv_to_request() { if ($_SERVER['argv'] && count($_SERVER['argv']) > 1) { $str = $_SERVER[' 阅读全文
posted @ 2020-10-24 23:14 一个人的孤独自白 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 依次执行以下命令 docker pull elasticsearch:7.8.0 mkdir -p /mydata/elasticsearch/{config,data,plugins} echo "http.host: 0.0.0.0" > /mydata/elasticsearch/config 阅读全文
posted @ 2020-10-23 23:30 一个人的孤独自白 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: Docker-Compose常用命令 1、Docker-Compose命令格式 docker-compose [-f <arg>...] [options] [COMMAND] [ARGS...] 命令选项如下:-f,–file FILE指定Compose模板文件,默认为docker-compose 阅读全文
posted @ 2020-10-23 14:19 一个人的孤独自白 阅读(733) 评论(0) 推荐(0) 编辑
摘要: sourceTree 打标签tag 效果: 阅读全文
posted @ 2020-10-22 16:56 一个人的孤独自白 阅读(8085) 评论(0) 推荐(0) 编辑
摘要: es5以上版本安装head需要安装node和grunt(之前的直接用plugin命令即可安装) (一)从地址:https://nodejs.org/en/download/ 下载相应系统的msi,双击安装 (二)安装完成用cmd进入安装目录执行 node -v可查看版本号 (三)执行 npm ins 阅读全文
posted @ 2020-10-22 15:49 一个人的孤独自白 阅读(680) 评论(0) 推荐(0) 编辑
摘要: PHP 使用elasticsearch composer require elasticsearch/elasticsearch 会自动加载合适的版本!我的php是7.1的,它会自动加载7.9的elasticsearch版本! elasticsearch 的安装: https://www.cnblo 阅读全文
posted @ 2020-10-22 15:39 一个人的孤独自白 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: 一般这种问题都是配置的问题,看看是不是哪里写错了或者编码问题,你可以进入elasticsearch安装目录找到logs目录,打开elasticsearch.log查看详细的报错内容【log目录下的文件可清空,方便排查】 报错: [1] bootstrap checks failed [1]: the 阅读全文
posted @ 2020-10-22 10:01 一个人的孤独自白 阅读(4934) 评论(0) 推荐(0) 编辑
摘要: 1 安装Elasticsearch 7.x 1.1 下载地址 https://www.elastic.co/cn/downloads/elasticsearch 1.2 下载后解压的目录结构 目录文件作用: bin :脚本文件,包括 ES 启动 & 安装插件等等 config : elasticse 阅读全文
posted @ 2020-10-21 19:31 一个人的孤独自白 阅读(1423) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 25 下一页