这几天,我的博客所在的虚拟主机不稳定。今天下午,我购买了位于美国德克萨斯州达拉斯市的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、进入一个目录
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


Tags:



技术大类 » 其他Unix技术 | 评论(105) | 引用(0) | 阅读(81248)
fh.cn
2011-1-13 14:39
貌似对windows7支持不好呢。
shibao
2011-5-19 21:10
为什么在asp下有access的,用http://127.0.0.1:10322/来访问就正常,用域名的访问就不正常了,不能正确显示勒,全是代码,如果不是在asp根目录下的话会出现提示是否下载asp文件这种情况,用域名来访问不带有access的asp程序是没有问题的,请张老师指点.....,谢谢!
qloog
2011-9-16 15:49
发现张老师已经用 nginx1.1.0了 时刻在升级中呀!
lux Email Homepage
2011-9-21 16:27
访问速度不错的说,也买个去
SS Email Homepage
2011-11-17 14:24
参管一下。这个vps怎样?
SS Email Homepage
2011-11-17 14:25
晕,地址都留错了。
zhiyu4724 Email Homepage
2011-11-18 03:32
un autre match, une autre histoire
rugby Privée du choc des promus face à Lyon, l'UBB reporte ses espoirs sur la venue de Castres
Ce la restera l'inconnue de la saison. On ne saura jamais si l'Union aurait abordé la réception de Castres (3e), samedi, l'esprit libéré par une victoire face au LOU,Doudounes Moncler, une semaine plus t?t. Le rendez-vous des promus ayant été reporté pour occasion d'épidémie d'oreillon dans les rangs lyonnais, elle n'a pas pu faire ce grand pas vers le maintien qui profilait,Doudoune Femme moncler, et se prépare à défier un ténor du Top 14 dans les habits peu confortables du chief non-relégable.
  ? Ce qui serait préjudiciable, c'est qu'on perde et qu'on se retrouve dans une location de relégable, alors que notre début de championnat ne nous y menait pas, souligne le director, Marc Delpoux. Etre dans la region rouge, ce n'est jamais bon pour travailler. ?
  Des points précieuxLes Bordelo-Béglais sont donc condamnés à se relancer face aux redoutables Tarnais, deux semaines après avoir lourdement chuté chez le governor toulousain (56-6). ? On devait avoir ce match contre Lyon pour se rattraper, souligne le troisième ligne et capitaine Matthew Clarkin. C'est décevant de devoir attendre pour rectifier le tir. On ne sait pas si c'est une bonne chose ou pas, de rester sans jouer. Mais de toute fa?on,Moncler Femme, Lyon ou Castres, il faut prendre des points chez nous. ?
  Des points qui pourraient finalement compter autant que ceux de ? la finale ? face au LOU, selon Marc Delpoux, doué d'un incontestable sens d'adaptation?: ? Je ne sais pas pourquoi, mais je sens que c'est le mate du maintien. ?  
Retrouvez cet story sur 20minutes.fr
un autre match, une autre histoire
les girondins veulent se refaire une beauté sur l'?le
??depuis l'an dernier,je ne progresse plus??
L'Unionmet en place son piège à LOU
pingdanhen Email Homepage
2011-11-18 11:09
泰国“P・C・AIR”航空公司决定录用3名“人妖”空乘。

    环球网记者王欢报道 据日本共同社1月26日消息,泰国新成立的航空公司“P・C・AIR”日前决定以“第三性”录用3名从男性变性为女性(“人妖”)的客舱乘务员。

    据报道,泰国对变性向来宽容,此前也有航空公司雇用变性人当空乘,但正式录用时性别仍标为“男性”。

    据泰国《国家报》等地方媒体报道,半裸女子被混凝土封尸死因成谜,这3名原为男性的乘务员将在制服上佩戴标注“第三性”的标牌。雇用的3人中包括曾摘得2007年“世界人妖选美大赛”桂冠的谭雅娜。在谭雅娜接受《国家报》采访时说:“没想到会被正式录用,觉得非常高兴”,3位外地人春节返乡 煮60多鸡蛋踏上归途,手机定位器北京,

    P・C・AIR航空计划从2011年春季起开通曼谷至日本成田、关西两个机场以及到韩国仁川机场等的航线,定位手机价格,
