Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ CentOS Set the Mono environment variable     - Compare several ways to transfer files between Linux hosts (Linux)

- Linux security settings (Linux)

- Acquaintance C ++: the most simple C ++ program (Programming)

- C ++ Supplements - References (Lvalue Reference, Rvalue Reference) (Linux)

- Java source implementation of the observer pattern instance (Programming)

- CentOS 5.11 Open VNC access (Linux)

- Analyzing Linux server architecture is 32-bit / 64-bit (Server)

- Use ARChon runtime environment to run Android apps on Ubuntu (Linux)

- Unity Greeter Badges: the lost session icon back to the login screen Ubuntu (Linux)

- Linux environment password security settings (Linux)

- Linux RAID Set RAID 10 or 0 + 1 (Linux)

- Java Concurrency -volatile keywords (Programming)

- namespace mechanism Linux kernel analysis (Linux)

- CentOS 6/7 Series Docker Installation (Linux)

- Mysql binlog resolve the garbage problem decryption (Database)

- Ubuntu install virtual machine software VirtualBox 4.3.10 (Linux)

- Ubuntu how to install and use Objective-C (Linux)

- Installation and use Docker under Ubuntu 14.04 (Linux)

- Linux server network penetration testing (Linux)

- BCP importing and exporting large amounts of data Practice (Database)

 
         
  CentOS Set the Mono environment variable
     
  Add Date : 2018-11-21      
         
       
         
  CentOS Set the Mono environment variable

GitHub has scripts to install Mono directly from a script, as described at https://github.com/nathanb/iws-snippets/tree/master/mono-install-scripts/Fedora.

1, install the latest Mono environment Mono-2.11

Mkdir mono-2.11
Cd mono-2.11
Wget --no-check-certificate https://github.com/nathanb/iws-snippets/tree/master/mono-install-scripts/fedora/install_mono-2.11.sh
Chmod 755 install_mono-2.11.sh
./install_mono-2.11.sh

2. Set the Mono environment variable on CentOS

The installation script will Mono installed to / opt / mono-2.11 /, Mono need to join the directory system $ PATH variable

Method 1: Add a variable in the / etc / profile file [Valid for all users (permanent)]
Use the VI to add variables to the file / etc / profile, which is valid for all Linux users and is "permanent".
[Root @ SNDA-192-168-15-161 ~] # vi / etc / profile
Add the following two lines to the end of the file
PATH = / opt / mono-2.11 / bin: $ PATH
Export PATH

If the changes just take effect immediately, the need to implement the following code
[Root @ SNDA-192-168-15-161 ~] # source / etc / profile

Method two: /etc/profile.d/ directory to create a Mono configuration

Create a new mono.sh

Initialize the environment variable in this file

Export PATH = $ PATH: /opt/mono-2.11/bin

If the changes just take effect immediately, the need to implement the following code

[Root @ SNDA-192-168-15-161 profile.d] # source mono.sh

Now you can directly execute the Mono command

[Root @ SNDA-192-168-15-161 profile.d] # mono -V
Mono JIT compiler version 2.11.3 (tarball Thu Oct 11 07:46:58 CST 2012)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. Www.mono-project.com
        TLS: __thread
        SIGSEGV: altstack
        Notifications: epoll
        Architecture: amd64
        Disabled: none
        Misc: softdebug
        LLVM: supported, not enabled.
        GC: Included Boehm (with typed GC and Parallel Mark)
     
         
       
         
  More:      
 
- MySQL query plan key_len know all (Database)
- HAproxy let IP recording back-end RS (Server)
- CMake Quick Start Tutorial (Linux)
- Iptables on the request URL for IP access control (Linux)
- Construction CA certificate using OpenSSL command line (Server)
- RM Environment Database RMAN Backup Strategy Formulation (Database)
- Ten minutes to find out the character set and character encoding (Linux)
- CentOS7 installation configuration (Server)
- in no backup ex: error: Xin Tourou ah backup child process has Singles DAT / US person / bin / in no backup ex (Database)
- PostgreSQL vacuum principle of a function and parameters (Database)
- Linux basic introductory tutorial ---- Software Installation under Linux (Linux)
- KVM add virtual disks (Linux)
- Let CentOS perform PPPoE dial-up, ADSL can be used in a network environment! (Linux)
- CentOS yum source as the default setting methods in DVD (Linux)
- Oracle 11G R2 DataGuard structures (Database)
- Java application server WildFly (Server)
- Spark local development environment to build (Server)
- Use install_updates upgrade GAMIT / GLOBK (Linux)
- Zabbix system email alert Python script (Server)
- CentOS 6.0 system security level (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.