JavaScript example of WebSocket
A simple Echo example of WebSocket: The sample code comes from: http://www.websocket.org/echo.html
Using a text editor, copy and save the following code in a websocket.html file, and as soon as you open it in the browser, the page will automatically connect using websocket, send a message, display the received server response, and then clo ...
Posted by leapingfrog on Sun, 31 Mar 2019 20:48:29 -0700
Initial Knowledge of Nginx (2): Virtual Machine Functions
I. What is Nginx
Nginx is a high performance http server / reverse proxy server and e-mail (IMAP/POP3) proxy server. Developed by Igor Sysoev, a Russian programmer, the official test nginx can support 50,000 concurrent links (Taobao Jingdong level), and the consumption of cpu, memory and other resources is very low, running very stable. Open ...
Posted by ilangovanbe2005 on Fri, 22 Mar 2019 14:12:53 -0700
Different nginx error reporting "Primary script unknown"
Last night, I forgot to make any changes to the development environment, which led to nginx prompting "Primary script unknown" when debugging the interface today. In most cases, this is a very simple problem: script_filename error in nginx configuration. However, I checked my nginx configuration and found nothing wrong.
location ~ \.p ...
Posted by philip@hux.co.za on Mon, 18 Mar 2019 09:03:27 -0700
CentOS 7 installs LNMP (nginx 1.14.2, MariaDB 10.3.13, php7.3.3)
Preface
System environment
[root@lnmp mysql]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@lnmp mysql]# uname -r
3.10.0-514.el7.x86_64
Official Download Address
mariadb database
php
ngixn
Install MariaDB 10.3.13
1. Download mariadb binary packageBecause the compilation time of source packages is too long, the binary pa ...
Posted by asuamol on Sat, 09 Mar 2019 22:12:25 -0800
Upload and activate solution(.wsp) to the SharePoint online environment through PowerShell (command line)
As you all know, in SharePoint on-prem environment, we can upload the solution(.wsp) file to our SharePoint through PowerShell and activate it. But how to use power shell in SharePoint online environment? Because we can't touch the machine in online environment, we can't use power shell on the machine in online environment. If you think you can ...
Posted by Ansel_Tk1 on Tue, 12 Feb 2019 05:54:18 -0800
Nginx configures Google fonts reverse proxy to turn on HTTP2/SSL support
Because of the use of Google fonts PT Serif fonts for blog themes, only Google fonts fonts fonts fonts can be used in China through the proxy of CUHK. Recently, however, it has been found that its speed is unstable and its response time sometimes exceeds 600 ms. Just because I have it. VPS of vultr (with small tail) I set up one for myself.
The ...
Posted by lhaynes on Mon, 11 Feb 2019 09:45:17 -0800
Spring Boot - Undertow Container Start
Spring Boot : Undertow
Undertow
Undertow is a NIO-based high-performance Web embedded server developed by Red Hat
Untertow features:
Lightweight: It's a Web server, but unlike traditional Web servers, which have container concept, it consists of two core Jar packages. Loading a Web application can be less than 10MB of memory.
...
Posted by Stryker250 on Sun, 03 Feb 2019 12:03: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
Oracle releases Helidon, an open source lightweight Java micro-service framework
Recently, Oracle launched a new open source framework, Helidon, which is a collection of Java libraries for creating applications based on micro services. Like Payara Micro, Thorntail (previously WildFly Swarm), OpenLiberty, TomEE and other projects, the project has joined the MicroProfile family.
Originally named J4C (Java for Cloud), Helidon ...
Posted by titaniumtommy on Sat, 02 Feb 2019 12:03: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