Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ CentOS Set the Mono environment variable     - Linux, Eclipse flash back and reinstall the JDK methods (Linux)

- Use calcurse schedule appointments and to-do in the Linux terminal (Linux)

- Ubuntu set Swap Space Tutorial (Linux)

- Qt shared memory interprocess communication (Programming)

- Linux Security and Optimization (Linux)

- Download Google Android source code under Ubuntu 4.4 (Linux)

- Ubuntu 14.04 LTS installed Hadoop 1.2.1 (distributed cluster mode) (Server)

- Linux performance optimization features Tuned and ktune (Linux)

- Oracle 10g relations with the constraint of column properties NULLABLE (Database)

- Zabbix Agent (Server)

- extundelete: the Linux-based open source data recovery tools (Linux)

- MySQL5.6.12 Waiting for commit lock lead to hang from the library housing problem analysis (Database)

- Depth study and understanding for individual users suicide DDoS attacks (Linux)

- Spring JDBC Comments (Programming)

- FreeRadius installation process record (Linux)

- Testing Oracle 11g RMAN replicate database (Database)

- Redis configuration file interpretation (Database)

- CentOS 6.5 can not connect to the network under VMware (Linux)

- Oracle Database Performance Optimization of memory disk (Database)

- Ubuntu 14.10 install KDE Plasma 5.2 (Linux)

 
         
  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:      
 
- Gentoo: startx appeared Failed to load module Problem Solving (Linux)
- CentOS 7 version how to achieve the power to start the graphical interface (Linux)
- Haproxy multi-domain certificate HTTPS (Server)
- Install DB2 V10 and Data Studio V3 under Linux (Ubuntu) environment (Database)
- About the replication of JavaScript (Programming)
- Analyzing Linux server architecture is 32-bit / 64-bit (Server)
- KVM QEMU virtual machine installation configuration under CentOS (Linux)
- PostgreSQL 9.3.2 Json type of use (Database)
- Spring WebSocket Comments (Programming)
- The execution order of Oracle WHERE condition is not from right to left (Database)
- Oracle 11g creates virtual private directory RMAN-06004 ORA-00942 error handling (Database)
- In Debian 4.3 compiler under Linux-2.6.28 kernel Summary (Programming)
- Copy files between two Linux hosts (Linux)
- Install Firefox 32 official version of the Linux system (Linux)
- Ganglia Python plug-in the process of writing notes (Linux)
- Squid proxy server (Server)
- Echo Command Examples (Linux)
- Git version rollback (Linux)
- CentOS 6.5 / 6.6 modify the default SSH port number (Linux)
- Oracle 11g logical standby achieve BI needs (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.