linux(centos)系統上架設asp.net網站__C語言

來源:互聯網
上載者:User

當前,在linux系統上架設asp.net網站、建設web應用工程項目已經在國內流行起來,

而“mono+jexus”架構模式是linux承載asp.net企業其他 級應用的極為重要的架構方式。


配置 ASP.NET Linux( CentOS 6.5 ) 運行環境 MONO + Jexus

本實驗在虛擬機器下測試通過
虛擬機器IP 192.168.199.146

安裝好 CentOS 6.5 之後

1、更新系統

在命令列下執行

yum –y update

2、安裝必要的軟體

yum -y install gcc gcc-c++ bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel libtiff-devel libexif-devel giflib-devel libX11-devel freetype-devel fontconfig-devel  cairo-devel

3、安裝Mono需要的GDI+相容API的庫Libgdiplus

這個地址下有最新的 Libgdiplus
http://download.mono-project.com/sources/libgdiplus/
當前可以下載到的最新版本3.8

cd /usr/local/src/wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-3.8.tar.gztar zxvf libgdiplus-3.8.tar.gzcd libgdiplus-3.8./configure --prefix=/usrmakemake install

4、安裝Mono (過程時間比較長,耐心等待)

在這個地址下有最新版本的 Mono http://download.mono-project.com/sources/mono/
當前可以下載到的最新版本3.10.0

cd /usr/local/src/wget http://download.mono-project.com/sources/mono/mono-3.10.0.tar.bz2tar -jxvf mono-3.10.0.tar.bz2cd mono-3.10.0./configure --prefix=/usrmakemake install

上述命令執行完畢之後,輸入 mono -V 如有mono版本資訊,則安裝成功。
如下:

[root@localhost ~]# mono -VMono JIT compiler version 3.10.0 (tarball 2014年 12月 28日 星期日 02:47:02 CST)Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com    TLS:           __thread    SIGSEGV:       altstack    Notifications: epoll    Architecture:  amd64    Disabled:      none    Misc:          softdebug     LLVM:          supported, not enabled.    GC:            sgen

5、安裝Jexus

在 Jexus 的官網下載最新版本5.6.3
官網:http://www.jexus.org/

cd /usr/local/src/wget http://www.linuxdot.net/down/jexus-5.6.3.tar.gztar -zxvf jexus-5.6.3.tar.gzcd jexus-5.6.3sudo ./install

6、啟動 停止 重啟 Jexus

啟動:

sudo /usr/jexus/jws start

停止:

sudo /usr/jexus/jws stop

重啟:

sudo /usr/jexus/jws restart

7、測試

首先配置防火牆開放80連接埠

/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT/etc/rc.d/init.d/iptables save

開啟瀏覽器訪問

http://192.168.199.146/info

到此為止可以看到 Jexus 是可以正常啟動並執行

詳細的Jexus 使用說明後期整理

比如:

重啟指定網站:

sudo /usr/jexus/jws restart siteName

停止指定網站:

sudo /usr/jexus/jws stop siteName
參考: https://segmentfault.com/a/1190000002449629
http://www.makaidong.com/%E5%8D%9A%E5%AE%A2%E5%9B%AD%E6%90%9C/40585.shtml


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.