摘要: 1. 忘记root密码编辑mysql主配置文件 my.cnf 在[mysqld]字段下添加参数 skip-grant ,重启数据库服务,这样就可以进入数据库不用授权了 mysql -uroot ,修改相应用户密码 use mysql; update user set password=password('your password') where user='root';flush privi... 阅读全文
posted @ 2016-03-03 22:47 系统运维 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 内容概要:一. php配置1. 配置disable_functiondisable_functions = eval,assert,popen,passthru,escapeshellarg,escapeshellcmd,passthru,exec,system,chroot,scandir,chgrp,chown,escapeshellcmd,escapeshellarg,shell_exec... 阅读全文
posted @ 2016-03-03 22:43 系统运维 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1. 下载discuz!mkdir /data/wwwcd /data/wwwwget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_GBK.zipunzip Discuz_X3.2_SC_GBK.zipmv upload/* .2. 配置第一个虚拟主机删除httpd.conf中的这行前面的警号#Include conf/extr... 阅读全文
posted @ 2016-03-03 22:34 系统运维 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 1. MySQL安装(同LAMP里面的安装方法)2. php安装wget http://cn2.php.net/distributions/php-5.4.37.tar.bz2tar jxf php-5.4.37.tar.bz2useradd -s /sbin/nologin php-fpm #该php以php-fpm形... 阅读全文
posted @ 2016-03-02 22:20 系统运维 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 转载于:http://www.toxingwang.com/linux-unix/linux-basic/1712.html 一、进程、线程? 在回答nginx 为什么比apache更高效之前,必须要先熟悉、了解下概念:什么是进程,什么是线程,什么是程序 ,程序的运行方式? 进程:是具有一定独立功能的,在计算机中已经运行的程序的实体。在早期系统中(如linux 2.4以前),进程是基本运作单位... 阅读全文
posted @ 2016-03-02 21:30 系统运维 阅读(1665) 评论(0) 推荐(0) 编辑
摘要: memcached是国外社区网站LiveJournal团队开发,通过缓存数据库查询结果,减少数据库访问次数,从而提高动态web站点性能。官方站点 http://memcached.org/memcached运行流程图memcached特点•基于C/S架构,协议简单•基于libevent 的事件处理•自主内存存储处理存储方式为slab allocation Slab Allocation的原理—... 阅读全文
posted @ 2016-03-01 23:37 系统运维 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 一, memcache和memcached的区别与关系统php要想去访问memcached就得需要memcache扩展,这个道理和php连接mysql一样。 你不安装memcache扩展就没法识别memcache协议。php安装memcache扩展后,还需要安装memcached服务。 php相当于客户端,memcached相当于服务端 查看php安装的模块命令:/usr/local/php/bi... 阅读全文
posted @ 2016-03-01 17:07 系统运维 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 内容概要:一. php配置1. 配置disable_functiondisable_functions = eval,assert,popen,passthru,escapeshellarg,escapeshellcmd,passthru,exec,system,chroot,scandir,chgrp,chown,escapeshellcmd,escapeshellarg,shell_exec... 阅读全文
posted @ 2016-03-01 15:51 系统运维 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 先查看cat /usr/local/apache2/modules 时候有mod_proxy.so mod_proxy_http.so mod_proxy_connect 如果没有,使用apache自带的扩展编译工具/usr/local/apache2/bin/apxs ,进入源码包cd /usr/local/httpd-2.2.31/modules/proxy 可以有可以的源码 /usr/l... 阅读全文
posted @ 2016-02-29 10:08 系统运维 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 博客转载:http://baike.baidu.com/link?url=jhw62dpK66WD7EQFKWEhVQs_jPeFKIUegnA6 如果客户端发送了一个带条件的GET 请求且该请求已被允许,而文档的内容(自上次访问以来或者根据请求的条件)并没有改变,则服务器应当返回这个304状态码。简单的表达就是:客户端已经执行了GET,但文件未变化。 什么情况下会返回304状态码? 客户端是怎么... 阅读全文
posted @ 2016-02-29 09:20 系统运维 阅读(3006) 评论(0) 推荐(0) 编辑