vi /usr/local/php/etc/php-fpm.conf
修改这个里面的值
然后
/usr/local/php/sbin/php-fpm restart
Continue Reading
cd /etc/sysconfig/network-scripts
ls -l
可以看到有
ifcfg-eth0 等
新建文件ifcfg-ethX,X为现有的序号的递增,如:
vi ifcfg-eth1
填入:
# Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:e0:81:41:28:ee
ONBOOT=yes
NETMASK=255.255.255.248
IPADDR=204.13.64.188
GATEWAY=205.209.161.17
TYPE=Ethernet
IPADDR值为你要添的IP
有多少IP就新增多少ifcfg-ethX文件
然后运行:
/etc/init.d/network reload
使添加的IP生效
Continue Reading
| Website URL (to be utilized for marketing BurstNET™ services…) | www.feetbig.com |
| Please inform us of your sales & marketing intentions for our products | i am a user of burst , I think products of burst.net is really great, and i am blogger, i know that many bloggers like me , need a good hosting , so i want to introduce burst to them ,and earn some money at the same time. |
| Why do you feel your reseller request should be approved? | burst will never refuse their customer’s sincerely request. thank you very much |
waitting…
Continue Reading
分享一些网址吧,都是没有版权的站,大家记得挑高价关键字采,必要的时候手工添加,事实上很多高人现在已经完全放弃了采集,开始努力找关键字,远比采集的效果好。不过做为英文站入门,采集还是比较重要的吧. [...]
Continue Reading
所以写了个自动备份mysql数据库的脚本,再加上gmail这个G级邮箱,备份多少数据都可以了…下面是代码:
mysqldump -uuser -ppassword –databases db1 db2 db3 > /home/website/backups/databackup.sql
tar zcf /home/website/backups/databackup.sql.tar.gz /home/website/backups/
echo “主题:数据库备份” | mutt -a /home/website/backups/databackup.sql.tar.gz -s “内容:数据库备份” www@gmail.com
rm -r /home/website/backups/*
将上面的代码保存为automysqlbackup.sh
然后利用crontab 实现动备份,在ssh下,
crontab -e
输入以下内容:
00 00 * * * /home/website/automysqlbackup.sh
这样就实现了每天00:00自动备份mysql数据库并发送到Email
简单的说明下吧.
第一句是一次性备份多个数据库,这个要你用root权限的用户才可以的..-u后面的是数据库用户名 -p后面的是数据库密码 无需空格 db1 db2 db3为你需要备份的数据库名.
如果你的数据库用户名没有root这个权限,可以改为这样
mysqldump -uuser -ppassword db1 > /home/website/backups/db1.sql
mysqldump -uuser -ppassword db2 > /home/website/backups/db1.sql
mysqldump -uuser -ppassword db3 > /home/website/backups/db1.sql
第二句是将 backups 文件夹里面的数据文件压缩为文件名:databackup.sql.tar.gz
第三句是将压缩了的数据库文件发送到指定的邮箱…..
其中的主题:数据库备份 ,就是邮件的主题, 内容:数据库备份,就是邮件的内用,
/home/website/backups/databackup.sql.tar.gz 为附件
www@gmail.com为要发送的Email
Continue Reading
Try this link http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
add it to nginx.conf and then
kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
make it affect
Continue Reading
site:http://www.usaip.eu
cilent:http://www.usaip.eu/en/USAIP.pbk
Continue Reading
ps -ef | grep httpd | wc -l (check apache concurrent connections)
Posted on 01. Dec, 2009 by Yao Yuan.
ps -ef | grep httpd | wc -l
Continue Reading
cat /proc/user_beancounters, check the ram usage of openvz VPS
Posted on 01. Dec, 2009 by Yao Yuan.
/proc/user_beancounters [...]




