原创 rabbitmq php 筆記

use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; //生產者 public function send2(){

原创 php-fpm設置

一:系統環境 1 2 3 4 [machao@aiye log]$ cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) [machao@aiye log]$ un

原创 php成語十字交叉座標

$arr = array( '0'=>'九死一生', '1'=>'南柯一夢', ); $arr_rand1 = $this->make_arr($arr[0]);//數組 $arr_rand2 = $this->

原创 thinkphp5.0日誌讀取

/** * 返回文件名數組列表 * @return array */ public function getDirFileName(){ $dir = ROOT_PATH.'runtime/log'; $data

原创 php交叉成語生成

public function question(){ $idiom = $this->get_rand_idiom();//拿出隨機成語 $arr_rand = $this->make_arr($idiom);//

原创 Ubuntu 安裝 RabbitMq

準備工作 一臺服務器:Ubuntu Server 16.04.1 LTS 64位 安裝RabbitMq 可以參照RabbitMq官網的安裝教程(Installing on Debian and Ubuntu),來進行安裝。 這裏我們使用a

原创 Docker 安裝部署RabbitMQ

原文鏈接:https://www.jianshu.com/p/14ffe0f3db94 這裏注意獲取鏡像的時候要獲取management版本的,不要獲取last版本的,management版

原创 rabbitmq windows10安裝

原文鏈接:https://www.jianshu.com/p/31b9724c5d08 安裝erlang rabbitmq語言環境 安裝地址爲:http://www.erlang.org/d

原创 前後臺分離 nginx反向代理配置

server {     listen       80;     server_name  url1;     root /dist;     index index.html;     error_page    404      

原创 fidder捉包 配置

                把證書導出之後需要點擊安裝 如果要監控手機模擬器數據需要把證書拖到sdcard裏面安裝   wifi也要設置成對應的ip和端口                                  

原创 elasticsearch 集羣配置

記得打開9300端口 es1配置: http.port: 9200 network.host: 0.0.0.0 #memory bootstrap.memory_lock: true http.cors.enabled: true h

原创 elasticsearch-head

地址:https://github.com/mobz/elasticsearch-head git clone git://github.com/mobz/elasticsearch-head.git cd elasticsearch

原创 elasticsearch 安裝歷程

elasticsearch 安裝: 下載頁:https://www.elastic.co/downloads/elasticsearch#ga-release wget https://artifacts.elastic.co/down

原创 php趣味成語答題,題庫生成.

    public function question(){ $idiom = $this->get_rand_idiom();//拿出隨機成語 $arr_rand = $this->make_arr($idiom

原创 php把媒體文件上傳到微信服務器

/** * 上傳臨時素材,有效期爲3天(認證後的訂閱號可用) * 注意:上傳大文件時可能需要先調用 set_time_limit(0) 避免超時 * 注意:數組的鍵值任意,但文件名前必須加@,使用單引號以避免本地路徑斜槓被轉義