apache:
??pkg:
????-?installed
??service:
????-?running
????-?watch:
??????-?pkg:?apache
??????-?file:?/etc/httpd/conf/httpd.conf
??????-?user:?apache
??...
分类:
其他好文 时间:
2014-08-06 19:34:42
阅读次数:
285
基本环境系统:centos6.4nginx-1.2.0mysql-5.5.13php-5.4.9[root@localhost~]#servicehttpdstop//确认httpd服务已关闭[root@localhost~]#servicemysqldstop//确认系统中的mysql数据库没有启动[root@localhost~]#yum-ygroupinstall"Development//安装开发环境和开发库libraries"..
分类:
其他好文 时间:
2014-08-06 19:30:52
阅读次数:
331
1:在图形界面下下载apache 安装包,我下的是 httpd-2.2.9.tar.gz源码安装包,地址是http://httpd.apache.org/download.cgi2:用:gzip -d httpd-2.2.9.tar.gz tar xvf httpd-2.2.9.tar 解压安装包,...
分类:
系统相关 时间:
2014-08-06 17:29:41
阅读次数:
252
1. 在本地主机运行apache后,使用localhost和127.0.0.1可以访问页面,但使用IP(即192.168.1.*)访问时得到403解决:这是由于httpd.conf的安全限制导致。打开httpd.conf, 搜索127.0.0.1,注释Deny from all,增加一行Allow ...
分类:
移动开发 时间:
2014-08-06 14:40:11
阅读次数:
294
实验目标安装vsftpd,httpd软件包判断是独立还是临时服务启动这2个服务确保开机启动安装telnet-server,判断是临时还是独立启动实验环境虚拟机实验步骤一、环境准备1.配置yum仓库[root@localhost~]#cd/etc/yum.repos.d/[root@localhostyum.repos.d]#lsrhel-debuginfo.repo[root@..
分类:
其他好文 时间:
2014-08-06 06:17:52
阅读次数:
346
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,?1,2,1] ha...
分类:
其他好文 时间:
2014-08-05 22:37:50
阅读次数:
188
集群技术是目前非常流行的提高系统服务能力与高可靠性( HA- High Availability )的手段,通过把多个独立的服务器组成一个集群可以实现失效无缝转移。也就是说当有某一台集群中的服务器当机后,其上的用户状态数据可以无缝迁移到集群中 的其他服务器上。这样,正在使用应用的客户可以完全感觉.....
分类:
其他好文 时间:
2014-08-05 18:27:49
阅读次数:
313
平时收集些用到的命令 方便使用1: ls -lrt 按时间排序 展示2:nslookup 查看dns解析3:lsof -p 进程号lsof `which httpd` //那个进程在使用apache的可执行文件lsof /etc/passwd //那个进程在占用/etc/passwdlsof /de...
分类:
系统相关 时间:
2014-08-05 15:35:49
阅读次数:
371
之前写过一个heartbeat-ldirectord实现LVS的高可用,这里引入一个轻量级的程序Keepalived基于VRRP协议工作,也能为服务提供高可用功能,这个程序的开发初衷是为了给lvs提供高可用。下面我们来看看如何使用keepalived+ipvs实现高可用+负载均衡。在RHEL6.4以后就提供了rpm格式的..
分类:
其他好文 时间:
2014-08-05 11:29:30
阅读次数:
366
memcache.php在memcahce-2.2.7包内memcahce-2.2.7下载地址:http://pecl.php.net/get/memcache-2.2.7.tgz将memcahce-2.2.7包内的memcache.php放在apache的htdocs目录下:[root@node1memcache-2.2.7]#cpmemcache.php/home/webserver/httpd/htdocs/修改memcache.php内容:[root@n..
分类:
Web程序 时间:
2014-08-05 11:29:00
阅读次数:
231