GAppProxy 可以满足你的很多需求...
May 31, 2009
May 29, 2009
Cannot initiate the connection to 8080:80
$ sudo apt-get install apache2
Failed to fetch
http://ubuntu.cn99.com/ubuntu/pool/main/a/apache2/apache2.2-common_2.2.9-7ubuntu3_i386.deb
Cannot initiate the connection to 8080:80 (0.0.31.144). - connect (22
Invalid argument)
$ wget
http://ubuntu.cn99.com/ubuntu/pool/main/a/apache2/apache2.2-common_2.2.9-7ubuntu3_i386.deb
// 却可以下载
也就是 wget可以下载,apt-get可以获得软件包地址,但无法下载
查了下,apt-get要求把代理设成如下形式:
$ export http_proxy=http://10.0.192.102:8080
现在, wget apt-get 都可以使用了...
May 25, 2009
May 17, 2009
ubuntu lighttpd mysql fastcgi
不想用Apache2了,试试lighttpd
安装lighttpd
$ sudo apt-get install lighttpd
安装php5
$ sudo apt-get install php5 php5-cli php5-cgi php5-mysql
让Lighttpd支持CGI模式
$ sudo lighttpd-enable-mod cgi
$ sudo lighttpd-enable-mod fastcgi
注: 看下/etc/lighttpd/conf-enabled/10-cgi.conf中的cgi-bin目录是否正确
安装mysql
$ sudo apt-get install mysql-server
安装phpmyadmin
$ sudo apt-get install phpmyadmin
重起Lighttpd
$ sudo /etc/init.d/lighttpd restart
May 1, 2009
informix The type of your terminal is unknown to the system or the screen size is,too small
informix@ubuntu:~$ dbaccess
The type of your terminal is unknown to the system or the screen size is
too small
解决:
ox0spy@ubuntu:~$ tail -n 4 /etc/profile
TERMCAP=$INFORMIXDIR/etc/termcap
export TERMCAP
INFORMIXTERM=termcap
export INFORMIXTERM
Informix 11.5 Installation on Ubuntu 8.10 server
安装过程很是曲折,先尝试着安装IDS 9.4,最后在Ubuntu上也安装成功了.
但是,$ onstat -i
系统报错:symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time referencthe
虽然找到了 传说中的两种解决方法, 但貌似都是不可行的.
最后,好心人提供了一个 11.5的下载链接
informix 11.5 for linux X86 : 下 载
更 多
ok,下面说说Ubuntu 8.10 Server 上安装informix 11.5
============很傻很天真的分割线====================
1. 用户、组创建
ox0spy@ubuntu:~$ sudo groupadd informix
ox0spy@ubuntu:~$ sudo useradd -g informix -d /opt/informix -m -s /bin/bash informix
2. 环境变量设置
ox0spy@ubuntu:~$ tail /etc/profile
# add for informix
INFORMIXDIR=/opt/informix
INFORMIXSERVER=info_dbs
INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts
ONCONFIG=onconfig.std
DBDATE=Y4MD*
LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$LD_LIBRARY_PATH
export INFORMIXDIR INFORMIXSERVER ONCONFIG LD_LIBRARY_PATH
PATH=$PATH:$INFORMIXDIR/bin
export PATH
3. 解压安装文件
以informix用户登陆系统
将C1P6NEN.tar放到/opt/informix下
解压缩:
informix@ubuntu:~$ tar xvf C1P6NEN.tar
4. 安装
以root的权限安装
ox0spy@ubuntu:/opt/informix$ sudo ./ids_install
下面根据提示就可以搞定了
5. 配置
我是以 文本模式安装的,下面开始配置
1) 在/etc/services中添加两行,如下:
informix@ubuntu:~$ grep sqlexe /etc/services
sqlexe 8887/tcp # informix
sqlexec 8888/tcp # informix
2) 修改/etc/hosts
informix@ubuntu:~$ grep 'ubuntu' /etc/hosts
192.168.43.128 ubuntu
3) 配置$INFORMIXDIR/etc/sqlhosts
informix@ubuntu:~$ cat $INFORMIXDIR/etc/sqlhosts | grep -E '^[^#]'
info_dbs onipcshm ubuntu sqlexe
info_dbs_tcp onsoctcp ubuntu sqlexec
4) 建立空间
informix@ubuntu:~$ mkdir dbs && cd dbs && touch rootdbs rootdbs_mirror && chmod 660 *
5) 配置$INFORMIXDIR/etc/onconfig.std文件
ROOTNAME rootdbs
ROOTPATH $INFORMIXDIR/dbs/rootdbs
MIRRORPATH $INFORMIXDIR/dbs/rootdbs_mirror
SERVERNUM 0
DBSERVERNAME info_dbs
DBSERVERALIASES info_dbs_tcp
NETTYPE ipcshm,1,50,CPU
NETTYPE soctcp,1,50,NET
TAPEDEV /dev/null
LTAPEDEV /dev/null
6. 初始化数据库
informix@ubuntu:~$ oninit -ivy
深夜里看着一串串的 ...successed 真爽
informix@ubuntu:~$ onstat -i
IBM Informix Dynamic Server Version 11.50.UC3 -- On-Line -- Up 00:44:43 -- 144676 Kbytes
onstat>
到此,数据库安装工作就完成了, good luck.