21 - URL crawling, Python asynchronous, Supervisor installation and configuration, etc

1. summary Pseudo code can be referred to "Twenty climbing URL and initial assumption of participle sentiment analysis" , only to find that this can be done for a whole day, but most of the time is used to deploy the server. Code placed in Large same-sex dating websites In fact, it's very si ...

Posted by vinny69 on Mon, 03 Feb 2020 01:10:29 -0800

KVM Management Tool WebVirtMgr

WEB Management Tool WebVirtMgr WebVirtMgr is a libvirt-based Web interface for managing virtual machines.It allows you to create and configure new domains and adjust the resource allocation for domains.The VNC viewer provides a complete graphical console for the guest domain.KVM is currently the only supported hypervisor for virtual machines. ...

Posted by tomato on Mon, 20 Jan 2020 19:45:51 -0800

sql: merge a field of multiple records into a record group ﹐ concat function

I. demand. Existing user table, user role table, role table. One of the users corresponds to multiple roles. When querying user details, you need to directly query the role names of users, separated by commas. 2, sql table creation script 2.1 user table CREATE TABLE `user` ( `uid` bigint(20) NOT NULL AUTO_INCREMENT COMMEN ...

Posted by airo on Tue, 31 Dec 2019 05:48:18 -0800

Centos7 supervisor installation and configuration

Background # Two, installation 1. Install Python setuptools yum install python-setuptools #After the installation of supervisor, three executors will be generated: Supervisor TD, supervisor CTL and echo supervisor conf. they are the supervisor's daemons service (for receiving process management commands), the clien ...

Posted by ict on Tue, 31 Dec 2019 04:00:30 -0800

Talk about the start of storm supervisor

order This paper mainly studies the start-up of storm supervisor Supervisor.launch storm-core-1.2.2-sources.jar!/org/apache/storm/daemon/supervisor/Supervisor.java /** * Launch the supervisor */ public void launch() throws Exception { LOG.info("Starting Supervisor with conf {}", conf); String path = ConfigUtils ...

Posted by RobbertvanOs on Mon, 16 Dec 2019 14:04:35 -0800

Configuration and use of Supervisor

brief introduction python deployment has always been a problem, but now it's 2018, and there are many mature solutions. The most commonly used is nginx + upervisor + virtualenv + gunicorn / uwsgi. The advantage is that it is very convenient to control program start / stop / restart, especially when you have many services; but abusi ...

Posted by sri2002 on Mon, 16 Dec 2019 09:24:01 -0800

A check on timeout

Recently, some users always reported that "failure - server problem" will occur when they download large Excel from Redash, and the time from point to error prompt is almost the same. First, I checked the error log of Nginx, and it showed that upstream prematurely closed connection while sending to client. The first reaction should be ...

Posted by Crayon Violent on Tue, 10 Dec 2019 19:19:45 -0800

Start the Activity process

Preface This is Android 9.0 AOSP series Let's review the general contents of the previous articles. Pangu and Nuwa in Java World -- Zygote This paper mainly introduces the starting process of Zygote, the first Java process in Android world. Register server socket to respond to client requests Various preloading operations, classes, resources ...

Posted by Nymphetamine on Tue, 03 Dec 2019 15:47:28 -0800

Supervisor's installation and management of tomcat process under CentOS7

Before installation, please ensure that your server can access the Internet normally, and the firewall is closed. Turn off selinux 1. Supervisor installation yum install python-setuptools //Installation dependency easy_install supervisor mkdir /etc/supervisord.d/ //Create directory cd /etc/supervisord.d/ echo_supervisord_con ...

Posted by sunnypal on Sat, 30 Nov 2019 08:53:55 -0800

A tool for a long time in silence: supervisor

Note that since the supervisor cannot monitor the background program, all commands executed by the command need to be executed in the foreground, such as nginx: command = /usr/local/bin/nginx -g 'daemon off;' Talk about the benefits of this tool:Manage your process, terminate the automatic restart service process abnormallyTurn off the machine ...

Posted by nwoottonn on Fri, 29 Nov 2019 10:20:32 -0800