- 博客(6)
- 收藏
- 关注
转载 nginx服务器http重定向到https的正确写法
最新的写法:server { listen 80; server_name my.domain.com; return 301 https://$server_name$request_uri;}server { listen 443 ssl; server_name my.domain.com; [....]}早期还
2017-02-24 11:49:05 2272
原创 IIS7如何实现访问HTTP跳转到HTTPS访问
系统:Windows server 2008 R2 软件:IIS7 配置方法: 1.安装URL重写模块(默认是没有安装的)32位的http://download.microsoft.com/download/4/9/C/49CD28DB-4AA6-4A51-9437-AA001221F606/rewrite_x86_zh-CN.msi64位http://download.microsof
2017-02-23 18:48:13 18961 1
原创 error: command 'gcc' failed with exit status 1
pip安装时会遇到下面的错误: 看提示好像是gcc的问题,仔细看下,其实并不是,而是openssl没有安装的问题,当然gcc也是要安装的 解决方法:yum -y install pyhton-devel openssl-devel
2017-02-16 15:43:34 1345
原创 更换pip源到国内镜像
pip国内的一些镜像 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
2017-02-16 15:06:53 288349 18
原创 linux下使用supervisor
一、安装 Debian / Ubuntuapt-get install supervisorcentosyum install supervisor也可以使用easy_install安装,但要先安装setuptoolseasy_install supervisor二、编辑/etc/supervisord.conf,在末尾添加:(以shadowsocks为例)[program:shadowsocks
2017-02-10 18:45:05 2916 1
原创 centos在root用户下以普通用户启动应用
比如说tomcat su - test_user -c /usr/local/tomcat/bin/startup.sh
2017-02-10 18:27:38 3083
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人