ASP.NET?????????
???????????? ???????[ 2015/11/19 16:12:04 ] ????????C# ??????????? ?????
??????Linux???????MySQL???????????????MySQL?????????????????????С??????MySQL?????????????????????????????MySQL?????д???????????SQL?????????????????????MySQL????????????????????MySQL???????????????MySQL????????????????????????и????????
????[root@localhost ~]# mysql -uroot -p11111111
????mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '11111111' WITH GRANT OPTION;
????mysql> FLUSH PRIVILEGES;
????mysql> exit;
??????????????????3306??????????????????????????????????????????????У?
????[root@localhost ~]# vi /etc/sysconfig/iptables
????# Firewall configuration written by system-config-firewall
????# Manual customization of this file is not recommended.
????*filter
????:INPUT ACCEPT [0:0]
????:FORWARD ACCEPT [0:0]
????:OUTPUT ACCEPT [0:0]
????-A INPUT -m state --state ESTABLISHED??RELATED -j ACCEPT
????-A INPUT -p icmp -j ACCEPT
????-A INPUT -i lo -j ACCEPT
????-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
????-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
????-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
????-A INPUT -j REJECT --reject-with icmp-host-prohibited
????-A FORWARD -j REJECT --reject-with icmp-host-prohibited
????COMMIT
????????????????
????[root@localhost ~]# /etc/init.d/iptables restart
?????????????????MySQL????????
???????????ASP.NET???
??????????????ASP.NET MVC???????????????????tar??webapps???£?????????Entity Framework????????????????????????????顣???????????Linux????/usr/apollo/webapps???£???????Jexus????????
????[root@localhost ~]# cd /usr/apollo/hostd/jexus/siteconf/
????[root@localhost siteconf]# cp default demo
????[root@localhost siteconf]# vi demo
????…
????port=8080
????root=/ /usr/apollo/webapps/demo
????hosts=* #OR your.com??*.your.com
????…
????Jexus????????Web?????????????????demo????????????default????????棬???????ò?????????ɡ?????????????????8080????
????[root@localhost siteconf]# vi /etc/sysconfig/iptables
????# Firewall configuration written by system-config-firewall
????# Manual customization of this file is not recommended.
????*filter
????:INPUT ACCEPT [0:0]
????:FORWARD ACCEPT [0:0]
????:OUTPUT ACCEPT [0:0]
????-A INPUT -m state --state ESTABLISHED??RELATED -j ACCEPT
????-A INPUT -p icmp -j ACCEPT
????-A INPUT -i lo -j ACCEPT
????-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
????-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
????-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
????-A INPUT -j REJECT --reject-with icmp-host-prohibited
????-A FORWARD -j REJECT --reject-with icmp-host-prohibited
????COMMIT
????????iptables??????????????Ч??
????[root@localhost siteconf]# /etc/init.d/iptables restart
????????Jexus????
????[root@localhost siteconf]# /usr/apollo/hostd/jexus/jws restart
????????????????????????????ASP.NET MVC??????
????? 4 Linux????????ASP.NET MVC???
?????????
??????????????в??裬?????????ASP.NET MVC?????Linux?????????????????????У????????????????????????в??輼????????????????????????????Щ???????????????????????????????????????.NET??????????????????ASP.NET??????????
???????????????
???????????????ASP.NET?????Linux????????????÷?????????MySQL???????顢Jexus??MySQL????????????????????????????????Щ???ü????????????????????С?
????#!/bin/sh
????#echo off
????DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
????#???????????????????ò?????????
????#ln -s -T $DIR /usr/apollo
????#???????????ú??MySQL??????????????
????cp -f $DIR/conf/my.cnf /etc/my.cnf
????#????MySQL???????????????
????groupadd mysql
????useradd -g mysql mysql
????chown -R root .
????chown -R mysql data
????chgrp -R mysql data
????#????MySQL???????????
????cp $DIR/data/support-files/mysql.server /etc/rc.d/init.d/mysqld
????chmod 700 /etc/init.d/mysqld
????chkconfig --add mysqld
????chkconfig --level 345 mysqld on
????#??MySQL?????????????????
????sudo cat $DIR/conf/profile >> /etc/profile
????source /etc/profile
????#???÷????????
????cp -f $DIR/conf/iptables /etc/sysconfig/iptables
????#????Jexus???????????
????sudo cat $DIR/conf/rc.local >> /etc/rc.d/rc.local
????chmod +x /etc/rc.d/rc.local
????chmod a+x $DIR/hostd/jexus/jws
????chmod a+x -R $DIR/hostd/mono/bin
????#??????
????reboot
?????????????????
??????Linux??????ASP.NET???????????????Mono??Jexus??MySQL?????????д???????
????[root@localhost ~]# tar jcvf crossplatform-1.0.0.0-centos6.4-x86_32_64.tar.bz2 /usr/apollo
????????????????????ASP.NET???
?????????Linux??Web??ò??????????????????????????????????????????????????????????????????Linux???в??????
????[root@localhost usr]# tar jxvf crossplatform-1.0.0.0-centos6.4-x86_32_64.tar.bz2
??????г??????????????
????[root@localhost usr]# cd apollo
????[root@localhost apollo]# sh ./install
?????????????????????ASP.NET MVC?????????????
????? 5 Linux???????????ASP.NET MVC???
???????
?????????????????Linux??????ASP.NET??????????????????????????????ASP.NET?????????????????棬?ù????????????????Linux????汾??????????????????????Linux??????ASP.NET??y???????????????????????????????????????????????軔??÷???????????ɡ?????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11