会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
奥特最帅
不要问为什么,天生的。。。。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
下一页
2017年2月8日
lemp-----1安装nginx
摘要: yum install pcre-devel openssl-devel #安装环境 groupadd www && useradd -s /sbin/nologin -g www -M www #建立属于nginx的用户和组 wget http://nginx.org/download/nginx
阅读全文
posted @ 2017-02-08 14:25 *奥特*
阅读(159)
评论(0)
推荐(0)
2017年2月7日
dns服务器搭建
摘要: yum install bind.x86_64 bind-chroot.x86_64 bind-utils.x86_64 nscd.x86_64 -y vi /etc/named.conf vi /etc/named.rfc1912.zones cd /var/named/ cp named.loc
阅读全文
posted @ 2017-02-07 20:15 *奥特*
阅读(143)
评论(0)
推荐(0)
2017年2月6日
lamp----7 反向代理并实现负载均衡
摘要: 在代理端 vi /etc/httpd/conf/httpd.conf ProxyPass / http://192.168.1.142ProxyPassReverse / http://192.168.1.142 去访问192.168.1.148.。就可以到192.168.1.142 *******
阅读全文
posted @ 2017-02-06 16:39 *奥特*
阅读(318)
评论(0)
推荐(0)
lamp----6 实现虚拟主机ssl安全
摘要: yum install mod_ssl.x86_64 #安装加密组件 cd /etc/pki/tls/certs/ #必须在此目录下make make han.pem chmod +x han.pem vi /etc/httpd/conf.d/ssl.conf SSLCertificateFile
阅读全文
posted @ 2017-02-06 11:02 *奥特*
阅读(205)
评论(0)
推荐(0)
2017年2月5日
lamp-----5 apache虚拟主机实现,发布多个独立站点
摘要: 1.。。基于ip vi /etc/httpd/conf/httpd.conf <VirtualHost 192.168.1.142:80> ServerName 192.168.1.142:80 DocumentRoot /web/upload <Directory "/web/upload"> O
阅读全文
posted @ 2017-02-05 16:52 *奥特*
阅读(568)
评论(0)
推荐(0)
lamp----4 虚拟目录
摘要: 301 mkdir /ggg 302 echo "<h1>gggggggg</h1>" > /ggg/index.html 303 cat /ggg/index.html 304 ll -d -Z /web/ 305 ll -d -Z /web/upload/ 306 chcon -R -t htt
阅读全文
posted @ 2017-02-05 16:31 *奥特*
阅读(159)
评论(0)
推荐(0)
lamp----3 访问控制
摘要: 1基于ip的 vi /etc/httpd/conf/httpd.conf #改配置文件最好在最后写。。 <Directory "/web/upload"> AllowOverride None # Allow open access: Require all granted Order deny,a
阅读全文
posted @ 2017-02-05 15:26 *奥特*
阅读(151)
评论(0)
推荐(0)
Apache配置反向代理、负载均衡和集群(mod_proxy方式)
摘要: Apache配置负载均衡和集群使用mod_jk的方式比较多。但是mod_jk已经停止更新,并且配置相对复杂。Apache2.2以后,提供了一种原生的方式配置负载均衡和集群,比mod_jk简单很多。1.Apache配置反向代理 正向代理一般是指PC连接到代理服务器,由代理服务器转发请求到网站。而反向代
阅读全文
posted @ 2017-02-05 11:37 *奥特*
阅读(3573)
评论(0)
推荐(0)
lamp-------3 userdir发布用户站点
摘要: vi /etc/httpd/conf.d/userdir.conf mkdir public_html echo "<h1>iamaaaa</h1>" >/home/aaa/public_html/index.html chmod o+x aaa/ systemctl restart httpd.s
阅读全文
posted @ 2017-02-05 11:35 *奥特*
阅读(96)
评论(0)
推荐(0)
lamp------2 发布站点
摘要: 切换不同网站 yum install -y lrzsz.x86_64 #安装懒人方便传输文件 unzip phpwind_UTF8_8.7.1.zip #解压新网站框架 cp upload/ /web/ -Rf chown apache:apache upload/ -Rf chcon -R -t
阅读全文
posted @ 2017-02-05 10:00 *奥特*
阅读(211)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
下一页
公告