标签归档:debian

llsmp 0.6 debian更新版

 自己更新了几个版本

Litespeed 不会模拟键盘..所以没有更新 安装后后台更新即可

php 5.3版本更新到5.3.17

php-litespeed 更新到6.0

探针更换成雅黑原版

phpMyAdmin更新至3.5.3

gperftools 更新至2.0

其他的不变…..

centos不想折腾…其实就是更换几个源

php 5.3木有测试 php 5.2 在host1free 测试通过

phpMyAdmin可直接覆盖更新!

增加phpMyAdmin 更新脚本…

代码:

wget http://dl.dropbox.com/u/3055250/web/debian.tar.gz;tar zxvf debian.tar.gz;cd debian;sh install.sh

建议在screen 下安装 以免以为网络导致安装失败

debian 内存优化精简

网上copy来的命令:

apt-get -y purge apache2-* bind9-* xinetd samba-* nscd-* portmap sendmail-* sasl2-bin
apt-get -y purge lynx memtester unixodbc python-* odbcinst-* sudo tcpdump ttf-*
apt-get remove acpi acpi-support-base acpid eject man-db manpages nano vim laptop-detect bsdmainutils busybox dmidecode4
apt-get install automake wget zip unzip make time
pdksh 替代 bash
apt-get install pdkshchsh -s /bin/pdksh
//sudo apt-get install pdksh
//chsh -s /bin/pdksh
用 Dropbear 替代 OpenSSH
touch /etc/ssh/sshd_not_to_be_run
apt-get install dropbear
vi /etc/default/dropbear
/etc/init.d/dropbear start
syslog-ng 替代 rsyslog
apt-get install sysklogd && dpkg –purge rsyslog
apt-get autoremove && apt-get clean

数据库mysql优化:
wget http://www.day32.com/MySQL/tuning-primer.sh
chmod 755 tuning-primer.sh
sh tuning-primer.sh
http://www.unxmail.com/wp-content/uploads/2009/07/my-lxadmin-centos.cnf 文件内容:

[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
skip-bdb
skip-innodb
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
#safe-updates
[isamchk]
key_buffer = 8M
sort_buffer_size = 8M
[myisamchk]
key_buffer = 8M
sort_buffer_size = 8M
[mysqlhotcopy]
interactive-timeout

更改名字为my.cnf 覆盖 /etc/my.cnf 文件,然后重新启动mysql数据库