Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ CentOS Set the Mono environment variable     - MySQL migration tool used in the production environment (Database)

- Teach you the Ubuntu Server enabled SSH multifactor authentication (Server)

- HTTPS Encryption Algorithm (Linux)

- Some safety precautions of Linux servers (Linux)

- Binary tree traversal recursive and non-recursive (cyclic) traversal achieve (Programming)

- VMware 8 installation configuration Win7, CentOS-7 Wizard (Linux)

- Linux remote wake the computer original code [C] (Linux)

- Custom Android UI template Comments (Programming)

- How to use the command line ftp upload and download files (Linux)

- Linux formatted partition error Could not stat / dev / sda No such file or directory Solution (Linux)

- JavaScript notes --Objects (Programming)

- Linux with Windows Explorer as a security system (Linux)

- Linux pwd command learning experience (Linux)

- How to turn Java String into Date (Programming)

- LVM management parameters commonly used commands explained in detail (Linux)

- Java exception handling mechanism (Programming)

- Debian 7.7 Installation and Configuration (Linux)

- How VirtualBox and VMware virtual machine conversion (Linux)

- Story timestamp and time zones: daily programmer (Programming)

- Oracle () trunc function usage (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

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)
- CentOS 6.5 upgrade to CentOS 7 (Linux)
- MySQL and Oracle time zone settings compare (Database)
- JavaScript in null undefined summary (Linux)
- 64 Ubuntu 15.04 Linux kernel upgrade to Linux 4.1.0 (Linux)
- Use UDEV SCSI Rules configured ASM on Oracle Linux 5 and 6 (Database)
- How to disable UEFI to install Linux on Win8 (Linux)
- Upload the project to GitHub, synchronous remote repository Github (Linux)
- Spring Data study notes -Helloworld (Programming)
- Android screen rotation processing and ProgressDialog the best AsyncTask (Programming)
- Linux system security knowledge (Linux)
- How to use Evernote in the Linux command line (Linux)
- ThinkPad X201i installation notes Debian 7.5 (Linux)
- MongoDB Installation under CentOS 6.6 (Database)
- Paint with Vim (Linux)
- Windows Server 2012 R2 Datacenter install SQL Server 2016 CTP (Database)
- Linux character device - a simple character device model (Linux)
- Use the top command (Linux)
- JQuery implements the same content merge cells (Programming)
- Repair fatal error in Linux: lame / lame.h: No such file or dir Error (Linux)
- Linux instructions and examples GPG encryption and decryption (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.