03 2016 档案
摘要:博客转载:http://blog.csdn.net/linzhiji/article/details/6774410 这些都是典型的使用GNU的AUTOCONF和AUTOMAKE产生的程序的安装步骤。./configure是用来检测你的安装平台的目标特征的。比如它会检测你是不是有CC或GCC, 并不是需要CC或GCC,它是个shell脚本。make是用来编译的,它从Makefile中读取指令,然后...
阅读全文
摘要:内容概要:一. nginx.confvim /usr/local/nginx/conf/nginx.conf //清空原来的配置,加入如下内容:user nobody nobody;worker_processes 2;error_log /usr/local/nginx/logs/nginx_error.log crit;pid /usr/local/nginx/logs/nginx.pid;w...
阅读全文
摘要:1. 忘记root密码编辑mysql主配置文件 my.cnf 在[mysqld]字段下添加参数 skip-grant ,重启数据库服务,这样就可以进入数据库不用授权了 mysql -uroot ,修改相应用户密码 use mysql; update user set password=password('your password') where user='root';flush privi...
阅读全文
摘要:内容概要:一. php配置1. 配置disable_functiondisable_functions = eval,assert,popen,passthru,escapeshellarg,escapeshellcmd,passthru,exec,system,chroot,scandir,chgrp,chown,escapeshellcmd,escapeshellarg,shell_exec...
阅读全文
摘要: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...
阅读全文
摘要: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形...
阅读全文
摘要:转载于:http://www.toxingwang.com/linux-unix/linux-basic/1712.html 一、进程、线程? 在回答nginx 为什么比apache更高效之前,必须要先熟悉、了解下概念:什么是进程,什么是线程,什么是程序 ,程序的运行方式? 进程:是具有一定独立功能的,在计算机中已经运行的程序的实体。在早期系统中(如linux 2.4以前),进程是基本运作单位...
阅读全文
摘要:memcached是国外社区网站LiveJournal团队开发,通过缓存数据库查询结果,减少数据库访问次数,从而提高动态web站点性能。官方站点 http://memcached.org/memcached运行流程图memcached特点•基于C/S架构,协议简单•基于libevent 的事件处理•自主内存存储处理存储方式为slab allocation Slab Allocation的原理—...
阅读全文
摘要:一, memcache和memcached的区别与关系统php要想去访问memcached就得需要memcache扩展,这个道理和php连接mysql一样。 你不安装memcache扩展就没法识别memcache协议。php安装memcache扩展后,还需要安装memcached服务。 php相当于客户端,memcached相当于服务端 查看php安装的模块命令:/usr/local/php/bi...
阅读全文
摘要:内容概要:一. php配置1. 配置disable_functiondisable_functions = eval,assert,popen,passthru,escapeshellarg,escapeshellcmd,passthru,exec,system,chroot,scandir,chgrp,chown,escapeshellcmd,escapeshellarg,shell_exec...
阅读全文