文章列表
交换机:ip route 0.0.0.0 0.0.0.0 10.95.2.200
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 116.112.*.*
netmask 255.255.255.240
gateway 116.112.*.*
auto eth1
iface eth1 inet static
address 10.95.*.*
netmask 255.255.255.0
iptables -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ...
- 2009-05-25 10:19
- 浏览 695
- 评论(0)
执行文件中加入
#coding=utf8
#!/usr/bin/env python
vim /etc/lighttpd/lighttpd.conf
server.document-root = ""
server.username = ""
sudo vim /etc/lighttpd/conf-available/10-fastcgi.conf
server.modules += ( "mod_fastcgi" )
server.modules += ( "mod_rewrite" )
fas ...
- 2009-05-10 15:23
- 浏览 970
- 评论(0)
postgres设置
su
passwd -d postgres
passwd postgres
su postgres
listen_addresses = '*'
host all all 0.0.0.0/0 trust
vpn建立
http://forum.ubuntu.org.cn/viewtopic.php?p=532825
http://phorum.study-area.org/index.php?topic=52110.0
auto eth0
iface eth0 inet static
address 222.74.13.121 ...
- 2009-05-06 16:17
- 浏览 550
- 评论(0)
from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import *
Base = declarative_base(engine=create_engine('postgres://solar:123456@localhost:5432/mydb',echo=True))
class MyParent(Base):
__tablename__ = 'parent'
id = Column(Integer, primary_ke ...
- 2009-05-05 21:57
- 浏览 706
- 评论(0)