时间:2021-07-01 10:21:17 帮助过:2人阅读
Jexus相比其它Linux系统的WEB服务器的优势:
二、环境安装
1、Mono环境搭建
1 //安装Mono源码安装需要的库 2 [root@vforbox ~]# 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
1 //Mono需要的GDI+兼容API的库Libgdiplus 支持System.Drawing 2 [root@vforbox]# cd /usr/local/src/ 3 [root@vforbox src]# wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2 4 [root@vforbox src]# tar -jxvf libgdiplus-2.10.tar.bz2 5 [root@vforbox src]# cd libgdiplus-2.10 6 [root@vforbox libgdiplus-2.10]# ./configure --prefix=/usr 7 [root@vforbox libgdiplus-2.10]# make 8 [root@vforbox libgdiplus-2.10]# make install
1 //源码安装Mono 3.2.3 2 [root@vforbox ~]# cd /usr/local/src/ 3 [root@vforbox src]# wget http://download.mono-project.com/sources/mono/mono-3.2.3.tar.bz2 4 [root@vforbox src]# tar -jxvf mono-3.2.3.tar.bz2 5 [root@vforbox mono-3.2.3]# cd mono-3.2.3 6 [root@vforbox mono-3.2.3]# ./configure --prefix=/usr //...耐心等待 7 [root@vforbox mono-3.2.3]# make //...耐心等待吧,可以去喝杯咖啡、看看风景 8 [root@vforbox mono-3.2.3]# make install
1 //输入 mono -V 如有mono版本信息,肯定安装成功了 2 [root@vforbox ~]# mono -V 3 Mono JIT compiler version 3.2.3 (tarball Sat Aug 22 15:52:56 EDT 2015) 4 Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com 5 TLS: __thread 6 SIGSEGV: altstack 7 Notifications: epoll 8 Architecture: amd64 9 Disabled: none 10 Misc: softdebug 11 LLVM: supported, not enabled. 12 GC: sgen
1 //在安装mono后,都 ldconfig一下 2 [root@vforbox ~]# ldconfig
2、安装Jexus
1 //开始下载并安装 2 [root@vforbox ~]# cd /usr/local/src/ 3 [root@vforbox src]# wget http://linuxdot.net/down/jexus-5.4.3.tar.gz 4 [root@vforbox src]# tar -zvxf jexus-5.4.3.tar.gz 5 [root@vforbox src]# cd jexus-5.4.3 6 [root@vforbox jexus-5.4.3]# ./install /etc/jws/ 7 //安装完成~!!!在执行install脚本时,jexus默认是安装到/usr/jexus/中,如果想安装到其他目录,可以在执行该脚本时增加一个目录的参数(比如 sudu install /usr/local/jexus/)
1 //启动jexus 检查是否正常了 2 [root@vforbox ~]# cd /etc/jws/ 3 [root@vforbox jws]# ./jws start 4 Start ... OK 5 [root@vforbox jws]# cat log/jws.log 6 08-25 10:25:25: * Jexus web server start-up success.
通过以下命令可以启动/停止/重启Jexus服务:
1 /etc/jws/jws start
2 /etc/jws/jws stop
3 /etc/jws/jws restart
3、安装MariaDB
1 //使用YUM安装MariaDB 2 [root@vforbox ~]# yum -y install MariaDB-client MariaDB-server MariaDB-devel
1 //启动数据库 2 [root@vforbox ~]# service mysql start 3 //如果启动不了,请到 /data/mysql/ 下查看错误日志,这个日志通常是主机名.err。
1 //修改Root的密码 2 [root@vforbox ~]# mysqladmin -u root password ‘xiaoling‘ 3 //配置远程访问,MariaDB为了安全起见,默认情况下绑定ip( 127.0.0.1) 4 [root@vforbox ~]# mysql -u root -p 5 Enter password: 6 Welcome to the MariaDB monitor. Commands end with ; or \g. 7 Your MariaDB connection id is 17 8 Server version: 10.0.21-MariaDB MariaDB Server 9 Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. 10 Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement. 11 MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘xiaoling’ WITH GRANT OPTION; 12 MariaDB [(none)]> flush privileges; 13 //第一句中"%"表示任何主机都可以远程登录到该服务器上访问。如果要限制只有某台机器可以访问,将其换成相应的IP即可,如: 14 MariaDB [(none)]>GRANT ALL PRIVILEGES ON *.* TO root@"192.168.1.187" IDENTIFIED BY "xiaoling"; 15 //第二句表示从mysql数据库的grant表中重新加载权限数据。因为MySQL把权限都放在了cache中,所以在做完更改后需要重新加载。
4、测试LJMA
Linux+Jexus+MariaDB+ASP.NET[LJMA]环境搭建
标签: