Linux+mono+asp.net Getting Started: 05CentOs installation Mono (top)

Source: Internet
Author: User

Http://www.cnblogs.com/jameszou/archive/2013/05/18/3085754.html

Preparation FAQ A. Xshell Display Chinese garbled problem

[File]–>[open]–> Select the connected one in the open session, click [Properties], [terminal], encoding selected as: Unicode (UTF-8), and then reconnect the server

B. httpd Startup issues

Httpd:apr_sockaddr_info_get () failed for

Solve:

[Email protected] bin]# vi/server/apache/conf/httpd.conf

Modify ServerName www.example.com:80 to ServerName localhost:80

1. Install the necessary component libraries through the network in CentOS

yum-y Install bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel libtiff-devel libexif-devel gi Flib-devel libx11-devel freetype-devel fontconfig-devel cairo-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 Libxft-devel Ghostscript-devel gnome-doc-utils Unzip

1.1 Start Check mirror site: mirror.neu.edu.cn, and get the latest

Note: In the middle there will be some confirmation prompts, enter Y directly to continue.

Complete:

2. Upload the installation package

2.1 Creating the/usr/software Directory

Using the mkdir command

Upload the installation package to/usr/software with Xftp

3. Install apache3.1 decompression httpd

Tar command

After decompression,/usr/software more than one folder:

3.2 httpd needs Apr,apr-util,pcre support

3.2.1 Extract Apr and Apr-util packets using the tar command (suffix tar.bz2)

Unzip the Pcre package, using the unzip command (suffix. zip)

After decompression:

3.3 Installing the PCRE (regular support library)

3.3.1 into the Pcre folder and view the content and see there is a configure script file

3.3.2 Use this script to precompile, configure the installation directory to:/usr/local/pcre

3.3.3 Compiling

3.3.4 installation, the file is created in the target path

3.4 Apr and Apr-util Mobile

3.4.1 Folder renaming

apr-1.4.6 Change to Apr command: MV APR-1.4.6/APR

apr-util-1.5.2 Change to apr-util command: MV apr-util-1.5.2 apr-util

3.4.2 Moving folders

Move Apr and Apr-util to/usr/software/httpd-2.4.4/srclib

Note: Two packages do not need to be configured for compilation and installation and will be used directly by httpd in a moment.

3.5 Installing Apache (httpd module)

3.5.1 into the/usr/software/httpd-2.4.4

View the content and discover that there is also a configure script

3.5.2 precompiled, specifying directory to:/usr/local/apache

Error:

This is because the path of the pcre is not specified

Re-precompile and specify the Pcre path

3.5.3 Compilation and installation (can be entered together with multiple commands, executed sequentially)

3.6 Configuring Apache Services

Go to the installation directory to see a apachectl script in the bin directory

This script provides simple commands to control the Apche service.

3.6.1 Start service Apache

Error: By the wrong information, is the service monitoring error, need domain name (or IP)

Workaround: Specify an IP in the Apache configuration file

The Apache service configuration file is the httpd.conf file in/etc/httpd/conf/.

* * Use VI (Editor) to open

Search servername (case sensitive)

First press shift+:, bring up the VI command box, the bottom left corner of the interface appears a colon, the cursor waits for input.

Input? ServerName, press ENTER

In the VI found place, note the yellow box is where we want to modify the place 276 lines

*6. Press the INSERT key to enter edit mode, and a--insert--word appears in the lower left corner

*7. Use the arrow keys to adjust the cursor position to the yellow box position, replacing the entire line with:

Note that the previous # is removed!

*8 exit Edit State: Press the ESC key.

*9 shift+: Bring up the VI command box, enter the Wq, press ENTER to save the exit.

Run the startup service again, ok!

3.6.2 Testing Services

By DocumentRoot in the/etc/httpd/httpd.conf file, the Web site root directory is "/var/www/html"

We add an HTML file under the/var/www/html directory

*10.1 Enter Directory/var/www/html

*10.2 use VI to create an empty document and press the INSERT key to enter edit mode

*10.3 Save and exit

See the 1.html file in the folder

*10.4 downloads This file to the current directory through wget to httpd, but because it already has 1.html, it automatically adds one to the downloaded file name. 1

downloaded successfully, it represents Apache Service installed successfully!

3.6.3 Configuring boot Start

Use the Service Management tool NTSYSV manage httpd

* * The Apachectl script under the bin/directory in the httpd installation directory,

Copy to/etc/rc.d/init.d/directory, named Apache

Edit the copied Apache script using VI

After #!/bin/sh, add two lines of characters, ESC ends the edit state, exit save shift+: Wq return.

Sign up for Apache services

Start Apache Service

4. Installing Libgdiplus

4.0 Enter the/usr/software directory to view the Libgdiplus package

4.1 Decompression

TAR-JVXF libgdiplus-2.10.tar.bz2

After the decompression, software a green folder, open, see there is a configure file,

This file is actually a pre-installation configuration processing script file, set parameters before compiling the installation.

4.2 Performing preprocessing, setting the installation directory of the LIBGDIPLUS-2.10 software

4.3 Performing the installation

Make && make install

Error:

Online installation of missing packages: Yum install 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 re-execution: make && make Install

5. Install Mono

5.1 Decompression

After decompression, enter the mono directory and see the Configure precompiled script

5.2 precompilation, set the installation directory as:/usr/local/mono

5.3 Compile and install (time consuming)

*5.4 Configuring environment variables

A. Modifying the profile script of the/etc directory

Add two lines at the end, and exit, save.

B. Setting effective: Source/etc/profile

C. View Mono version information: mono-v

6. Installing XSP

6.1 Back to/usr/software directory

Note that this compressed package is a zip

6.2 Decompression Xsp-master.zip

6.3 Go to unzip directory configuration compile installation, note the configuration script here is autogen.sh

6.3.1 need to specify a temporary environment variable to tell the XSP native's mono path to be installed

Export pkg_config_path=/usr/local/mono/lib/pkgconfig: $PKG _config_path

6.3.2 perform precompilation (configuration), set the installation directory to mono in the same directory

6.3.3 Compiling and installing

Make && make install

6.3.4 Test starts a temporary ASP.

*a. Input XSP4

Start a temporary ASP.

*b. Using the wget command request, return a 404 error, ok!

Linux+mono+asp.net Getting Started: 05CentOs installation Mono (top)

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.