Tag:use

  • Explain how to use aspnetcore API and consumer under Windows

    Time:2019-12-4

    1. Concept: what is consumer Consul is a whole composed of multiple components, which functions as Eureka and zookeeper, and is used for service discovery and governance. Features of consul: 1. Service discovery: consumer can provide registered services to users, or actively discover services. In the client interface of consumer, users can get service information, […]

  • How to deploy ASP. Net core in combination with consumer under CentOS 7.4

    Time:2019-12-3

    In the last part, we talked about the concept of consumer and how to use it under win: https://www.jb51.net/article/141783.htm The steps are as follows: 1. Install VM 2. Download and install CentOS 7.4 Download address: https://www.jb51.net/software/590894.html This is the installation example: VM virtual machine installation CentOS example https://www.jb51.net/article/108088.htm 3. Configure the network environment (ensure the […]

  • The installation and use of redis under Linux

    Time:2019-11-21

    An example of this paper describes the installation and use of redis under Linux. To share with you for your reference, as follows: Redis official website: http://www.redis.io Latest version: 3.2.6 1. Download and unzip wget http://download.redis.io/releases/redis-3.2.6.tar.gz 2. Compilation and installation A, compile make B, installation make install 3. Deployment of redis After the installation is […]

  • Log output optimization of golang log4go

    Time:2019-11-2

    Preface In go language, a certain log module has been integrated. Developers can use the log package of go language(import “log”) 。 There are also many open source packages for their own logs. For some simple development, its own log module is enough to deal with. However, for some large and complex development, log needs […]

  • Post request implementation method used by Android framework volley

    Time:2019-10-20

    First, we import this framework into the project: implementation ‘com.mcxiaoke.volley:library:1.0.19’ Add network permissions to the Android manifest file: <uses-permission android:name=”android.permission.INTERNET”/> Here is our homepage layout: In this layout, we have made a button for all the functions of the volley framework. After pressing the button, the result will be displayed under “display result”. A Scrollview […]

  • JSON error: Use of overloaded operator [] is ambiguous error resolution

    Time:2019-10-11

    Recently, when using JSON arrays, there was a problem with using 0 as subscript (use of overloaded operator [] is ambiguous), but with 1 as subscript, there was no problem, and I was drunk. After searching all over the internet, I found that there were also netizens. // Note: //int x = a[0].GetInt(); // Error: […]

  • Summary Notes on RVM Installation and Use

    Time:2019-10-7

    Install the RVM command: Copy codeThe code is as follows: bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) Then modify the user profile / Users / username /. profile, and you can also write to other global configurations. Add a line of code: Copy codeThe code is as follows: [[ -s “$HOME/.rvm/scripts/rvm” ]] && . “$HOME/.rvm/scripts/rvm”  # […]

  • Analysis of the high usage of timer CPU in golang

    Time:2019-9-24

    Preface: Say less nonsense. On-line, a high-frequency task dispatching system written by golang runs steadily, but there is a disadvantage that when there is no task, the consumption of CPU is also several percentage points. The average CPU usage is about 3%. When you don’t have a task, the CPU still runs to 3%. That’s […]

  • Use of Python aiohttp in detail

    Time:2019-9-19

    1. Simple use of aiohttp (with asyncio module) import asyncio,aiohttp async def fetch_async(url): print(url) async with aiohttp.request(“GET”,url) as r: Reponse = await R. text (encoding = “utf-8”)# or direct await R. read () is not encoding, read directly, suitable for images and other uncoded files. print(reponse) tasks = [fetch_async(‘http://www.baidu.com/’), fetch_async(‘http://www.chouti.com/’)] event_loop = asyncio.get_event_loop() results = […]

  • Some Simple Use Skills of FreeBSD

    Time:2019-9-18

    1. Archives structure is very important in unix-like, so how do we look at the description of relevant archives directory structure? Is it CD in every directory? In fact, there is a better way. That is to use a good man to see: # man hier 2. When operating under console, because the screen display […]

  • How to Use U Disk under Linux and FreeBSD

    Time:2019-9-15

    How to Use U Disk under Linux/FreeBSD 1. First of all, we need to know a concept: any storage device with USB interface can be regarded as a U disk, which includes USB external hard disk, CF card with USB interface, MMC card and so on.   2. Under Linux/FreeBSD, the U-disk unification is simulated as […]

  • FreeBSD Learning Guide

    Time:2019-9-12

    FreeBSD Version Naming Rules A – Major Version Number B-minor version number C-Revised Version Number TAG – Name tags, such as RELEASE, STABLE, CURRENT Install. ISO install with this piece! Mini. ISO can also be used for installation, but there are no commonly used packages in it, so the files are relatively small. The Concept […]