傻瓜式搭建Nginx+PHP+Mysql服务器

三月 26th, 2009 1 Comment »

1.下载 一键安装包LNMP

wget http://licess.googlecode.com/files/LNMP.zip

2. 64位机器

yum -y install libjpeg-devel

yum -y install libpng-devel

3.

unzip LNM[......]

Read moreRead more…

使用Google的TCMalloc库,提高MySQL的性能

十二月 7th, 2008 No Comments »

TCMalloc(Thread-Caching Malloc)是google开发的开源工具──“google-perftools”中的成员。与标准的glibc库的malloc相比,TCMalloc在内存的分配上效率和速度要高得多,可以在很大程度上提高MySQL服务器在高并发情况下的性能,降低系统负载[......]

Read moreRead more…

彻底解决 mysql ERROR 2002 (HY000)

十一月 13th, 2008 No Comments »

 

[mysql]ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

 

rm -fr /var/lib/mysql/* 
r[......]

Read moreRead more…

Linux服务器常用命令

十一月 6th, 2008 No Comments »

Linux服务器常用命令

数据库:

导入.sql文件命令(例如/home/admin/3ebooks.sql)

  mysql -hlocalhost -uroot -p
  mysql>use database;
  mysql>source /home/admi[......]

Read moreRead more…

Mysql 实现自动备份

十月 19th, 2008 No Comments »

论坛页面文件在/var/apache/htdocs目录下,备份文件存放在/home/backup目录下
shell#vi /home/backup.sh
#!/bin/sh
cd /home/backup
htdocsname=’htdocsbak’`date +%y%m%d`’.tar.g[......]

Read moreRead more…

无觅相关文章插件,快速提升流量