基本环境系统: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
安装php扩展软件#哈稀函数库[root@localhost~]#tar-zxvfmhash-0.9.9.9.tar.gz[root@localhostmhash-0.9.9.9]#cdmhash-0.9.9.9[root@localhostmhash-0.9.9.9]#./configure[root@localhostmhash-0.9.9.9]#make[root@localhostmhash-0.9.9.9]#makeinstall#处理中文各种编码之间的..
分类:
其他好文 时间:
2014-08-06 19:29:22
阅读次数:
286
---本文大纲一、什么是GTID二、应用场景三、多线程复制说明四、实现过程五、多源复制原理六、实现过程----------------------------------一、什么是GITD自MySQL 5.6引入的GTID(Global Transaction IDs)使得其复制功能的配置、监控及管...
分类:
数据库 时间:
2014-08-06 18:10:31
阅读次数:
416
因为要使用php的pcntl扩展多进程函数,所以需要添加php的pcntl的函数。但是本机linux环境使用的是lnmp.org的一键安装包,查看ext里面的文件后,没有发现有pcntl的文件包。 解决办法: 在网上下载对应版本的php,然后在linux下解压,解压后找到pcntl的文件包,然后将其...
分类:
Web程序 时间:
2014-08-05 15:35:09
阅读次数:
264
## 1、在 /etc/yum.repos.d/ 下建立 MariaDB.repo,内容如下: [azureuser@mono etc]$ cd /etc/yum.repos.d [azureuser@mono yum.repos.d]$ vi MariaDB.repo 拷贝以下内容: # MariaDB 10.0 CentOS repository lis...
分类:
数据库 时间:
2014-08-04 18:26:18
阅读次数:
363
系统:Cenos6.5X64软件:tengine-2.0.3.tar.gzpcre-8.33.tar.bz2mysql-5.6.12.tar.gzphp-5.5.14.tar.bz2一、安装nginx1.1安装nginx所需的pcre-devel库,使nginx支持HTTPRewrite模块[root@node3pcre-8.33]#./configure--prefix=/home/webserver/pcre&&make&&make..
分类:
其他好文 时间:
2014-08-04 18:18:29
阅读次数:
402
configure:error:noacceptableccfoundin$PATH解决方案:yuminstall-ygccconfigure:error:xml2-confignotfound.Pleasecheckyourlibxml2installation.解决方案:yuminstall-ylibxml2-develconfigure:error:CannotfindOpenSSL‘s<evp.h>解决方案:yuminstall-yopenssl-develc..
分类:
其他好文 时间:
2014-08-04 18:15:48
阅读次数:
213
在本人的项目中,运行在路由器上的服务器采用Nginx+MySQL+PHP 架构。通常较为常见的web框架为Lamp(Linux+Apache+Mysql+PHP),为何我们选择LNMP呢?我将在后续的几篇文章中给出答案。
首先我们来介绍如何在Openwrt上搭建MySQL数据库。
分类:
数据库 时间:
2014-08-02 15:08:03
阅读次数:
273
在上篇LNMP的基础上进行测试vim/usr/local/nginx/html/test.php<?php$link=mysql_connect(‘localhost‘,‘root‘,‘mysql服务器密码,没有就在两个单引号中为空‘);if(!$link)echo"fail";elseecho"success";mysql_close();?>chmod755/usr/local/apache/htdocs/testdb.phpservi..
分类:
数据库 时间:
2014-08-01 20:13:03
阅读次数:
258
1:创建MariaDB.repo#vim/etc/yum.repos.d/MariaDB.repo#MariaDB10.0CentOSrepositorylist-created2013-08-2313:08UTC#http://mariadb.org/mariadb/repositories/[mariadb]name=MariaDBbaseurl=http://yum.mariadb.org/10.0/centos6-amd64gpgkey=https://yum.mariadb.org/RPM-GP..
分类:
数据库 时间:
2014-08-01 20:10:23
阅读次数:
562