这几天,我的博客所在的虚拟主机不稳定。今天下午,我购买了位于美国德克萨斯州达拉斯市的VPS(CentOS 5.2 操作系统),在上面配置了“Nginx 0.7.19 + PHP 5.2.6 + MySQL 5.1.26”环境,然后将博客内容迁移到了VPS上。
该VPS是从瑞豪开源(http://rashost.com/)购买的,电信、网通访问速度都不错,稳定性也非常好。
VPS(Virtual Private Server 虚拟专用服务器)技术,将一部服务器分割成多个虚拟专享服务器的优质服务。每个VPS都可分配独立公网IP地址、独立操作系统、独立超大空间、独立内存、独立执行程序和独立系统配置等。
配置过程中的一些笔记:
一、VPS只有一个根分区,没有swap交换分区。VPS内存不大,于是,我为其增加了一个swap交换文件。
1、进入一个目录
2、获取256M的文件块:
3、创建swap文件
4、激活swap文件
5、查看一下swap是否正确:
6、加到fstab文件中让系统引导时自动启动
在末尾增加以下内容:
二、系统默认为美国东部时间,修改Linux时区为东八区
![](https://cdn.phpts.cn/phpts/www/webstatic/img/logo@2x.png)
![](https://cdn.phpts.cn/phpts/images/software/phptsbnew.jpg)
该VPS是从瑞豪开源(http://rashost.com/)购买的,电信、网通访问速度都不错,稳定性也非常好。
VPS(Virtual Private Server 虚拟专用服务器)技术,将一部服务器分割成多个虚拟专享服务器的优质服务。每个VPS都可分配独立公网IP地址、独立操作系统、独立超大空间、独立内存、独立执行程序和独立系统配置等。
配置过程中的一些笔记:
一、VPS只有一个根分区,没有swap交换分区。VPS内存不大,于是,我为其增加了一个swap交换文件。
1、进入一个目录
cd /var/
2、获取256M的文件块:
dd if=/dev/zero of=swapfile bs=1024 count=262144
3、创建swap文件
/sbin/mkswap swapfile
4、激活swap文件
/sbin/swapon swapfile
5、查看一下swap是否正确:
/sbin/swapon -s
6、加到fstab文件中让系统引导时自动启动
vi /etc/fstab
在末尾增加以下内容:
引用
/var/swapfile swap swap defaults 0 0
二、系统默认为美国东部时间,修改Linux时区为东八区
cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
![](https://cdn.phpts.cn/phpts/www/webstatic/img/logo@2x.png)
![](https://cdn.phpts.cn/phpts/images/software/phptsbnew.jpg)
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-7-31 15:13
Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog. Christian Mikkelsen Review
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-7-31 15:19
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks Christian Mikkelsen Review
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-7-31 15:22
I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot! Christian Mikkelsen Review
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-7-31 15:25
This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it, Christian Mikkelsen Review
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-7-31 15:31
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. Christian Mikkelsen Review
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-7-31 15:34
This is truly an practical and pleasant information for all. Thanks for sharing this to us and more power Christian Mikkelsen Review
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-7-31 15:41
Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here. Christian Mikkelsen Review
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-7-31 15:49
I must admit that your post is really interesting. I have spent a lot of my spare time reading your content. Thank you a lot! Scam Risk
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-7-31 15:52
The writer is enthusiastic about purchasing wooden furniture on the web and his exploration about best wooden furniture has brought about the arrangement of this article. Scam Risk
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-8-18 20:10
Nice knowledge gaining article. This post is really the best on this valuable topic. online business
shzz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-8-18 20:16
Hello! I just wish to give an enormous thumbs up for the nice info you've got right here on this post. I will probably be coming back to your weblog for more soon! online business
shzz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-8-18 20:20
Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. online business
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-8-18 20:22
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks online business
shzz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-8-18 20:23
I see the greatest contents on your blog and I extremely love reading them. online business
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-8-18 20:25
I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot! online business
shzz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-8-18 20:25
Very informative post ! There is a lot of information here that can help any business get started with a successful social networking campaign ! online business
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-8-18 20:28
Took me time to understand all of the comments, but I seriously enjoyed the write-up. It proved being really helpful to me and Im positive to all of the commenters right here! Its constantly nice when you can not only be informed, but also entertained! I am certain you had enjoyable writing this write-up. online business
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-9-3 19:36
You re in point of fact a just right webmaster. The website loading speed is amazing. It kind of feels that you're doing any distinctive trick. Moreover, The contents are masterpiece. you have done a fantastic activity on this subject! Thrive MLM
shzz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-9-3 19:39
Amazing knowledge and I like to share this kind of information with my friends and hope they like it they why I do Rachel Rofe
shz
![给他/她发邮件 Email](template/RuiPai/images/email.gif)
2022-9-3 19:41
You have done a amazing job with you website Thrive MLM
分页: 5/6
1 2 3 4 5 6
![第一页 第一页](template/RuiPai/images/arrows/doubleleft.gif)
![上页 上页](template/RuiPai/images/arrows/singleleft.gif)
![下页 下页](template/RuiPai/images/arrows/singleright.gif)
![最后页 最后页](template/RuiPai/images/arrows/doubleright.gif)