04 2020 档案
摘要:linux(centos 7)下安装elasticsearch - head插件(端口占用,防火墙关闭) 一:安装Git(如果未安装)## 1, yum install git 2, git --version #查看版本 二:安装node(如果未安装)## node安装 三:安装grunt(如果未
阅读全文
摘要:1.下载kibana安装包 wget https://artifacts.elastic.co/downloads/kibana/kibana-5.6.5-linux-x86_64.tar.gz #修改成自己的版本 sha1sum kibana-5.6.5-linux-x86_64.tar.gz t
阅读全文
摘要:#!/bin/bashpath="/disk2/es" case "$1" instart) su cheng<<! cd $path ./bin/elasticsearch -d! echo "elasticsearch startup" ;;stop) es_pid=`ps aux|grep e
阅读全文
摘要:虚拟机使用net连接模式1Download and unzip the latest Elasticsearch distribution 2Run bin/elasticsearch on Unix or bin\elasticsearch.bat on Windows 3Run curl -X
阅读全文
摘要:https://blog.csdn.net/apple_llb/article/details/50444280 #!/bin/bash REDISPORT=8530 EXEC=/usr/local/redis/redis-4.0.9/src/redis-server CLIEXEC=/usr/lo
阅读全文
摘要:查看/etc/rc.local是否有执行权限,没有就加上chmod +x /etc/rc.local
阅读全文
摘要:$mail = new PHPMailer(true); // Enable verbose debug output $mail->isSMTP(); $mail->SMTPDebug = 0; // Set mailer to use SMTP $mail->Host = 'smtp.qq.co
阅读全文
摘要:<?php include_once('./common.php'); include_once('./config.php'); $wechatObj = new wechatCallbackapiTest(); if (!isset($_GET['echostr'])) { $wechatObj
阅读全文
摘要:<?php $signature = $_GET["signature"]; $timestamp = $_GET["timestamp"]; $nonce = $_GET["nonce"]; $token = 'ssss'; $tmpArr = array($token, $timestamp,
阅读全文
摘要:<?php $email=$_GET["email"]; #做一些操作 header("Content/type:image/png"); echo 图片路径'; ?> 发送的内容是html格式的 在内容内设置图片 请求的是php代码图片路径内添加当前的邮件地址 然后你就明白了...
阅读全文
摘要:http://houdunren.gitee.io/note/mysql/5%20%E6%97%A5%E6%9C%9F%E6%97%B6%E9%97%B4.html#%E5%8F%82%E6%95%B0%E4%BB%8B%E7%BB%8D 日期时间类型占用空间日期格式最小值最大值零值表示 DATET
阅读全文
摘要:<?php /** * PHP实现jwt */ class Jwt { //头部 private static $header = [ //生成signature的算法 'alg' => 'HS256', //类型 'typ' => 'JWT' ]; //使用HMAC生成信息摘要时所使用的密钥 pr
阅读全文
摘要:一,安装librdkafka sudo wget https://github.com/edenhill/librdkafka/archive/v0.9.4.tar.gz -O librdkafka-0.9.4.tar.gzsudo tar -zxvf librdkafka-0.9.4.tar.gz
阅读全文
摘要:执行 php composer.phar install 提示 Loading composer repositories with package informationUpdating dependencies (including require-dev) 1. 根本原因: 下载源在国外,无法
阅读全文
摘要:https://www.jianshu.com/p/2eef885b4aed 1.安装依赖包 sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates 2. 邮件配置 选择Internet那一项,不
阅读全文
摘要:MySQL 批量修改某一列的值为另外一个字段的值 1 2 3 4 5 6 7 8 9 10 11 mysql> select * from fruit; + + + + | id | name | price | + + + + | 1 | apple | 0 | | 2 | banana | 0
阅读全文
摘要:<?php #保留允许的键值 if(!function_exists('keep_allow_array')){ function keep_allow_array($data,$allow_array){ if(!is_array($data) || !is_array($allow_array)
阅读全文
摘要:function xml_to_array($Obj){ $result= (array)simplexml_load_string($Obj,'SimpleXMLElement', LIBXML_NOCDATA); return $result; }
阅读全文
摘要:<?php /************************************************************** * * 使用特定function对数组中所有元素做处理 * @param string &$array 要处理的字符串 * @param string $fun
阅读全文
摘要:/*获取唯一订单号*/ function order_number($order_header){ global $redis; if(trim_all($order_header)!=""){ $order_header=trim_all($order_header)."-"; } $time=t
阅读全文