1. Install Mono
In order to test Mono installation, create a new file /tmp/test.cs:
Then compile it and run:
2. Install Nginx web server
Code:
# cd /usr/ports/lang/mono
# make config-recursive
# make install clean
In order to test Mono installation, create a new file /tmp/test.cs:
Code:
using System;
class Program {
static void Main ()
{
Type t = Type.GetType ("Mono.Runtime");
if (t != null)
Console.WriteLine ("You are running with the Mono VM");
else
Console.WriteLine ("You are running something else");
}
}
Then compile it and run:
Code:
# cd /tmp
# mcs test.cs
# mono test.exe
You are running with the Mono VM
2. Install Nginx web server
Code:
# cd /usr/ports/www/nginx
# make config-recursive
# make install clean
# echo "nginx_enable=YES" >> /etc/rc.conf