Using brew to install nginx and configure

Installation process brew is used here to install the software. install brew install nginx View the installation information (often used, such as viewing the installation directory, etc.) sudo brew info nginx After installation, it mainly depends on where brew installed nginx. The default is to install it to / usr/local/etc/nginx/nginx.c ...

Posted on Sun, 05 Apr 2020 06:05:43 -0700 by doremi

The use of Python Network request module Requests

Network request module requests introduce The requests module can imitate the browser to send requests and get responsesrequests module is common in python2 and python3The requests module can help us extract the web content automatically Installation of requests module pip install requests If ...

Posted on Sun, 08 Mar 2020 00:02:33 -0800 by SUNNY ARSLAN

Predefined Macro Signal Processing with List inline Output Exception Preprocessor#, ##in the Date-Time Class of c++.

Navigation 1.c++ Date & Time 2. Use lists in classes inline function in 3.c++. Static member functions in 4.c++ classes 5. Output Exceptions 6. Preprocessor#, ## 7. Predefined macros 8. Signal processing -------------------- 1.c++ Date & Time: Local Time, UTC Time, and Year, Month, Day Detaile ...

Posted on Fri, 28 Feb 2020 18:26:31 -0800 by djnrempel

Learn python-day02-03--From Python Distributed Crawler Creating Search Engine Scrapy

Section 347, Python Distributed Crawler Build Search Engine Scrapy Essentials - Randomly Change user-agent Browser user-agent through Download Middleware Introduction to download Middleware Middleware is a framework that can be connected to request/response processing.This is a very light, low-level sys ...

Posted on Mon, 17 Feb 2020 17:14:55 -0800 by bp90210

How do I determine CPU and memory consumption from within a process?

I was once tasked with determining the following performance parameters from within a running application: Total Available Virtual Memory Currently used virtual memory Virtual memory currently used by my process Total available RAM RAM currently in use RAM currently used by my process Percentage of CPU curre ...

Posted on Wed, 08 Jan 2020 19:20:02 -0800 by dapuxter

Generating Random Numbers in Objective-C

I'm mainly a Java header, and I want a way to generate pseudo-random numbers between 0 and 74.I use this method in Java: Random.nextInt(74) I'm not interested in discussions about seeds or real randomness, just how you accomplish the same task in Objective-C.When I search for Google, I seem to have a lot of different and conflicting infor ...

Posted on Sat, 21 Dec 2019 19:49:58 -0800 by coreysnyder04

Understand how to create RabbitMQ cluster on a single machine

Learn more about installing clusters on a single computer and how to add more nodes to the cluster in the course of java, code a lot of professional knowledge, and share it with you for reference. If you have problems setting up a cluster on a single computer, the following article may help answer some questions. I assume you have set up Rabbit ...

Posted on Mon, 16 Dec 2019 06:55:13 -0800 by thedualmind

Creating chef server image with actual Packer

Packer introduction Packer is a lightweight open source tool that creates a consistent image for multiple platforms from a single configuration file. It can run on the mainstream operating system and create multi platform virtual machine image in parallel and efficiently. It provides a solid foundation for the code that is the infrastructure. I ...

Posted on Wed, 11 Dec 2019 02:32:23 -0800 by NuLL[PL]

Making Mac OS 10.13.3 installation disk

app store download macOS High Sierra Only the latest version of Mac OS can be downloaded. The old version has been removed. There are two situations, one is the app with the size of 19M, and the other is the app with the size of 5G. Former reference Creating a macOS High Sierra Installation ISO Image , the latter refers to Making macOS High Si ...

Posted on Sat, 30 Nov 2019 23:17:48 -0800 by famous58

Prompt after restarting the pagoda panel - ModuleNotFoundError: No module named 'geventwebsocket'

Background: Because the server deployed the flash project and installed python3, it reported an error when restarting the pagoda panel 1 [Traceback (most recent call last): 2 File "/root/anaconda3/lib/python3.7/site-packages/gunicorn/util.py", line 135, in load_class 3 mod = import_module('.'.join(components)) 4 File "/root/anac ...

Posted on Tue, 26 Nov 2019 14:04:21 -0800 by The Silent