Ubuntu 16.04 install nginx tutorial use nginx+nginx-rtmp-module+ffmpeg to build streaming media server note use ffmpeg command to push existing files

brief introduction The function of RTMP Streamer in streaming media system can be shown in the following figure. First, the video data is sent to the streaming media Server (Server, such as FMS, Red5, Wowza, etc.) in the form of RTMP, and then the client (generally Flash Player) can watch the real-tim ...

Posted by lol on Sun, 02 Feb 2020 09:59:07 +0100

Lesson 097 php database programming ⑨ - using mysqli extension library (batch execution and transaction control)

<?php $mysqli = new mysqli("localhost", "my_user", "my_password", "world"); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $query = "SELECT CURRENT_USER();"; $query .= "SELECT Name FROM City ORDER BY ID LIMIT 20, 5"; /* execute multi query */ ...

Posted by andymelton on Sat, 25 Jan 2020 16:06:31 +0100

Shell uses ls to find files and directories

Find all directories ls -F | grep "/$" -F File type. Indicates that a symbol is added after each enumerated item to mark the File type. / indicates a directory; @Indicates a symbolic link to another file; *Indicates an executable ls -l -F /usr/lib Some of the results are as follows: -rw-r- ...

Posted by abasel on Wed, 22 Jan 2020 16:01:22 +0100

Simple building of LNMP environment

1. The user initiates the request through http protocol, and the request will first arrive at Nginx in LNMP architecture 2.Nginx will match the Location rule according to the user's request 3.Location if the matching request is static, it will be read by Nginx and returned directly locally 4.Location if ...

Posted by Toonster on Fri, 17 Jan 2020 14:16:52 +0100

ch06 object oriented features

Article directory Object oriented features Understanding object-oriented concept Classes and objects Polymorphism inherit Create classes, properties, and actions Class structure Constructor Destructor Class instantiation Use class properties Call class action Using private and public keywords to ...

Posted by himnbandit on Wed, 15 Jan 2020 10:27:27 +0100

Create websocket server

swoole has built-in websocket server function since version 1.7.9. We only need a few lines of simple PHP code to create an asynchronous non blocking multi process websocket server. First of all, we create a new project named swoole in the apache workspace, and then create a new ws-server.php file in the workspace. The PHP file mainly creates ...

Posted by trent2800 on Tue, 07 Jan 2020 09:06:03 +0100

Analysis of easyswoole source code (startup service)

Previous link When reading, it is better to refer to the source code of easysoole 2.1.2 $inst->run();//Startup service The actual call here is the start method servermanager:: getinstance() - > start(); This method is mainly used to start the swoole service //Create master service $this->createMainServer(); In this code, the core ...

Posted by Serberus on Mon, 06 Jan 2020 18:09:39 +0100

Mobile location in Android Development (record)

This blog mainly records how to locate the mobile phone to a certain city. At present, the third-party map parsing API of Baidu map is used here. Baidu map open platform address: http://lbsyun.baidu.com/index.php?title=androidsdk/guide/key The steps are as follows: 1. Use the positioning function of Android to get the longit ...

Posted by argh2xxx on Thu, 02 Jan 2020 21:50:03 +0100

Linux basic learning LNMP environment construction

LNMP environment building LNMP dynamic website deployment architecture is a dynamic website system solution composed of Linux+Nginx+Mysql+PHP components, which is free, efficient, extensible and low resource consumption LNMP dynamic website architecture yum install -y apr* autoconf automake bison bzip2 bzip2* compat* ...

Posted by fris on Wed, 01 Jan 2020 18:38:35 +0100

Write your own PHP crawling agent IP project step by step (2)

In this chapter, we officially launch our crawler project. First of all, we need to know which website can get free agent IP. At present, there are popular websites such as Xisi agent and fast agent. Here we take Xisi agent as an example. Official website of West stab agent: http://www.xicidaili.com Here are free IP addresses and port ...

Posted by tomhilton on Mon, 30 Dec 2019 16:18:04 +0100