安裝和配置 ASP.NET 4(Arch Linux)
我們要在 Arch Linux 64-bit 作業系統中安裝和配置 ASP.NET 4。以下是簡略步驟:
更新系統:
$ sudo pacman -Syy
$ sudo pacman -Syu
安裝 Apache、Mono、mod_mono:
$ sudo pacman -S apache
正在解決依賴關係...
正在查詢相互衝突...
軟體包 (3): apr-1.4.6-1 apr-util-1.5.2-1 apache-2.2.24-1
下載大小: 1.27 MiB
全部安裝大小: 7.18 MiB
......
apache 的可選依賴
lynx: apachectl status
$ sudo pacman -S mono
......
$ sudo pacman -S mod_mono
正在解決依賴關係...
正在查詢相互衝突...
軟體包 (2): xsp-2.10.2-4 mod_mono-2.10-3
下載大小: 0.25 MiB
全部安裝大小: 1.62 MiB
......
--> xsp is just the helping app for mod_mono if you like a production like
--> server. xsp itself is for ASP testing mainly -- read the manpage for xsp
--> to know which options are available.
--> Archlinux will provide xsp configured by a .webapp configuration file
--> which rests in /etc/xsp. Just put your other webapp files there to let
--> xsp pick them up.
--> xsp is commandline based configuration is done in /etc/conf.d/xsp. Set all
--> your arguments there. Don't forget that you can run xsp from the console
--> as oridinary user, which is safer and for testing absolutely sufficient!!
--> You can run the testpages simply by starting the server and calling
http://localhost:8080
--> from your browser's location bar
(2/2) 正在安裝 mod_mono
安裝完成。在 Arch Linux 中,Apache2 的配置檔案是 /etc/httpd/conf/httpd.conf,在該配置檔案增加以下內容,以支援 ASP.NET 4:
Include /etc/httpd/conf/mod_mono.conf
MonoServerPath "/usr/bin/mod-mono-server4"
MonoAutoApplication enabled
配置完畢,啟動 Apache2:
$ sudo systemctl enable httpd
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'
$ sudo systemctl start httpd
$ systemctl status httpd
httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: active (running) since 五 2013-04-19 21:22:15 CST; 19s ago
Process: 6212 ExecStop=/usr/sbin/apachectl graceful-stop (code=exited, status=0/SUCCESS)
Process: 6554 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 6557 (httpd)
CGroup: name=systemd:/system/httpd.service
├─6557 /usr/sbin/httpd -k start
├─6560 /usr/sbin/httpd -k start
├─6562 /usr/bin/mono /usr/lib/mono/4.0/mod-mono-server4.exe --filename /tmp/mod_mono_server_global --nonstop --master
├─6563 /usr/sbin/httpd -k start
├─6564 /usr/sbin/httpd -k start
├─6565 /usr/sbin/httpd -k start
├─6566 /usr/sbin/httpd -k start
└─6567 /usr/sbin/httpd -k start
執行效果如下:
這兩幅圖來源於我的另一篇文章:怎樣在 Markdown 中使程式程式碼帶上行號
參考資料
相關文章
- 安裝 Lantern (Arch Linux)Linux
- Arch Linux安裝macOSLinuxMac
- Vmware Station安裝Arch LinuxLinux
- Arch Linux 安裝 AnboxLinux
- Arch Linux 安裝簡明流程Linux
- Arch Linux中安裝AnacondaLinux
- 安裝 WPS Office (Arch Linux)Linux
- ARM 和 龍芯上 Arch Linux 安裝手記Linux
- 安裝“花園明朝”字型(Arch Linux)Linux
- 記錄安裝好Arch WSL後的配置
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.2.Linux安裝(2)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.2.Linux安裝(1)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.5. Linux配置OracleLinux
- Arch Linux配置gnome桌面Linux
- 如何在 Arch Linux 上安裝和設定 KDE 桌面環境?Linux
- 如何在 Arch Linux 中安裝深度桌面(DDE)Linux
- Arch linux下安裝bochs失敗解決Linux
- Arch! 從安裝開始
- arch linux上安裝 httpd+php+mysql+ openssl(轉)LinuxhttpdPHPMySql
- Linux 7安裝和配置phpmyadminLinuxPHP
- Linux - Vsftp之安裝和配置LinuxFTP
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.3. Linux登入OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(1)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(2)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.4. Linux命令(3)OracleLinux
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.1. 簡介OracleLinux
- rails 4安裝配置PostgreSQLAISQL
- 初級:如何在 Arch Linux 中安裝 Yay AUR 助手Linux
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.3. Oracle net配置OracleLinux
- 11. Oracle for Linux安裝和配置—11.3. Oracle安裝和配置—11.3.1. Oracle軟體安裝OracleLinux
- Linux安裝和配置zokeeper 詳細教程Linux
- Linux下Mongodb安裝和啟動配置LinuxMongoDB
- Linux上的redis的安裝和配置LinuxRedis
- zabbix安裝—–nginx安裝和配置Nginx
- linux安裝配置kickstartLinux
- Linux安裝配置vncLinuxVNC
- Linux Nginx 安裝配置LinuxNginx
- 安裝和配置Drupal 8教程,如何安裝和配置Drupal 8?