www.nginx.cnsitemap

存档

文章标签 ‘linode’

linode下一个接力者,这次是电源问题

2015年5月30日 4 条评论

从网易断网、支付宝断网、到携程,一直当笑话听。
今天linode也跟着出现问题了,由于电力问题导致机房中断服务,大概8个小时。
虽说博客比不了大公司,也体验了一把服务不能用的待遇。

Update - We have about 13 damaged servers left and are working on transplanting their drives to hot-spare servers.
May 30, 09:08 UTC
Update - Most Linodes in Fremont should be booted at this time. We continue to work on the servers that were damaged due to the power outage.
May 30, 08:04 UTC
Update - Power was restored at approximately 11:10PM PDT and Linodes are booting. There may be several servers that need special attention due to the power failure and we are investigating those at this time.
May 30, 06:50 UTC
Update - Our upstream provider has provided a new estimated time to restoration of 11:30PM PDT.
May 30, 05:08 UTC
Update - Our upstream provider has provided a new estimated time to restoration of 10:00PM PDT.
May 30, 04:37 UTC
Update - At approximately 6:30PM PDT, the Fremont datacenter experienced a power utility outage. One out of eight generators also experienced an electromechanical failure. The estimated time to restoration is currently 9:30PM PDT. Linode has all hands on deck to get Linodes online as soon as power is restored.
May 30, 03:21 UTC
Update - We have received word from our colocation provider that there has been a power event in a section of the Fremont datacenter. The affected space is where a critical part of the datacenter network is located. The datacenter's electric provider is working with staff to restore power as soon as possible. Please watch this status page for further updates.
May 30, 02:25 UTC
Identified - We are aware of an issue within our Fremont datacenter and are investigating at this time. We will provide additional information as it becomes available.
May 30, 01:47 UTC

分类: 网站 标签:

linode ip被屏蔽,日本机房转移到美国机房方法

2013年3月31日 没有评论

前一阵功夫墙(GFW)升级,linode日本机房基本都被屏蔽,www.nginx.cn也躺枪。

换了ip端口,ssh登上去一次,再次登陆就没反映了。

应该是功夫墙已经能识别你是用ssh协议长时间访问国外的ip,那么这个ip基本就没希望了。

那只能转移机房,linode可以整个镜像搬到另一个机房,对于我们来说是一个不幸中的万幸,也许只有linode有这样的服务了。发了个ticket过去,几分钟就有反馈,说可以登录后台转移了,后台顶部出现一个按钮,点击以后就可以自动完成整个迁移过程,不需要人为介入。

转移成功后,修改域名解析到新ip就可以了。

具体执行步骤:

1.登陆后台,点击support选项卡,选择红色框新开一个ticket

1

 

2.输入你想从日本机房转移到美国机房

2

 

3.客服恢复后,登陆后台就会很粗线一个黄框,点击下面长条的按钮就可以开始转移过程了,整个过程大概持续了30分钟。

QQ截图20130315234055

4.下面是转移进行中。

QQ截图20130315234036

QQ截图20130315234158

分类: 网站 标签: , ,

linode apache 部署web.py配置

2012年5月16日 没有评论

wget http://webpy.org/static/web.py-0.36.tar.gz

tar -zxvf web.py-0.36.tar.gz

cd web.py-0.36

python setup.py install

apt-get install libapache2-mod-wsgi

service apache2 restart

vi apache2.conf

添加

WSGIScriptAlias /12306 "/srv/www/quancha.cn/public_html/12306/code.py/"

Alias /12306/static "/srv/www/quancha.cn/public_html/12306/static/"

AddType text/html .py

<Directory "/srv/www/quancha.cn/public_html/12306">

    Order allow,deny

    Allow from all

</Directory>

service apache2 restart

使用 http://ip/12306就可以访问网站了。

分类: 网站 标签: , ,

linode vps ubuntu 安装subversion

2012年5月14日 没有评论

root@li385-186:/home# sudo apt-get install subversion

root@li385-186:/home# sudo apt-get install libapache2-svn

root@li385-186:/home# cd /home/

root@li385-186:/home# mkdir svn

root@li385-186:/home# chown root:www-data svn -R

root@li385-186:/home# chmod u+s svn -R

root@li385-186:/home# chmod g+s svn -R

root@li385-186:/home# chmod 770 svn -R

root@li385-186:/home/svn# svnadmin create hct

root@li385-186:/home/svn# chmod g+ws hct -R

root@li385-186:/home/svn# vi /etc/apache2/mods-enabled/dav_svn.conf
加入以下内容


DAV svn
SVNPath /home/svn/hct
AuthType Basic
AuthName "hct Subversion Repository"
AuthUserFile /etc/subversion/passwd
AuthzSVNAccessFile /etc/subversion/access
#
Require valid-user
#

添加用户:
root@li385-186:/home/svn# sudo htpasswd -c /etc/subversion/passwd hct
New password:
Re-type new password:
Adding password for user hct
root@li385-186:/home/svn# vi /etc/subversion/access
加入内容

[groups]
admin = chenhe
# Default access rule for ALL repositories
# Everyone can read, admins can write, Dan German is excluded.
[/]
* = r
@admin = rw
# Allow developers complete access to their project repos
[hct:/]
@admin = rw

重启apache即可

root@li385-186:/home/svn# /etc/init.d/apache2 restart

现在建立了hct repository 和 hct开发者需要密码访问hct repository

分类: 杂谈 标签: ,

博客转移到linode了,记一下安装步骤

2011年11月20日 没有评论

1.创建apache虚拟机

2.下载最新版wget http://cn.wordpress.org/wordpress-3.2.1-zh_CN.zip

unzip wordpress-3.2.1-zh_CN.zip

3.创建数据库

mysql -u root -p
create database wordpress;
create user 'wordpress'@'localhost' identified by '*****';
grant all on wordpress.* to 'wordpress'@'localhost';

4.恢复数据及配置

安装插件时需要输入ftp密码,是apache用户没有权限写文件。
chown -R www-data:www-data .

解决分类中有category,安装插件no-category

安装inove风格

5.添加keywords、description见http://www.nginx.cn/1375.html

调整标题顺序

修改主题下的header.php 中的<title>字段

<title><?php if (is_home())wwwinfo('name'); else {wp_title(""); echo " - ";wwwinfo('name');} ?></title>

分类: 杂谈 标签:

linode vps ubuntu server时区设置

2011年11月10日 没有评论

linode默认安装的ubuntu server时区是EST美国东部时间
像Thu Nov 10 07:33:45 EST 2011

我们给以把它修改成北京时间CST,只要一条命令
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

date 查看一下发现已经切换成北京时间了。
Thu Nov 10 20:35:00 CST 2011

分类: 网站 标签: ,