Start focusing on the Linux runtime from Mono 2.8+. NET some of the messages
Recently nothing to do, found that the official mono has provided a compiled source, greatly facilitated the deployment process, do not need to compile mono
wrote a small program with Nancy.owin, some of which have been filled in, here is the source code:
Https://github.com/ss22219/Booker
Here with a brand-new system upload program, unzip:
Under Windows, use Cmder to package tar zcf product.tar.gz productscp product.tar.gz [email protected]:/root/ssh [email protected] #tar ZXVF product.tar.gz
Extracted files:
# lsbin Booker.exe Booker.exe.config content HTML scripts views
Since I'm using a new mini system, I'm going to install the Yum-config-manager to make it easy to configure the third-party source provided by Mono.
1 |
# yum -y install yum-utils > /dev/null |
According to the official note of Mono (http://www.mono-project.com/docs/getting-started/install/linux/#centos -7-fedora-19-and-later-and-derivatives)
Add Source Address:
# rpm--import "http://keyserver.ubuntu.com/pks/lookup?op=get&search= 0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef "# Yum-config-manager--add-repo http://download.mono-project.com/repo/ centos/>/dev/null
OK, install Mono:
1 |
# yum install -y mono-devel > /dev/null |
Get my Booker up and running:
1234 |
# mono Booker.exe SiteRoot: /root/product/ server is start on http: // +:80 press enter to exit |
Run is running up, found outside the network access, should be the fire wall blocked
CentOS7 replaced the new firewall firewall, no longer using iptables by default, use the following command to close:
1 |
# systemctl stop firewalld.service |
Rerun, access everything normal:
CentOS7 (mini) rapidly deploy ASP.