网上的教程要么文件下载出错,要么环境不对,回滚操作多次还是失败。
引用第14楼风中的过于2015-07-29 21:57发表的 回12楼买醉的帖子 :
高手,能否提示下centos6.5 下的asp.net安装要点?非常需要这个
yum -y install autogen glib2-devel libtiff libtiff-devel libjpeg libjpeg-devel giflib giflib-devel libpng libpng-devel libX11 libX11-devel freetype freetype-devel fontconfig fontconfig-devel libexif libexif-devel gcc-c++ gettext unzip libgdiplus gtk2-sharp pango cairo pixman zip glib bzip2 bzip2-devel curl-devel gtk2-devel boost-devel libtool libtool-devel git
tar -zxvf libgdiplus-3.12.tar.gz
cd libgdiplus-3.12
./configure --prefix=/usr
make && make install
cd ..
tar -jxvf mono-4.0.3.19.tar.bz2
cd mono-4.0.3
./autogen.sh
./configure --prefix=/usr
sed -i 's/define HAVE_LOCALCHARSET_H 1/define HAVE_LOCALCHARSET_H 0/g' eglib/config.h
make && make install
cd ..
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
git clone https://github.com/mono/xsp.git
cd xsp
./autogen.sh
./configure --prefix=/usr
make && make install
cd ..
fastcgi-mono-server4 /applications=/:/wwwroot/htdocs/www/ /socket=tcp:127.0.0.1:9001 /printlog=true 2>&1 > /dev/null &
或者用
fastcgi-mono-server4 /applications=/:/wwwroot/htdocs/www/ /socket=unix:/tmp/mono.sock /printlog=true 2>&1 > /dev/null &
cat >> /etc/rc.local << EOF
fastcgi-mono-server4 /applications=/:/wwwroot/htdocs/www/ /socket=unix:/tmp/mono.sock /printlog=true 2>&1 > /dev/null &
EOF
chmod +x /etc/rc.d/rc.local
-------------------------
引用第21楼秋日的私语于2015-07-30 16:07发表的 Re阿里云centos6.532位如何安装asp.net环境?(nginxMYSQL已安装) :
不支持ACCES数据库,实用性不大。 [url=http://bbs.aliyun.com/job.php?action=topost&tid=252259&pid=681098][/url]
-------------------------
引用第23楼秋日的私语于2015-07-30 18:57发表的 回22楼买醉的帖子 :
mdbtools网上找不到任何有用的教程啊,都是非常古老的。
-------------------------
引用第7楼风中的过于2015-07-29 15:05发表的 回6楼牛b王的帖子 :
windows太耗内存和CPU了。 [url=http://bbs.aliyun.com/job.php?action=topost&tid=252259&pid=680585][/url]
-------------------------
-------------------------
-------------------------
-------------------------
centos 6.5 mono + asp.net 配置
####首先关闭
由于CentOS自带的SELinux的原因,使得Apache无法连接到mod-mono-server,所以我们现在还需要配置SELinux。当然,这里为了简单就仅仅禁用SELinux,有兴趣的可以自己创建安全策略,使mod-mono-server可以生效。这里修改/etc/sysconfig/selinux文件。将“SELINUX=enforcing”修改为“SELINUX=permissive”或“SELINUX=disabled”,例如下图,保存重启系统即可。
centos 6.5 mono + asp.net 配置
yum update
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel bison pkgconfig glib2-devel gettext make
cd /home
mkdir -p down
cd down
wget http://nginx.org/download/nginx-1.6.1.tar.gz
wget http://download.mono-project.com/sources/mono/mono-3.6.0.tar.bz2
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2
wget http://download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2
yum install pcre-devel
yum install pcre-static
/usr/sbin/groupadd www
/usr/sbin/useradd -g www www
mkdir /home/web
mkdir -p /home/web
chmod +w /home/web
chown -R www:www /home/web
#####使用 nginx
tar zxvf nginx-1.6.1.tar.gz
cd nginx-1.6.1
yum install openssl-devel
./configure --user=www --group=www --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module
make && make install
cd ../
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/opt/nginx/sbin/nginx
#####安装 mono 组件
tar -jxvf libgdiplus-2.10.9.tar.bz2
cd libgdiplus-2.10.9
yum install libX11-devel
yum install cairo-devel
./configure --prefix=/opt/mono
make && make install
cd ..
tar -jxvf mono-3.6.0.tar.bz2
cd mono-3.6.0
./configure --prefix=/opt/mono
make && make install
echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile
echo export LD_LIBRARY_PATH=/opt/mono/lib:$LD_LIBRARY_PATH>>~/.bash_profile
echo export PATH=/opt/mono/bin:$PATH>>~/.bash_profile
source ~/.bash_profile
mono -V
###安装 xsp
cd /home/down
tar -jxvf xsp-2.10.2.tar.bz2
cd xsp-2.10.2
./configure --prefix=/opt/mono
make && make install
fastcgi-mono-server2 /applications=/:/home/web /socket=tcp:127.0.0.1:9000 &
#fastcgi-mono-server4 /applications=/:/home/web /socket=tcp:127.0.0.1:9000 &
4.0 .net framework 出错不知道为什么
########使用apache mod_mono ##########
cd /home/down
wget http://download.mono-project.com/sources/mod_mono/mod_mono-2.10.tar.bz2
tar -jxvf mod_mono-2.10.tar.bz2
cd mod_mono-2.10
./configure --prefix=/opt/mono
configure: error: **** apxs was not found, DSO compilation will not be available.
yum install httpd
yum search apxs
yum install httpd-devel
./configure --prefix=/opt/mono
make && make install
-------------------------
-------------------------
-------------------------
-------------------------
一、更新系统
运行以下命令,更新系统软件包:
yum -y update
二、 安装编译Mono时需要的软件
运行以下命令,安装必需的软件包和库:
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
三、编译安装libgdiplus
libgdiplus是安装Mono需要的GDI+兼容API库,运行以下命令,编译安装libgdiplus-3.12:
mkdir /root/Downloads
cd /root/Downloads
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-3.12.tar.gz
tar -xvzf libgdiplus-3.12.tar.gz
cd libgdiplus-3.12
./configure --prefix=/usr/local
make && make install
四、编译安装Mono
运行以下命令,从源码编译安装4.0.3.19Mono:
cd /root/Downloads
wget http://download.mono-project.com/sources/mono/mono-4.0.3.19.tar.bz2
tar -jxvf mono-4.0.3.19.tar.bz2
cd mono-4.0.3
./autogen.sh
./configure --prefix=/usr
sed -i 's/define HAVE_LOCALCHARSET_H 1/define HAVE_LOCALCHARSET_H 0/g' eglib/config.h
make && make install
ldconfig
输入 mono -V 如有mono版本信息,则安装成功。
五、编译安装Jexus
运行以下命令,从源码编译安装Jexus-5.6.3:
cd /root/Downloads
wget http://jaist.dl.sourceforge.net/project/jexus-webserver/jexus-5.6.3.tar.gz
tar -zvxf jexus-5.6.3.tar.gz
cd jexus-5.6.3
./install /usr/local/jexus
六、测试
通过以下命令可以启动/停止/重启Jexus服务:
/usr/local/jexus/jws start
/usr/local/jexus/jws stop
/usr/local/jexus/jws restart
通过以下命令可以启动/停止/重启指定网站:
/usr/local/jexus/jws start <siteName>
/usr/local/jexus/jws stop <siteName>
/usr/local/jexus/jws restart <siteName>
-------------------------
-------------------------
-------------------------
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。