1.更新系统
yum update
2.安装必要的相关库
yum 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-devel3、安装一键包 ngnix,php-fpm,mysql
4、安装 libgdiplus
cd /usr/local/src/
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
tar -jxvf libgdiplus-2.10.tar.bz2
cd libgdiplus-2.10
./configure --prefix=/opt/mono
make
make install
echo "/opt/mono/lib" > /etc/ld.so.conf.d/mono.conf
ldconfig
5、安装 mono
cd /usr/local/src/
wget http://download.mono-project.com/sources/mono/mono-2.10.6.tar.bz2
tar -jxvf mono-2.10.6.tar.bz2
cd mono-2.10.6
./configure --prefix=/opt/mono
<