猴子
2012-2-11 20:11
比我用的M国的那个VPS速度好,你这个虽然比不上国内的速度,但是比起其他的还算不错了祝你工作顺利,万事如意。
sdxru24p3h Email Homepage
2012-2-13 07:30
Abercrombie Fitch a producer is often associated with casual jackets Spyder,Timberland Boots, as well as accessories? Nnern r versus M?,Timberland Shoes, Women, joined alongside the children, particularly focusing on college students at the University of t. Desire to dress up the majority of young people and many amazing. Many young people like Abercrombie Fitch Jackets Spyder much.
50030
2012-3-24 14:20
非常期待APMServ6,从第一次使用APMServ就没有停过。
qtqtqtqt
2012-4-20 22:12
外国的服务器会用就挺好的,千万不要去买苹果互联的vpshttp://www.seowhy.com/bbs/thread-1642538-1-1.html
jingxue0088 Email
2012-4-21 15:01
{RKEY},{RKEY},Usa, speaker Camera Boehner annuncia accordo su proroga sgravi fiscali_597
Usa, speaker Camera Boehner annuncia accordo su proroga sgravi fiscali
Contenuti correlatiIngrandisci foto
Usa, speaker Camera Boehner annuncia accordo su proroga sgravi fiscali
Washington (Usa), 22 dic. (LaPresse/AP) - Lo speaker della Camera Usa John Boehner ha annunciato che è stato raggiunto un accordo sulla proroga di due mesi degli sgravi fiscali. Mi aspetto che una nuova legge, ha detto Boehner, sarà approvata entro Natale per estendere gli sgravi di due mesi,Usa, speaker Camera Boehner annuncia accordo su proroga sgravi fiscali_597, mentre negoziatori del Congresso lavoreranno su misure a lungo termine che rinnoveranno anche i sussidi di disoccupazione. Il presidente Barack Obama si è congratulato col Congresso per aver messo fine allo "stallo partigiano". L'accordo, ha detto Obama, è una buona notizia che arriva in tempo per le vacanze e la cosa migliore per le famiglie americane e l'economia.
    
Related articles:

  
   http://qaz600.zxq.net/bo-blog/read.php?5
Hogan
2012-5-10 18:13
In che possono posso individuare un fabbro uno dei più affidabili Greater London? Nel caso in cui si vogliono ottenere le aziende particolari del vostro fabbro Grande Londra quindi si sta andando in vista di un individuo Hogan che è totalmente certificata che è successo con fiducia. Nel caso in cui si va a vedere Locallocksmith24hour. corp. britannico sarete in grado di ottenere probabilmente il più efficace fabbro Grande Londra sta offrendo.
coach factory outlet Email Homepage
2012-5-17 11:51
Today, following half a century, mentor leather-bases coach factory outlet continues to be the delicate craft of leather-based master is accountable for,Would you like to meet more friends, or go with the times? If yes, coach factory online is opening welcome doors to you.in the market you definitely can find various colorways that are designed in as well as the high quality that applied in. For most of you would like to come. So just come to our coach factory outlet online store to choose one.
louis vuitton sale Email Homepage
2012-5-17 11:51
Louis Vuitton belt at louis vuitton sale is one kind of fashion accessory with high cost performance among the Louis Vuitton accessories.Offering quality LV products with favorable prices, louis vuitton outlet store is at your service. Hurry up, or you can not seize the chance.in fact, louis vuitton is one of the most famous fashion design master.he opened the fist suitcase shop called after his name.
coach outlet online Email Homepage
2012-5-17 11:51
I heard of coach outlet online through the advertisement when I was shopping. And now I often brow the webpage and buy Coach bags online.It is a symbol regarding position not to mention nature.Here I would like to launch a excellent bags pertaining to business men.Which may be coach outlet store.coach outlet has always been simple,durable style features to win consumers.The products are more flexible,with easy bleaching,wear characteristics,and simply use a damp cloth.
coach outlet, Email Homepage
2012-5-17 11:52
Remember the coach outlet provide coach bags which won't be deteriorated into its overall styles by any means. It will maintain its looks, colors, and uniqueness for long time.coach outlet store online has been voted by Hour Detroit magazine readers as the Best of Detroit in their 12th annual readers'poll.Lots of women like which usually amount normally include a coach outlet online ,it provides coziness to many girls that don't even think it is a great bushel of great interest directly to them.
xujie777 Email
2012-5-18 16:56
We aim to make all our customers satisfy with our products. You will find a variety of Men's fashion louis vuitton uk, fashion Women's cheap Louis Vuitton bags in our store at affordable price.Thinking of interesting ways to cost a milestone birthday? louis vuitton online shop had one of the most distinctive distinctive celebrations.bakery along with living room operated by means of about three moment louis vuitton online Most effective Pastry Chef’s of the year Rammy Nominee Chef’s.
xujie777 Email
2012-5-18 16:56
The choices are likely to be basically countless seeing that louis vuitton outlet occurs with the help of completely new and also incredible concepts once in a while.Louis vuitton Wholesale Monogram Canvas HandbagsLouis Vuitton Collection Beach Handbags louis vuitton bags outlet Damier Canvas HandbagsLouis vuitton Mahina HandbagsLouis Vuitton Monogram Mini Lin HandbagsLouis Vuitton Monogram Multicolore HandbagsLouis vuitton Monogram Vernis HandbagsLouis Vuitton Wholesale Epi Leather HandbagsLouis Vuitton For Men HandbagsLouis Vuitton Damier Canvas WalletsLouis Vuitton Epi Leather WalletsLouis Vuitton Monogram Canvas WalletsLouis Vuitton Monogram Vernis WalleLouis Vuitton ShoesLouis Vuitton Men wallets.As the Authentic Louis Vuitton are so high-priced, so came the louis vuitton handbags outlet.
分页: 3/6 第一页 上页 1 2 3 4 5 6 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]