LINUX+JEXUS+MARIADB+ASP.NET[LJMA] Environmental Construction

Source: Internet
Author: User
Tags bz2

This article is a summary of teacher Zhang's chapter, more knowledge please visit Mr. Zhang's [ljma] Tutorial: http://www.cnblogs.com/shanyou/p/3362150.html

First, Introduction

    • [Ljma] is linux+jexus+mariadb+asp. NET shorthand, like lamp
    • It is primarily Jexus and mariadb and ASP. NET installed on Linux systems, forming an ASP.
    • Jexus is a Web service software based on Mono written under Linux, and no mono is able to boot Jexus.
    • MARIADB is a relatively small database software
    • Asp. NET is provided by Microsoft in the. NET Framework framework to develop a class library of Web applications, through mono we can let him run under Linux

Jexus advantages over other Linux-system Web servers:

    • Jexus directly supports cross-platform ASP Web sites and PHP sites without the need for third-party plugins.
    • Jexus also has excellent performance in static file processing.
    • The Jexus is optimized for application server requirements with ultra-strong stability and uninterrupted operation, and is no less robust than any other Web server.
    • Jexus has the most basic and critical intrusion detection capabilities that all other Web servers do not have.

Second, environmental installation

1. Mono Environment Construction

    • Mono is defined by Novell (launched by Xamarin and led by Miguel de Lcaza, a dedicated pioneer. NET open source project used on Linux.
//System, install the compilation environment, prepare for compiling mono source code.[Email protected] ~]#Yum–y Update
1  // install the required libraries for mono source installation 2 Yum Install GCC GCC  make Libpng-devel libjpeg-devel libtiff-devel libexif-devel giflib-devel libx11-devel freetype-devel Fontconfig-devel Cairo-devel  
1     //Mono requires a library of GDI + compatible APIs libgdiplus support System.Drawing2[[Email protected]]# cd/usr/local/src/3[Email protected] src]#wgethttp//download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz24[Email protected] src]#Tar-JXVF libgdiplus-2.10.Tar. bz25[Email protected] src]# CD libgdiplus-2.106[Email protected] libgdiplus-2.10]#./configure--prefix=/usr7[Email protected] libgdiplus-2.10]# Make8[Email protected] libgdiplus-2.10]# Make Install
1 //Source Installation Mono 3.2.32[Email protected] ~]# cd/usr/local/src/3[Email protected] src]#wgethttp//download.mono-project.com/sources/mono/mono-3.2.3.tar.bz24[Email protected] src]#Tar-JXVF mono-3.2.3.Tar. bz25[Email protected] mono-3.2.3]# CD mono-3.2.36[Email protected] mono-3.2.3]#./configure--prefix=/usr//... Waiting patiently7[Email protected] mono-3.2.3]# Make                           //... Be patient, have a cup of coffee, take a look at the scenery.8[Email protected] mono-3.2.3]# Make Install
1 //input mono-v If you have mono version information, it must be installed successfully.2[Email protected] ~]# Mono-V3Mono JIT Compiler version3.2.3(Tarball Sat A  the: the: AboutEDT -)4Copyright (C)2002- -Novell, Inc., Xamarin Inc and Contributors. www.mono-project.com5 TLS: __thread6 Sigsegv:altstack7 Notifications:epoll8 Architecture:amd649 Disabled:noneTen Misc:softdebug One llvm:supported, not enabled. AGc:sgen
1 // after installing mono, Ldconfig 2 [[email protected] ~]# Ldconfig

  2, Installation Jexus

    • Jexus Web Server for Nux is based on a. NET-compatible environment, running on the Linux/unix operating system to support high-performance Web servers with ASP. Apache+mod_mono, nginx+fastcgi scenarios running ASP.
    • Jexus not only has the iconic features of cross-platform ASP, but also has kernel-level security monitoring, intrusion detection, URL rewriting, no file routing
1 //start Download and install2[Email protected] ~]# cd/usr/local/src/3[Email protected] src]#wgethttp//linuxdot.net/down/jexus-5.4.3.tar.gz4[Email protected] src]#Tar-ZVXF jexus-5.4.3.Tar. GZ5[Email protected] src]# CD jexus-5.4.36[Email protected] jexus-5.4.3]# ./install/etc/jws/7     //Installation Complete ~!!! When you execute the install script, Jexus is installed to/usr/jexus/by default, and if you want to install to a different directory, you can add parameters to the directory when you execute the script (such as Sudu install/usr/local/jexus/)
1 // start Jexus Check if it's OK. 2 [[email protected] ~]# cd/etc/jws/3 [[email protected] jws]#./JWs start4  Start ... OK5cat log/jws.log6-ten:  : *Jexus Web server start-up success.   
    • See Jexus has successfully started the log, we can also be checked by the browser under: Http://ip/info

    • The Jexus service can be started/stopped/restarted with the following command:

1/etc/jws/jws start2/etc/jws/jws stop3/etc/jws/jws restart 
    •  For more information, please refer to the Jexus tutorial " Click here to download " Password: 38BV

3, installation mariadb

    • MARIADB is a backward-compatible database server that replaces MySQL. MariaDB is a MySQL branch version that uses the Maria storage engine and is a free open source database server developed by a company founded by the original MySQL author Michael Widenius
    • Install MARIADB from the source package, it will take a long time to compile, it is recommended to install through the Yum method of CentOS
1 // installing mariadb with Yum 2 Yum Install Mariadb-client Mariadb-server Mariadb-devel   
1 // Start the database 2 [[email protected] ~]# service mysql start3  // If it doesn't start, go to/data/mysql/ Check the error log below, which is usually the hostname. Err.    
1     //Change the root password2[Email protected] ~]# mysqladmin-u root password'xiaoling'3 //Configure remote access, MARIADB bind IP (127.0.0.1) By default for security purposes4[Email protected] ~]# Mysql-u root-P5 Enter Password:6 Welcome to the MariaDB Monitor. Commands End With; or \g.7Your MariaDB ConnectionIDIs -8Server version:10.0. +-MariaDB MariaDB Server9Copyright (c) -, -, Oracle, MariaDB Corporation Ab and others.TenType'Help ;'Or'\h'  forHelp. Type'\c'ToClearThe current input statement. OneMariaDB [(None)]> GRANT all privileges on * * to'Root'@'%'identified by ' xiaoling ' with GRANT OPTION; AMariaDB [(None)]>flush Privileges; -     //The "%" in the first sentence indicates that any host can be accessed remotely to the server. If you want to restrict access to only one machine, replace it with the appropriate IP, such as: -MariaDB [(None)]>grant all privileges on *. * to Root@"192.168.1.187"Identified by"xiaoling"; the     //The second sentence reloads the permission data from the grant table in the MySQL database. Because MySQL puts permissions in the cache, it needs to be reloaded after the changes have been made. 

4. Test Ljma

    • Use Visual Studio to compile the directory that corresponds to the default site of Jexus/var/www/default
    • Just the author has a small project, via FTP upload to/var/www/default default Site Directory

    • The building of the LJMA environment is good, but if you want to know a lot of details. Then inevitably need to spend more time to learn!

Linux+jexus+mariadb+asp.net[ljma] Environment setup

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.