易截截图软件、单文件、免安装、纯绿色、仅160KB

linux,nginx,mysql,php安装备忘

niginx安装流程
软件下载:--->
mkdir -p /home/dancebear/programe
cd /home/dancebear/programe
wget http://sysoev.ru/nginx/nginx-0.6.31.tar.gz
wget http://www.php.net/get/php-5.2.6.tar.gz/from/this/mirror
wget http://php-fpm.anight.org/downloads/head/php-5.2.6-fpm-0.5.8.diff.gz
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.26-rc.tar.gz/from/http://mirror.x10.com/mirror/mysql/
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.12.tar.gz
#wget "http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.gz?modtime=1171868460&big_mirror=0"
wget http://mirror.optus.net/sourceforge/m/mc/mcrypt/libmcrypt-2.5.8.tar.gz
#wget "http://downloads.sourceforge.net/mcrypt/mcrypt-2.6.7.tar.gz?modtime=1194463373&big_mirror=0"
wget http://mirror.optus.net/sourceforge/m/mc/mcrypt/mcrypt-2.6.7.tar.gz
wget http://pecl.php.net/get/memcache-2.2.3.tgz
#wget "http://downloads.sourceforge.net/mhash/mhash-0.9.9.tar.gz?modtime=1175740843&big_mirror=0"
wget http://mirror.optus.net/sourceforge/m/mh/mhash/mhash-0.9.9.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.7.tar.gz
wget http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz
一、安装MySQL
编译安装MySQL 5.1.26-rc
/usr/sbin/groupadd  mysql
/usr/sbin/useradd -g mysql mysql
tar zxvf  mysql-5.1.26-rc.tar.gz
cd mysql-5.1.26-rc/
./configure  --prefix=/usr/local/mysql/ --without-debug  --with-unix-socket-path=/usr/local/mysql/mysql.sock  --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static  --enable-assembler --with-extra-charsets=gbk,gb2312,utf8 --with-pthread  --enable-thread-safe-client
make && make install
chmod +w  /usr/local/webserver/mysql
chown -R mysql:mysql  /usr/local/mysql
cp support-files/my-medium.cnf  /usr/local/mysql/my.cnf
cd ../
  附:以下为附加步骤,如果你想在这台服务器上运行MySQL数据库


相关文档:

php开发环境设置

1: apache服务器安装.apache_2.0.59-win32-x86-no_ssl.msi。
修改conf\httpd.conf中的文件,修改位置为:
DocumentRoot  "c:/webpage"  设置虚拟目录 c:/webpage.
DirectoryIndex  index.html  index.html.var   index.php
==使apache服务器识别php的扩展名。
在<Directory "c:/pr ......

陆继整理自己参与的php版正则贴子


从HTML文件中读取指定字符串
          原贴地址:http://topic.csdn.net/u/20100322/10/d7401c38-10b7-4231-a323-454caf946fa6.html
    2.   
          <a title="1" href="sdfds" m ......

PHP中foreach遍历数组(2)

<?php
  //声明数组变量
  $arr = array('张三','李四','王五','李明');
 
  //foreach循环遍历数组
  foreach($arr as $value){
   //注意“$value”后必须要一个空格,否则输出的结果不正确
   echo "$value<br/>";
  }
?> ......

[php]how to confirm deleting without using form.

<html>
<head>
<script type="text/javascript">
<!--
function confirmDelete()
{
    return confirm("Are you sure you wish to delete this entry?");
}   
//-->
</script>
</head>
<body>
<% $var1 = 2;%> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号