Install Mono 2.10.8 and Jexus 5.0 under 32- and 64-bit CentOS 6.0

CentOS is a RHEL-based Linux distribution. Its purpose is to provide a free and free enterprise-level Linux distribution. The name of CentOS comes from "Community ENTerprise Operating System". From the name, you can know that this is a set of operating systems led by the community and targeted at enterprise users.

At present, CentOS is the most widely used set of Linux distributions among the hosts for web server purposes. According to statistics, currently about 30% of Linux servers use CentOS. Many books and websites will also cite CentOS as the operating interface when introducing Linux operating methods. Usually CentOS will launch a new version after RHEL launches a new version, after a short period of modification and testing, and its version number will mostly follow the version number of RHEL. For example, the current latest version of CentOS 6, its corresponding The RHEL version is RHEL 6.

Mono 2.10.8 was released on December 19, 2011. The latest version of Jexus 5.0 is the official version of RC3 and will be released soon, bringing many new features. Jexus web server for linux is a high-performance WEB server based on .NET compatible environment, running on Linux/unix operating system and supporting ASP.NET as its core function.

Jexus V5.0 has the following features:
01、 Support ASP.NET. This is the core function of Jexus. Whether it is stability, ease of use, concurrent carrying capacity, and parallel processing speed, Jexus's support for ASP.NET is excellent;
02、 Support PHP. Jexus comes with Fast-CGI management module, which can support php in two ways: fcgi and php-fpm;
03、 With powerful URL rewriting function based on regular expressions;
04、 Has a strong reverse proxy function. Support multi-target [load balancing] (https://cloud.tencent.com/product/clb?from=10680), support seamless integration of local and remote websites;
05、 Possess powerful streaming media support capabilities, support FLV/F4V video file drag and play, and support Microsoft smooth streaming media technology;
06、 Supporting "server push" technology, equipped with corresponding server-side and client-side development interfaces, it is a powerful tool for developing modern WEB applications;
07、 With controllable "ASP.NET pre-caching", it can maximize the load-bearing capacity and response speed of ASP.NET websites;
08、 Support Https, with SSL encryption [Data Security] (https://cloud.tencent.com/solution/data_protection?from=10680) transmission capability;
09、 With basic and practical intrusion detection function, it can automatically terminate the identified illegal request;
10、 The installation and deployment are very simple, and the operation and use are extremely simple.

  1. Update the system

yum –y update

Second, install the libraries needed for Mono source installation

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. Install the GDI+ compatible API library Libgdiplus required by Mono
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=/usr
make
make install

Fourth, install mono

cd /usr/local/src/
wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.bz2
tar -jxvf mono-2.10.8.tar.bz2
cd mono-2.10.8./configure --prefix=/usr
make
make install

Enter mono -V If there is mono version information, the installation is successful.

If it is a 64-bit version of CentOS, after installing Jexus 5 later, the following error will occur during startup:

Sender: jws.exe, Sender TypeName: AppDomain 
Exception Source: jws, TargetSite Name: A 
Message is: 
An exception was thrown by the type initializer for Mono.Unix.Native.Stdlib 
StackTrace is: 
 at A.G.A(System.String[] A)[0x00000]in<filename unknown>:0  
IsTerminating: True

It is recommended that you run the command ldconfig. After installing mono, it is recommended that you all ldconfig. (The purpose of the ldconfig command is mainly to search for the shared dynamic link library in the default search directories (/lib and /usr/lib) and the directories listed in the dynamic library configuration file /etc/ld.so.conf ( The format is as described above, lib*.so*), and then create the connection and cache files required by the dynamic loader (ld.so). The cache file defaults to /etc/ld.so.cache, and this file is saved. Good order list of dynamic link library names.)

Another point is also very important. To compile Mono, specify the installation to /usr (./configure --prefix=/usr). If you install to a folder that the system does not understand at all, ldconfig alone will not work. You must add the path in the /etc/ld.so.conf file or /etc/ld.so.conf.d before ldconfig.

ldconfig several points to note!
  1. Add things to /lib and /usr/lib, you don't need to modify /etc/ld.so.conf, but you need to adjust ldconfig after finishing, otherwise the library will not be found

  2. When you want to add something to the above two directories, you must modify /etc/ld.so.conf, and then call ldconfig, otherwise it will not be found

For example, if you install a mysql to /usr/local/mysql, mysql has a lot of libraries under /usr/local/mysql/lib, then you need to add a line under /etc/ld.so.conf /usr/local/mysql/lib, after saving ldconfig, the new library can be found when the program is running.

  1. If you want to put lib outside of these two directories, but don't want to add things in /etc/ld.so.conf (or do not have permission to add things). That's okay, that is, export a global variable LD_LIBRARY_PATH, and then when you run the program, you will find the library in this directory. Generally speaking, this is only a temporary solution, used when there is no permission or temporary need.

  2. These things done by ldconfig are all related to running the program, not at all at compiling time. When compiling, you should add -L, so don't get confused.

  3. In short, no matter what changes are made to the library, it is best to ldconfig, otherwise there will be some unexpected results. It won’t take much time, but it will save a lot of things

Five, install Jexus 5.0

1、 download:
The download address is: http://www.linuxdot.net/down/jexus-5.0.1.tar.gz

wget http://www.linuxdot.net/down/jexus-5.0.1.tar.gz

2、 Unzip:
tar -zxvf jexus-5.0.tar.gz

3、 installation:
Jexus installation is very simple, just a process of copying, pasting and registering global assemblies
Note: Please use root identity for all the following operations.

A. Upgrade installation:

  1. Go to the folder where jws was originally installed, such as: cd /usr/jexus/
  2. Stop the operation of the old version of jexus:
          sudo /usr/jexus/  jws.stop
  3. Delete the old version:
          sudo rm *.exe
          sudo rm *.dll
  4. Copy the following files in the unzipped folder to the original folder where jexus was installed:
          jws.exe
          jwsHttpd.exe
          jxAspx.dll
          jxHost.dll
          jws.regsvr
          jws.start
          jws.restart
          jws.stop
  5. Set jws.regsvr, jws.start, jws.restart, jws.stop as executable
  6. Register the global assembly (very important)
    Enter the destination folder for installing jexus, and then run:
          sudo ./jws.regsvr

B. New installation:

  1. Create a jexus installation folder (usually /etc/jws/), I installed it to /usr/jexus/:
          sudo mkdir /usr/jexus/

  2. Copy or move all the files and folders obtained by decompression to the /etc/jws folder
    Such as: sudo mv * /usr/jexus/

  3. Set jws.regsvr, jws.start, jws.restart, jws.stop as executable

  4. Register the global assembly (very important)
    Enter the destination folder for installing jexus (cd /usr/jexus/), and then run:
          sudo ./jws.regsvr

Six, run the test
After copying the Jexus files, Jexus can work normally.
Therefore, if your system has been successfully installed on mono, jexus can be used directly, and even further configuration is completely unnecessary.

If it is an upgrade installation, you only need to start JWS with jws.start, and Jexus can work normally. If it does not work normally, the configuration method of the new version may change. You can check configuration files such as jws.conf.

Emphasis: If your server is installed with other WEB servers and the service is running, please stop it to avoid port conflicts and cause Jexus to fail to start.

If it is a new installation, please first create a default website folder: /var/www/default
Then execute the jws.start command (root identity required) in the Jexus working folder (/usr/jexus/) to start jexus.

  1. Use cat log/jws.log to see if there is any error in the jws log file.
  2. If there is no error message, please visit this server to see if there is a welcome page for jexus, for example, visit http://server IP address/info:

  1. If you see the welcome page, you can put the website content or a simple homepage file in the /var/www/default/ folder, and if you visit again, you can see your own website content.

  2. For configuration, please refer to the Readme file that comes with Jexus

Let jexus be able to read Chinese garbled file names 1. Install GBK and other character sets: Step 1: Modify: /var/lib/locales/supported.d/local file, add a line, the content is "zh_CN GBK". (Of course, you can also add "zh_CN GB18030", etc.); Step 2: Run the command sudo locale-gen 2. In the two files jws.start and jws.restart, add an environment variable: "export ONO_EXTERNAL_ENCODINGS="gbk: gb18030""
Note: The above method is applicable to jexus 5.2

reference:

The first choice for server installation, CentOS 6 brings a quiet revolution

Recommend a WEB server with ASP.NET on Linux/Unix—Jexus

The main points of installing mono and Jexus

Install Mono 2.10 CentOS using yum

Deploying to Mono

Developing and Deploying ASP.NET MVC Applications On Ubuntu Linux with Mono, nginx and MySQL

Centos 6.x compile and install mono to build ASP.NET Mvc3 environment

Install LNMP+Mono on Debian to run asp.net program

CentOS 6.2+Mono 2.10.8+jexus 5.0.2+asp.net mvc3 installation and deployment notes

Recommended Posts

Install Mono 2.10.8 and Jexus 5.0 under 32- and 64-bit CentOS 6.0
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
CentOS 7 install Mono and MonoDevelop
Install and configure keepalived under CentOS 5.9
Install and use docker under CentOS 6.8
Install Python3 and Py under CentOS7
Compile and install libmodbus library under CentOS7
Install centos7 and connect
Install mysql5.7 under CentOS7
Install ActiveMQ under Centos7
Install PostgreSQL12 under CentOS7
Install CentOS under VMware
Install mysql under Centos 7
Install MariaDB under MariaDB Centos7
Install mysql5.1 under CentOS6.5
Install svn and configuration through yum under CentOS
CentOs7.3 compile and install Nginx 1.9.9
Centos compile and install Git
Install Oracle11gR2 database under CentOS6.9
Install MySQL under Linux (CentOS 7)
Centos6.5 install and configure mongodb
CentOS7 install python3 and pip3
Install Java JDK8 under CentOS6
CentOS7 install OracleJDK and JRE
CentOS6.5 install Java 8 and Tomcat8
CentOS6 install and crack Jira 7
CentOS6.5 install Java 8 and Tomcat8
Centos7 compile and install ntp-4.2.8p11
CentOS 6.9 compile and install python
CentOS6 install and crack confluence
CentOS 6 compile and install python 3
Compile and install Lnmp shell script under Linux centos
Install MongoDB database under CentOS7
CentOS6 install and crack Jira 7
CentOS 6.8 under linux install mongodb
Install Mesos tutorial under CentOS7
Use Jexus 5.8.2 to deploy and run Asp.net core under Centos
Centos 7 install jdk and package service service
Install and use dig under ubuntu/debian
CentOS Yum compile and install MySQL 5.6
Use Nginx and u under CentOS
[Introduction to redis] Install redis under Centos
Upgrade OpenSSL and OpenSSH under CentOS7
CentOS 6.x compile and install Nginx
CentOS7 compile and install L(A|N)MP environment
CentOS7.3 install iptables and detailed use
Deploy and optimize Tomcat under Centos
CentOS quickly install Python3 and pip3
CentOS7 yum install and start mysql
Install and deploy Gerrit under Ubuntu
CentOS 8 - install and configure NFS service
Install Harbor mirror warehouse under CentOS
Install nodejs and npm under Ubuntu 16.04
Centos7 and centos8 install mysql5.6 5.7 8.0 so simple
Centos7 uninstall openJdk, and install JDK1.8
Java-JDK installation and configuration under CentOS
Install the latest OpenCV4.3 under Centos8
CentOS7 install and use SQL Server
CentOS Minimal install and configure TIPS
Install and configure FreeIPA in Centos7
Linux CentOS6 compile and install Pyt