A project has been involved recently. net and JAVA Webservice mutual access, now this project needs to be deployed, but also need to separately deploy a windows Server, the other is linux, you can consider whether. net webservice is also deployed on linux, and some documents are obtained. The steps are recorded and left as a memo.
1. The installed linux version is Ubuntu 13.04. This does not need to be described. After installation, start the system.
2. start the system, first improve user permissions, press Ctrl + Alt + T, enter the terminal command line, enter sudo gedit/etc/passwd, open the editor, find my user hhb: x: 1000: 1000: www.linuxidc.com:/home/linuxidc:/bin/bash, change the two 1000 to 0, then my user hhb gets the root permission and restarts
3. Install mono: After the restart is complete, ctrl + alt + t, enter the terminal command line, and enter
Wget http://download.mono-project.com/sources/mono/mono-3.0.10.tar.bz2
The latest mono version can be found here: Last modified
After the download is complete, decompress:
Tar jvxf mono-3.0.10.tar.bz2
Then, install the three steps:
Cd mono-3.0.10
./Configure -- prefix =/usr
Make
Sudo make install
Cd ..
4. Install jexus:
Download it from the official website: http://www.linuxdot.net /. The download link is located in the "important downloads" column on the right of the official website. We installed Jexus web server V5.3.1 in the official version. The installation command is as follows:
Wget http://www.linuxdot.net/down/jexus-5.3.1.tar.gz
Tar-zxv-f jexus-5.3.1.tar.gz
Jexus-5.3.1 folder, under which there is an install, run install unzip, enter
Cd jexus-5.3.1
./Install
The installation is successful.
Check the default jexus configuration file in/usr/jexus/siteconf/default:
There are examples in the configuration, which is quite understandable. Next we will create a new index.html page under/var/www/default. the page contains some simple HTML code, as shown below:
<Html>
<Head> <title> Hello Jexus! </Title> <Body> </Html>
Return to/usr/jexus and run the following command:
./Jws start
Curl http: // localhost/index.html
The jexus service has been started successfully.
5. copy the published website file to var/www/. Here I name it website.
6. open the SiteConf directory under the jexus folder, find the default file, copy it, rename it as website, open it with the Ubuntu Editor, replace the default with website, and change the port to 8081, in this way, you can use http: // ip address/website/index. aspx (here my initial Page is index. aspx, if it is another page replacement.) access the website with the correct settings.