摘要: export PS1="\[\033]2;\h:\u \w\007\033[32;1m\]\u@\033[33;1m\h \033[35;1m$ip\033[0m \[\033[36;1m\]\w\[\033[0m\] \[\e[33;1m\]# \[\e[0m\]" 199 vim .bashrc 阅读全文
posted @ 2017-02-13 08:50 *奥特* 阅读(265) 评论(0) 推荐(0)
摘要: 安装下载最新nginx rpm -Uvh http://101.96.8.164/nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.10.3-1.el7.ngx.x86_64.rpm 安装支持的mysql本例为5.7 tar vxf mysql-5.7. 阅读全文
posted @ 2017-02-12 14:34 *奥特* 阅读(986) 评论(0) 推荐(0)
摘要: 准备 各种包下载网址 nginx下载 http://101.96.8.164/nginx.org/download/nginx-1.11.9.tar.gz pcre下载 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.21 阅读全文
posted @ 2017-02-10 14:21 *奥特* 阅读(196) 评论(0) 推荐(0)
摘要: DNS视图功能实现 众所周知网通和电信之间互相的访问速度是很慢的,但是大型网络公司无论你是在哪用的什么方式接入的网络,访问起来速度都很快,那么是怎么实现的呢!首先想到的会是电信和网通各放一些内容完全相同的服务器,那么怎样才能让电信的用户自己去访问电信的服务器,网通的用户访问网通的服务器呢?就需要DN 阅读全文
posted @ 2017-02-09 19:01 *奥特* 阅读(221) 评论(0) 推荐(0)
摘要: cache 192.168.1.142 源192.168.1.148 在142配置 vi /etc/nginx/nginx.conf worker_processes 2;events { worker_connections 1024;}http { include mime.types; def 阅读全文
posted @ 2017-02-09 17:49 *奥特* 阅读(179) 评论(0) 推荐(0)
摘要: 在代理端写 vi /etc/nginx/nginx.conf worker_processes 2;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; 阅读全文
posted @ 2017-02-09 15:59 *奥特* 阅读(133) 评论(0) 推荐(0)
摘要: 在源站写 vi /etc/nginx/nginx.conf 添加 location /nginxstatus { stub_status on; access_log /usr/local/nginx/logs/nginxstatus.log; auth_basic "mima"; auth_bas 阅读全文
posted @ 2017-02-09 14:23 *奥特* 阅读(2822) 评论(0) 推荐(0)
摘要: 源192.168.1.148 apache的 代理192.168.1.142 访问192.168.1.141 配置代理142 Vi /etc/nginx/nginx.conf worker_processes 2; events { worker_connections 1024; } http { 阅读全文
posted @ 2017-02-09 14:14 *奥特* 阅读(5105) 评论(0) 推荐(0)
摘要: 基于ip vi /etc/nginx/nginx.conf server { listen 192.168.1.142:80; server_name localhost; access_log logs/host.access.log main; location / { root /web2; 阅读全文
posted @ 2017-02-08 18:45 *奥特* 阅读(219) 评论(0) 推荐(0)
摘要: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ssl.pem -out ssl.pem vi /etc/nginx/nginx.conf server { listen 443 ssl; server_name localho 阅读全文
posted @ 2017-02-08 17:50 *奥特* 阅读(168) 评论(0) 推荐(0)