原创 第三節:grpc1.18.0 在JAVA中調用c++發佈的服務

查看 第一節入門:https://blog.csdn.net/shan165310175/article/details/86618932 第二節C++編譯helloworld工程:https://blog.csdn.net/shan16

原创 第二節:protobuf-3.6.1 visual studio 2017(vs2017) 簡單使用

上一節: windows下vs2017編譯protobuf 3.6.1: https://blog.csdn.net/shan165310175/article/details/86624119 1. 新建立console空工程。(這裏使

原创 第一節:protobuf-3.6.1 visual studio 2017(vs2017)編譯(入門)

1. 下載protobuf-3.6.1源碼:https://github.com/protocolbuffers/protobuf/releases 2.下載cmake windows工具(並將bin目錄加入到path):https://

原创 第一節:grpc1.18.0 c++ windows visual studio 2017(vs2017)版本編譯(入門)

0. grpc的github地址,裏面也有教程:https://github.com/grpc/grpc.git 1.  windows使用visual studio 2017編譯需要以下幾個環境: a.安裝git:  https://

原创 protobuf編譯錯誤:error C4146: unary minus operator applied to unsigned type, result still unsigned

error C4146: unary minus operator applied to unsigned type, result still unsigned error C4146: 一元負運算符應用於無符號類型,結果仍爲無符號類型

原创 libevent2.1.8-stable中退出異常中斷

1.在每個線程構造函數那邊,都要添加如下代碼: #ifdef WIN32 evthread_use_windows_threads(); #else evthread_use_pthreads(); #endif 否則在loop時

原创 第二節:grpc1.18.0 c++ windows visual studio 2017(vs2017)版本Helloworld示例與解析

上一節入門:https://blog.csdn.net/shan165310175/article/details/86618932   1.使用vs2017新建立一個空的c++ console project,這裏我使用debug模式編

原创 mysql無法開啓慢日誌(slow_log)查詢問題處理Errcode: 13 - Permission denied

按照百度上面的各種教程,結果都出現了: ERROR 29 (HY000): File '/home/data/log/mysql/sql_log/mysql-slow.log' not found (Errcode: 13 - Permi

原创 docker編排管理工具Rancher v1.6.25搭建與使用(入門)

環境系統: Static hostname: N145 Icon name: computer-vm Chassis: vm Machine ID: f51f36bff7fe

原创 java(springmvc)下載文件亂碼問題處理(IE edge chrome)親測可用

加上這一段代碼判斷: String filename = bean.getName()+ "." + bean.getSuffixName() ; final String userAgent = request.getHeader(

原创 fastdfs集羣部署問題總結

1. 出現fastdfs-client-java 總是獲取storageServer爲null的問題。    答: df -h 檢查一下每臺機器的硬盤使用情況,當出現磁盤空間小於10%的時候,會出現上傳失敗,無法獲取到storageSer

原创 win10解決設置默認打開方式不生效問題(雙擊每次都要選者默認打開程序)

How to change the default programs in Windows 10. 系統: windows 10 1803 專業版 (windows 10 professional) 現象: 1.例如有文件 a.shp文件

原创 FastDFS client併發上傳異常 recv cmd: 0 is not correct, expect cmd: 100

描述:在調用同一個接口,併發上傳文件的時候出現異常。 java.io.IOException: recv cmd: 0 is not correct, expect cmd: 100     at org.csource.fastdfs

原创 springmvc上傳文件出現400錯誤

1.代碼如下:在上傳的時候出現400錯誤。 public AjaxJson saveSchoolProfile( SchoolProfileBean schoolProfileBean, @RequestParam(required =

原创 vs2015中用到的幾個插件

1.visual assistx: C++開發必備 2.code alignment: 代碼對齊工具,可以對齊等號等,讓代碼更美觀 3.ForceUTF8: 文件強制保存爲utf-8無bom格式 4.In