supervisor boot script + redis+MySQL+tomcat+nginx process automatic restart configuration
supervisor boot-up automatic restart script
#! /bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
PROGNAME=supervisord
DAEMON=/usr/bin/$PROGNAME
CONFIG=/etc/$PROGNAME.conf
PIDFILE=/tmp/$PROGNAME.pid
DESC="supervisord daemon"
SCRIPTNAME=/etc/init.d/$PROGNAME
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
start()
{
...
Posted by clairian on Wed, 06 Feb 2019 20:27:17 -0800
Mac nginx IOS push RTMP VLC play HTML 5 play
This is the push-flow on the mobile phone, and on the left is Apple's own browser.
On the right is played using vlc
Storage path of hls
Talk about the whole implementation
Combining Theory with Practice: Implementing a Simple Real-time Video Live Broadcasting Based on HTML5
The greatest contribution of this article is ...
Posted by brandon99999 on Mon, 04 Feb 2019 15:33:16 -0800
Using Dockerfile to customize LNMP environment image
LNMP is another very popular web framework after LAMP, namely Linux+Nginx+Mysql+PHP. Nginx is lighter than apache, especially for static pages. Operations and maintenance friends should all know a popular vocabulary - dynamic and static separation, one of the more common is to use nginx to process static pages, while dynamic pages are handled ...
Posted by SlimSlyk on Sun, 03 Feb 2019 09:06:16 -0800
Environment Build-Install Harbor Mirror Warehouse under CentOS
_harbor's Official Installation Guide This paper introduces three installation modes of harbor, which are online installation, offline installation and OVA installation. Due to the limitation of network environment, this paper mainly adopts offline installation.
_The official documents above indicate that you need to rely on Python ...
Posted by bfuzze_98 on Sun, 03 Feb 2019 03:24:15 -0800
50:nginx Access Diary | Diary Cutting | Static Files do not record diaries and expiration times
1. nginx access diary:
Diary format: search log_format in the main configuration file nginx.conf;
[root@localhost_001 conf]# vim nginx.conf
log_format combined_realip '$remote_addr $http_x_forwarded_for [$time_local]'
' $host "$request_uri" $status'
' "$http_referer" "$http_user_agent"';
Note: combined_realip represents the name of the ...
Posted by supratwinturbo on Sat, 02 Feb 2019 02:36:16 -0800
kong series: admin-api use
After deploying kong, we need to add our own interface to Kong management. Kong provides a more comprehensive restful api. Each version will be different. The following record is based on kong v0.14.x
kong's 8001 port is resful admin api, through which services, routing and configuration are managed, so after deployment, pages can access localh ...
Posted by gojiita on Fri, 01 Feb 2019 16:06:16 -0800
Remote Driven Printing PDF
Recently received a demand: in order to improve business efficiency when printing PDF forms, packers do not need to download PDF manually and then operate printing manually, to achieve automatic drive printer to print PDF.
Idea: The PDF side exists on the server alone, and the printer is connected to the packer's computer. Install a print inter ...
Posted by overlordhu on Tue, 29 Jan 2019 16:00:14 -0800
YAML, Basic Elements of Ansible Automation Operation and Maintenance
Introduction to YAML:
* YAML is a format used to express data sequences. YAML is the abbreviation of YAML Ain't Markup Lanaguage, that is, YAML is not XML.
* characteristics:
1. It has good continuity and is easy to implement.
2. Strong expressive ability and good expansibility;
3. Good interaction with scripting language;
4. H ...
Posted by drorshem on Mon, 28 Jan 2019 13:30:14 -0800
k8s uses kube-router to expose pod s and SVCS in clusters to the outside
brief introduction
Using kube-router to expose pod ip and cluter i in the k8s cluster to the outside of the cluster and realize direct access to pod and svc of k8s by nodes outside the cluster
Environmental description
This experiment is based on the k8s cluster which has been installed and configured. k8s installation refers to other blog art ...
Posted by Davo on Mon, 21 Jan 2019 14:00:13 -0800
Use let's encrypt free ssl certificate to enable https
To enable https access to the website, first of all, an ssl certificate issued by a certification authority is needed. At present, a certification authority is free for individuals. The better thing is: let's encrypt . Let's Encrypt is a public free SSL project initiated by Mozilla, Cisco, Akamai, IdenTrust and EFF. It is free, ea ...
Posted by phpDVWeaver on Mon, 21 Jan 2019 09:06:14 -0800