歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Ubuntu 8.04 安裝 Lighttpd +Mono 支持.net

讓Ubuntu 8.04也支持.net。

安裝軟件過程 lighttpd >mono>fastcgi-mono-server

安裝前老規矩 sudo apt-get update下

1. lighttpd

linuxidc@ubuntu:~$ sudo apt-get install lighttpd

啟用fastcgi

linuxidc@ubuntu:/etc/apt$ sudo lighty-enable-mod fastcgi 

2.mono

由於8.04裡沒有mono的源,官方也沒提供deb安裝包只好手工編譯安裝咯。

先安裝相關軟件。

linuxidc@ubuntu:~$ sudo apt-get build-dep gcc
linuxidc@ubuntu:~$ sudo apt-get install automake autoconf libtool
linuxidc@ubuntu:~$ mkdir mono
linuxidc@ubuntu:~$ cd mono
linuxidc@ubuntu:~$ wget http://ftp.novell.com/pub/mono/sources/mono/mono-1.9.1.tar.bz2
linuxidc@ubuntu:~$ tar -jvxf mono-1.9.1.tar.bz2
linuxidc@ubuntu:~$ cd mono-1.9.1
linuxidc@ubuntu:~$ ./configure --prefix=/usr/local
linuxidc@ubuntu:~$ make
linuxidc@ubuntu:~$ make install

 安裝後,可以通過“mono -V”查看版本

linuxidc@ubuntu:~$ mono -V
Mono JIT compiler version 1.9.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
3.fastcgi-mono-server

安裝 subversion

linuxidc@ubuntu:~$ sudo apt-get install subversion 

linuxidc@ubuntu:~$ svn co http://mono-soc-2007.googlecode.com/svn/trunk/brian/FastCgi/ fastcgi-mono-server
linuxidc@ubuntu:~$ ./configure --prefix=/usr/local
linuxidc@ubuntu:~$ make
linuxidc@ubuntu:~$ sudo make install

Copyright © Linux教程網 All Rights Reserved