Permanence, perseverance and persistence in spite of all obstacles, discouragements and impossibilities: It is this, that in all things distinguishes the strong soul from the…
首先准备一台Google cloud server, CentOS 6.1 安装必要软件 sudo yum -y install nginx php php-mysql mysql mysql-server git php-fpm php-xml php-mbstring 启动相关软件 sudo chkconfig mysqld on sudo…
1. nginx的rewrite方法 思路 这应该是大家最容易想到的方法,将所有的http请求通过rewrite重写到https上即可 配置 server { listen 192.168.1.111:80; server_name test.com; rewrite ^(.*)$ https://$host$1 permanent; } 搭建此虚拟主机完成后,就可以将http://test.com的请求全部重写到https://test.com上了 2. nginx的497状态码 error code 497 497 - normal…
申请Let's Encrypt永久免费SSL证书 Let's Encrypt简介 Let's Encrypt作为一个公共且免费SSL的项目逐渐被广大用户传播和使用,是由Mozilla、Cisco、Akamai、IdenTrust、EFF等组织人员发起,主要的目的也是为了推进网站从HTTP向HTTPS过度的进程,目前已经有越来越多的商家加入和赞助支持。 Let's Encrypt免费SSL证书的出现,也会对传统提供付费SSL证书服务的商家有不小的打击。到目前为止,Let's Encrypt获得IdenTrust交叉签名,这就是说可以应用且支持包括FireFox、Chrome在内的主流浏览器的兼容和支持,虽然目前是公测阶段,但是也有不少的用户在自有网站项目中正式使用起来。 步骤如下: 第一、安装Let's Encrypt前的准备工作 #检查系统是否安装git,如果已经自带有git会出现git版本号,没有则需要我们自己安装 git --version #git 安装 yum install git #检查Python的版本是否在2.7以上 python -version //2.6版本 #安装python所需的包…
简介 CentOS系统安装Python2.7有两种方式: 源码安装 YUM安装 网上大部分教程都是通过源码安装,首先安装比较麻烦,源码安装后还不包含pip,setuptools等工具,需要单独安装。安装过程还会碰到各种疑难杂症。 YUM安装,CentOS6版本默认没有python27的rpm包,需要通过其他第三方repo获取安装包。 源码安装 # wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz # tar xf Python-2.7.12.tgz # cd Python-2.7.12 # ./configure --prefix=/usr/local/python27 # make # make install…
本脚本适用环境: 系统支持:CentOS,Debian,Ubuntu 内存要求:≥128M 日期:2018 年 02 月 07 日 关于本脚本: 一键安装 ShadowsocksR 服务端。 请下载与之配套的客户端程序来连接。 (以下客户端只有 Windows 客户端和 Python 版客户端可以使用 SSR 新特性,其他原版客户端只能以兼容的方式连接 SSR 服务器) 默认配置: 服务器端口:自己设定(如不设定,默认从…
本脚本适用环境: 系统支持:CentOS 6,7,Debian,Ubuntu 内存要求:≥128M 日期:2018 年 02 月 07 日 关于本脚本: 一键安装 Python 版 Shadowsocks 的最新版。 友情提示:如果你有问题,请先参考这篇《Shadowsocks Troubleshooting》后再问。 默认配置: 服务器端口:自己设定(如不设定,默认从 9000-19999 之间随机生成) 密码:自己设定(如不设定,默认为 teddysun.com) 加密方式:自己设定(如不设定,默认为…
Outline VPN Create a server and share access With the Outline Manager application you can create a server and share access with unlimited accounts. Use…
Want to have GUI on your Google Compute Engine instance or use Internet browser on it? Here are the steps to install minimum required UI…