Windows 7 + VirtualBox installation Centos+mono+jexus

Source: Internet
Author: User

1. Download and install VirtualBox and VirtualBox extension

2. Create and install a CentOS virtual machine

3. Download and install the libgdiplus,gdi+ library

4. Download and install Mono

5. Download and install the GTK-SHARP,GUII library (optional, if you do not need to run the desktop program, you can not install)

6. Download and install Monodeveloper (optional, you can write programs under Windows, then copy to CentOS, Monodeveloper run the Web by default 8080 ports)

7. Download and install XSP,HTTPS://GITHUB.COM/MONO/XSP (optional, if not installed monodeveloper do not install this)

8. Download and install the ASP. NET Web server under Jexus,linux (do not set the port to 8080 because the default port for Monodeveloper is 8080)

9. If running the WinForm program, run the Mono application name. exe in base

10. Download and install Oracle Instant Client for Linux, just load the instantclient-basic-xxxx.

In 2, the virtual machine's network is set to bridge mode, after 2, you need to turn off the CentOS firewall, or open the appropriate port, otherwise, outside of CentOS is not able to access the pages in Jexus

The specific steps of 3,4,5 are as follows,

1. Download the compressed package

2. Unzip with tar, if it is. bz2, then use TAR-JXVF; if it is. GZ, use TAR-ZXVF

3. Enter the unpacked folder and run the./configure--prefix= installation path, such as./configure--PREFIX=/USR, will be installed into the/usr/lib folder

4. Compiling and installing make && make install

Before 5, you need to register a 4 installed library, as follows

1. Append the following command to the/etc/profile file

Pkg_config_path=/usr/lib/pkgconfig//Here is the installation path/usr/lib the Pkgconfig folder below
Export Pkg_config_path

2. After saving, run the following command in base to make it effective

Source/etc/profile

Before 6, you need to register the installed libraries in Ldconfig, as follows:

1. create a file in the/etc/ld.so.conf.d/folder local-libs.conf

2. In local-libs.conf, add the following:

/usr/lib//Here is the installation path

3. Run the command in base Ldconfig

After the 10 is complete, you need to register the Oracle Instant Client library in Ldconfig in the following steps:

1. Create a file in the/etc/ld.so.conf.d/folder oracleclient.conf

2. Add the following to the oracleclient.conf and save

/usr/local/oracleclient//This is the installation path for Oracle Instant client, which contains so files

3. To create a shortcut named libclntsh.so for the libclntsh.so.10.1 file, run the following command in base

Ln-s/usr/local/oracleclient/libclntsh.so.10.1/usr/local/oracleclient/libclntsh.so

4. Run the command ldconfig

5. Querying the encoding of Oracle server

Select Userenv (' language ') from dual; My return value here is simplified Chinese_china. Zhs16gbk

6. Set the Oracle client encoding in CentOS and add the following in the/ETC/BASHRC file

Export nls_lang= "Simplified Chinese_china". ZHS16GBK//According to my return value, note that there are spaces required ""

7. Run command SOURCE/ETC/BASHRC in base to update the settings

How to solve the problem of asp: I am a website written in Visual Studio

Add <meta http-equiv= "Content-type" content= "text/html in the header; Charset=utf-8 "/>

Workaround for file not found in asp: I encountered a site.master file that was not found

By the expert point, Visual Studio automatically generated files called Site.master,m is uppercase, Linux case-sensitive, so can not find, change m to lowercase, passed, this kind of problem is a lot of problems, is the case of the problem, please note

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.