Install the latest version of mono under CentOS and configure the boot entry for the WINDWOS service

Source: Internet
Author: User
Tags syslog

One: Install mono, this step refers to the official website

1: Configure the Yum repository

#Centos 7
YuminstallYum-"http://keyserver.ubuntu.com/pks/lookup?op=get& Search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef"yum-config-manager--add-repo http: download.mono-project.com/repo/centos7/
6 Yum Install Yum-"http://keyserver.ubuntu.com/pks/lookup?op=get&search= 0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef"yum-config-manager--add-repo http:// download.mono-project.com/repo/centos6/

2: Install Mono

Yum Installmono-devel# This is the official website of the installation instructions, under normal circumstances, the installation of devel can be! , install all, you can add the corresponding package names! the package Mono-Devel should is installed to compile code. the package Mono-complete should be installed toInstallEverything-this should cover most cases of"Assembly not found"errors. the package Referenceassemblies-PCL should be installed forPCL compilation Support-this would resolve most cases of"Framework not installed:. Netportable"errors during software compilation. The package XSP should is installed forRunning ASP. Applications.

Two: Configure the boot entry for Windows programs

1:vim/etc/init.d/mfgremotingserver, and enter the following:


#!/bin/bash# #chkconfig:2345 - the#description: Remotingservicestart () {
#这里面的-L is the specified lock file followed by the EXE program's absolute path, can be viewed through the mono-service command help Mono-service-l:/root/remotingservice-lock/home/setquestion/Mfg.setquestion.remotingserver.exe}stop () {Kill`Cat/root/remotingservice-Lock '} Case " $" inchstart) Start; stop) stop;; restart) Stopstart;; *)Echo$"Usage: $ {Start|stop|restart}"Exit1Esac

2: Execution of service Mfgremotingserver stop will encounter Env:/etc/init.d/mfgremotingserver:permission denied, the workaround is as follows:

chmod +x/etc/init.d/--add Mfgremotingserverchkconfig mfgremotingserver on

The relevant parameters of 3:mono-service are as follows:

must specify at least the assembly Nameusage is:/usr/bin/mono-Service [options] service-d:<directory>working Directory-l:<lockfile> Lockfile(Default is/tmp/<service>. Lock)-m:<syslog name> name to showinchsyslog-n:<service name>Name of service to start (default is first defined)--debug don't send to background nor redirect input/Output--no-daemon don't send to background nor redirect input/outputcontrolling the service:Kill-USR1 'Cat<lockfile>' pausing serviceKill-USR2 'Cat<lockfile>' continuing serviceKill`Cat<lockfile> ' Ending service

PS: If given in the installation and configuration process have any questions, hope message.

Install the latest version of mono under CentOS and configure the boot entry for the WINDWOS service

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.