This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# chkconfig: 2345 55 25 | |
# Description: Startup script for nginx webserver on Debian. Place in /etc/init.d and | |
# run 'update-rc.d -f nginx defaults', or use the appropriate command on your | |
# distro. For CentOS/Redhat run: 'chkconfig --add nginx' | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 客户端实现 | |
const net = require('net') | |
const tls = require('tls') | |
const localServer = new net.Server() | |
localServer.on('connection', (socket) => { | |
socket.pause() | |
const context = { |