Author: haoxi road personal home page: http://www.cnicode.com blog address: http://haoxilu.cnblogs.com
Note: I am a Linux cainiao. I tried to configure the Jexus server myself and encountered many errors. Refer to the blogs of many great gods in the garden. To complete the configuration. If you are a dish like me, you don't have to run around. Here you want...
1. Use Putty to connect to a remote Ubuntu Server:
If the connection fails, you can use the following solution;
Reference: http://www.linuxidc.com/Linux/2012-04/59409.html
1. Make sure that you can ping a remote Ubuntu or virtual machine.
2. If you still cannot log on, most of the reasons are that you have not enabled the ssh-server service. The final success method is as follows:
Sudo apt-get install openssh-server
Openssh-client is installed by default in Ubuntu, so it is not installed here. If your system is not installed, use apt-get to install it.
Then confirm whether the sshserver is started:
Ps-e | grep ssh
If only ssh-agent is available, the ssh-server has not been started./etc/init. d/ssh start is required. If you see sshd, the ssh-server has been started.
The ssh-server configuration file is located in/etc/ssh/sshd_config. Here, you can define the SSH service port. The default port is 22. You can define other port numbers, such as 222. Then restart the SSH service:
Sudo/etc/init. d/ssh resart
2. Use WinSCP to upload and install the required files (the files can be uploaded to custom files, and the path I uploaded is home/icode/software)
Installation: http://pan.baidu.com/s/1jGFVTyA
3. After the file is uploaded, install the file below, but update the current system before installation.
Reference: http://www.linuxdot.net/bbsfile-3090
Sudo apt-get update
Sudo apt-get upgrade
It takes a long time to install the second update. At this time, you can have a cup of coffee and wait for a while ~
4. Build a compilation environment
Sudo apt-get install build-essential
Sudo apt-get install automake autoconf
5. Install the library files on which libgdiplus and mono depend.
Sudo apt-get install bison libglib2.0-dev
Sudo apt-get install libgif-dev libtiff4-dev libpng12-dev libexif-dev libx11-dev libxft-dev libjpeg-dev
6. Install libgdiplus
1> decompress libgdiplus-2.10.tar.bz2
Tar-jxvf libgdiplus-2.10.tar.bz2
2> Go To The libgdiplus-2.10 folder and execute the command
./Configure -- prefix =/usr
Make
Sudo make install
Note: An error occurred while executing make compilation,
Reference link:
Http://www.cnblogs.com/24la/p/libgdiplus-install-error-record.html
Solution:
Ln-s/usr/include/freetype2/usr/include/freetype
Or execute
Sudo apt-get install libgif-dev
Sudo apt-get install libpng12-dev
Install these two dependent components
Then run make to report the following error:
/Usr/lib64/libglib-2.0.so.0: cocould not read symbols: Invalid operation
Collect2: error: ld returned 1 exit status
Make [2]: *** [testgdi] Error 1 make [2]: Leaving directory '/usr/local/src/libgdiplus-2.10.9/tests'
Make [1]: *** [all-recursive] Error 1 make [1]: Leaving directory '/usr/local/src/libgdiplus-2.10.9'
Make: *** [all] Error 2
Solution:
Run the./configure command first, and then edit the test/Makefile file;
Change LIBS =-lpthread-lfontconfig of row 130 to LIBS =-lpthread-lfontconfig-lglib-2.0-lX11
Run the make command again.
Finally, run sudo make install to complete the installation.
7. Install Mono (Note: it takes a long time for Mono to be installed and compiled. Now you can go out and exercise it ~)
1> decompress tar-zxvf mono-3.4.0.tar.gz
2> RUN cd mono-3.4.0 To Go To The mono-3.4.0 folder for compilation and installation.
./Configure -- prefix =/usr
Make
Sudo make install
Note:
If the following error occurs during execution:./configure -- prefix =/usr
Solution: sudo apt-get install gettext
Then run./configure -- prefix =/usr.
3> mono-V can be used to check whether the current version of mono is successfully installed.
8. Install Jexus
1> unzip the jexus-5.5.2.tar.gz
Tar-zxvf jexus-5.5.2.tar.gz
2> cd jexus-5.5.2 Go To The jexus-5.5.2 folder for Installation
Sudo./install
The installation is successful!
3> Start the Jexus Service
Cd/usr/jexus
Sudo ../jws start
The figure shows that the service is successfully started!
Note:
Jws-related command jws {start | stop | restart | regsvr | status |-v}
Sudo./jws status to view the status of the current jexus Service
Enter the Server IP address in the client browser. If yes, Jexus is successfully installed.
9. Set Jexus service to start automatically
After the Ubuntu server is restarted, the newly installed Jexus service is started at random. When you enter the Server Ip address in the client browser again, you will see
When you enter sudo./jws status again, the message will appear.
How can this problem be solved?
Solution:
Sudo vi/etc/rc. local
Add the last entry in this configuration file
/Usr/jexus/jws start
10. For the use of Jexus, see the http://www.linuxdot.net/bbsfile-3500
Start: sudo/usr/jexus/jws start
Stop: sudo/usr/jexus/jws stop
Restart: sudo/usr/jexus/jws restart
Restart the specified Website: sudo/usr/jexus/jws restart siteName
Stop the specified Website: sudo/usr/jexus/jws stop siteName
Jexus upgrade. The latest version is www.jexus.org.
Cd/tmp
Sudo/usr/jexus/jws stop
Sudo rm jexus-5.5 *
Wget http://www.linuxdot.net/down/jexus-5.5.1.tar.gz
Tar-zxvf jexus-5.5.1.tar.gz
Cd jexus-5.5.1
Sudo./upgrade
11. Configure Asp. Net Mvc4 test website
1> Create an mvc4 project in vs, publish it, and upload it to/home/icode/software/jexusmono.
2> edit the Jexus configuration file
Sudo vi/usr/jexus/siteconf/default
Change/var/www/default in the configuration file to/var/www/cnicode
Upload the test website to/home/icode/software/jexusmono/
Copy the website content to/var/www/cnicode
Cp-Rf/home/icode/software/jexusmono/*/var/www/cnicode
Restart the Jexus service sudo/usr/jexus/jws restart.
Running effect:
I have recorded documents while configuring them all day today. This document makes me feel okay. The statements I run are all bold and red, and it looks like I have a sense of attention, I don't know how to copy the document to my blog, so I uploaded the document to the Baidu online storage. If you think the blog looks uncomfortable, you can download the document.
: Link: http://pan.baidu.com/s/1sjtwX9F password: 9iji
Hao xilu recorded on February 1, June 28, 2014