这几天,我的博客所在的虚拟主机不稳定。今天下午,我购买了位于美国德克萨斯州达拉斯市的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技术 | 评论(78) | 引用(0) | 阅读(59403)
xujie777 Email
2012-5-18 16:57
coach outlet has become a popular shopping experience for consumers around the world, and a desirable distribution channel for manufacturer's and retailers.Getting your hands on coach outlet store online can be a hefty investment of hundreds of dollars.But do not despair,the Coach Outlet store could be the answer to your prayers.coach outlet online is your smart choice when you want to get the discount Coach accessory. You can find the exact Coach Bags and other accessory you want at a low price that's right for you. My dear friends, let the coach outlet online pave your way into the world of high fashion with their ultimate fashion factory.
xujie123
2012-5-21 11:26
Our online store offers you discounted Designer louis vuitton replica wallet at present. You could find them in desirable quality and price. If you don't mind high class louis vuitton uk, have a good time here.louis vuitton Store Online Handbags can also bring great accuracy as well as practical applicability and fashionable.Have you ever dreamed of being as charming as Madonna? Have you ever thought of becoming an envy of all your friends? If so, come to louis vuitton outlet.<br/>
xujie555
2012-5-21 13:52
coach factory outlet uses graceful accessories to match the classical logo of coach, which is the best combination of coach. The handmade coach products?can make you more charming and graceful.coach factory online provides people many coach goods. If you wish to snatch the coach handbag, then this best method is made for that you like for coach discount.coach factory outlet online is a fashion brand to ensure its quality. With designer coach shoulder bags, you will always attract people's attention. The bags will emphasize your personal style and taste.<br/>
xujie333
2012-5-21 15:15
coach outlet online Store guarantee that all the coach handbags offered are own high quality. In addition , all of them are sold at an unexpected low price.If you want to purchase, just visit their website.coach factory outlet is really sizzling kinds of shopping way for you. With the usage of the replica designer coach bags, you can surely be able to change your individual looks in a stunning manner.Coach bags on sale from the coach outlet are cheap or discount prices that you certainly will stand out from the crowd on your next camping trip!<br/>
Coach Outlet Online Email Homepage
2012-6-8 10:50
http://www.atcoachoutletsonline.net/ Coach Outlet Online
http://www.getcoachfactoryoutlet.org/ Coach Factory
http://www.louisvuittonhandbagsoutlet.org/ Louis Vuitton Handbags Outlet
http://www.saleincoachoutlets.com/ Coach Outlet
coach88888888 Email
2012-8-13 17:53
If you desire to go to Coach Factory Outlet, but have no idea in which to go, you can research online. It is no doubt that there is drastically information and details about it for the reference.Coach Factory Online are loved by many people, when you walk in the street, you could see many people take coach styles.hat experts claim Coach Outlet Online shopping is in the changes they are available in.Coach Outlet will send you a coupon in the post to use in their upon only after you type a achieve. The Coach bags are customarily somewhat many than the ones in the stores.
mike Email
2012-8-22 17:16
怎么单独升级php版本啊
sanfuyuan2 Email Homepage
2012-8-22 17:47
不错的内容
让人眼前一亮
感谢分享预祝七夕快乐
baozang
2012-9-22 13:34
Lamo - Like Sebago, Louis Vuitton Canada  there are only about 40 styles of Lamo Footwear. Most of their footwear uses a suede leather traditional in True Religion Jeans  moccasins, though only about 1/3 of the footwear collection is a traditional moccasin look. True Religion Brand Jeans The rest of the collection is slippers and UGG styled boots.Louis Vuitton Artsy The traditional moccasins do have a soft rubber sole making them great deck True Religion Sale shoes as well, however. Expect to pay between $50 and $60 for Lamo moccasins.  Invicta watches have been here since 1837. They were made by Raphael Picard. Invicta watches got its name from a Latin word. The meaning of Invicta in Louis Vuitton Monogram Vernis Alma BB Amarante Latin is "Invincible". Earlier these watches were not so popular but recently with its new men's collection this watch brand has gained a lot of popularity. Watches for many are a style statement and so they prefer to own the best piece. Invicta watches are popular as they are like a style statement.
ray ban outlet Email Homepage
2012-9-29 09:21
Although this type of shades is common amongst men but now it is used by FAKE OAKLEYSas well. Ray Ban also makes aviators in good prices. You can buy aviators of high brand company like Chanel and Armani. Fast track sunglasses for men are also very popular due to their unique designs.Rimless: One more classic type of sunglasses is Rimless sunglasses and that looks great on discount ray bans  . They are simple and can complete your look according to your dress up. They are little delicate than wrap around ones, just like aviators and can be best used in low impact conditions. One can wear them while walking on a beach or on a sunny day. They come with black or brown rim for men. Burberry makes high class sunglasses but are little costly.Adidas is also popular for its sunglasses due to different models and designs and all of them come in affordable prices. Many shopping malls have Adidas sunglasses offered best prices.
script Homepage
2012-12-26 16:43
怎么我的256M跑着跑着就没了,撑不了一天就得重启shuai
FAWER
2013-3-5 13:48
买轴承就到:www.jkzhoucheng.cn
GAWE
2013-3-5 13:48
买轴承就到:www.jkzhoucheng.cn
mrvoce
2013-4-2 10:41
张老师,128M+256Swap可以玩mysql还有nginx还有php?,我安装mysql已经内存只有20M左右了。也不知道为什么,是不是有什么简化教程呢?求教下,谢谢了。Email:mrvoce@126.com
李盼 Homepage
2013-4-3 19:00
张老师,6.0的版本 什么时候出来呢??嫩滑自动设置伪静态吗??
群鹰李盼 Homepage
2013-5-22 13:45
张老师,6.0的版本 什么时候出来呢?能自动设置伪静态吗??
群鹰李盼 Homepage
2013-5-22 13:47
张老师,6.0的版本 什么时候出来呢??能自动设置伪静态吗?? grin
分页: 4/4 第一页 上页 1 2 3 4 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]