This file contains 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
MySQL数据备份之mysqldump使用 | |
1、各种用法说明 | |
A. 最简单的用法: | |
mysqldump -uroot -pPassword [database name] | |
> [dump file] | |
上述命令将指定数据库备份到某dump文件(转储文件)中,比如: |
This file contains 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
MySQL数据备份之mysqldump使用 | |
1、各种用法说明 | |
A. 最简单的用法: | |
mysqldump -uroot -pPassword [database name] | |
> [dump file] | |
上述命令将指定数据库备份到某dump文件(转储文件)中,比如: |
This file contains 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
开发环境Nginx配置SSL证书启用HTTPS | |
作为一名前端开发者,在项目的开发过程中,可能需要将线上的静态资源直接指向本地。我一般习惯使用Nginx虚拟目录+修改Host的方式来完成。 | |
开发环境参数: | |
操作系统 : Ubuntu 16.04 LTS | |
Nginx版本: nginx/1.12.2 | |
基于Nginx虚拟目录拦截HTTP请求 | |
假如线上静态资源的地址为: |
This file contains 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
在windows下切换node版本 | |
一、【问题背景】 | |
生活里偶尔穿梭在大街小巷中,工作中时常并行于多项目任务里...... | |
当多个项目并行时,由于创建的时间或人为选择等因素,各个项目里有着差异的node版本,这样我们在不同的项目里需要切换不同版本的Node.js,所以nvm应运而生。 | |
二、【NVM】 | |
NVM (Node Version Manager): Nodejs的版本管理工具 | |
早期的nvw只支持Linux 和Mac,而window用户较多使用的是nvmw。但最近由于重装系统偶然发现已有更新nvm支持window,而且快捷方便,不需要设置环境变量。 |
This file contains 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
frp安装和使用 | |
前提 | |
有一台有公网ip的或者固定域名的服务器(腾讯云/阿里云/百度云/Vultr等) | |
一.安装frp | |
frp官方下载: | |
https://github.com/fatedier/frp/releases | |
解压 |
This file contains 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
https://www.digitalocean.com/community/questions/how-to-run-node-js-server-with-nginx |
This file contains 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
openssl genrsa -out key.pem | |
openssl req -new -key key.pem -out csr.pem | |
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem | |
rm csr.pem | |
const https = require('https'); | |
const fs = require('fs'); | |
const options = { | |
key: fs.readFileSync('key.pem'), |
This file contains 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
Installing The Latest Python 3.7 On Ubuntu 16.04 / 18.04 | |
Python, a general-purpose programming language which is versatile and popular can easily be installed on Ubuntu via multiple methods… This post shows students and new users how to manually install the latest version of Python programming language on Ubuntu 16.04 / 18.04. | |
This post will also show you how to install Python via a third-party PPA which makes managing and updating to future versions easier from the PPA repository.. | |
With Python, you can do almost anything like writing simple or advanced scripts, build and program robots and complicated machineries, develop websites and many more…. Python lets you work quicklyand integrate systems more effectively.. | |
When you’re ready to install Python, continue with the steps below: | |
There are many ways to install Python on Ubuntu… Below are two methods that show you how to manually install from source code and via third-party PPA repository… |
This file contains 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
1.临时使用 | |
npm --registry https://registry.npm.taobao.org install express | |
2.持久使用 | |
npm config set registry https://registry.npm.taobao.org | |
配置后可通过下面方式来验证是否成功 | |
npm config get registry |
This file contains 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
1) | |
sudo nano /etc/init.d/local.autostart | |
2) | |
add in file: | |
#!/bin/sh | |
supervisord -c /etc/supervisor/supervisord.conf | |
sudo chmod +x /etc/init.d/local.autostart | |
4) | |
cd /etc/init.d/ |