Configure ASP. NET (Apache + Mono) in CentOS)

Source: Internet
Author: User
I tried to test the performance of my project on different operating systems, so I decided to deploy the Apache and Mono environments on Linux. Since Linux is rarely used at ordinary times, I have tried several articles on the Internet (attached to relevant links) and the deployment process is not smooth sailing, so I reorganized my configuration on Azure, hoping to help those who seldom ACCESS Linux. All of the following operations are configured in a virtual machine on Azure. if you configure them locally or in a virtual machine, you can

I tried to test the performance of my project on different operating systems, so I decided to deploy the Apache and Mono environments on Linux. Since Linux is rarely used at ordinary times, I have tried several articles on the Internet (attached to relevant links) and the deployment process is not smooth sailing, so I reorganized my configuration on Azure, hoping to help those who seldom ACCESS Linux. All of the following operations are configured in the Azure Virtual Machine. if you configure them locally or in the virtual machine, you may need to configure Nic settings first.

Mono 3.1.2 release http://www.linuxidc.com/Linux/2013-07/87501.htm

[Article Index]
1.
Install Apache in Ubuntu
2. install Mono in Ubuntu
3. deploy the ASP. NET website in Ubuntu
4. operations under openSUSE
5. operations under CentOS
[1. install Apache in Ubuntu]

After Ubuntu Server is installed, there is no graphical interface by default. In fact, it is easy to configure it in Linux without a graphical interface. After the Ubuntu Server is configured on Azure (Ubuntu Server 12.04 LTS, provided on Azure is used), Port 22 of SSH is automatically configured, we can connect to the server directly using SSH tools, where free open source PuTTY (http://www.putty.org/) is used /). If the password configured on Azure is used to connect to the host, enter the address and click "Open". if an SSH Key is also uploaded, you should also select the corresponding key in Connection/SSH/Auth to connect.

After the connection, enter the user name and password you set to log on to the Ubuntu system. the command line shown in Figure 5 is displayed. almost all the work we do is through the command line.

Installing software in Ubuntu is actually very convenient. Ubuntu provides the apt-get tool, which can be used to directly download and install the software.

In Linux, the highest permission account is the root account, and the default logon account is not the root account. for example, the account does not have the installation program permission, however, similar to Windows, the sudo command provides a way to improve the permissions, that is, the "sudo" command can be added before each command is executed, that is, the root account can be executed with permissions. When using sudo for the first time, you are required to enter the password of the current account. after confirmation, you can use the sudo command within a period of time (5 minutes by default) without entering the password, after a period of time, you need to re-enter the password.

First, install Apache, enter the following command, and then prompt whether to install or not, and enter Y to continue. Software Package Details: http://packages.ubuntu.com/quantal/apache2

sudo apt-get install apache2

After a period of time, Apache will automatically install and configure it. in this case, you can configure port 80 on Azure. after the configuration, you can use a browser to access the server address to see the prompt, the installation is successful.

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.