Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Php and MySQL command add to the environment variable method in Linux system     - Elaborate .NET Multithreading: Using Task (Programming)

- C ++ casts New Standard Comments (Programming)

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

- 20 open source / commercial Linux server management control panel (Server)

- How to disable IPv6 on Ubuntu, Linux Mint, Debian (Linux)

- Linux operating system security management skills (Linux)

- SecureCRT 7.0 Log Ubuntu 12.04 server via SSH service under Vmware (Server)

- DataGuard a hardware issue warnings found (Database)

- C ++ containers (Programming)

- numpy and SciPy installation under Python for scientific computing package (Linux)

- How to configure MariaDB replication in CentOS Linux (Database)

- Why is better than Git SVN (Linux)

- Linux and Windows Security Topics (Linux)

- CentOS system Amoeba + MySQL Master-slave configuration (Database)

- linux remote control software (Linux)

- JavaScript basic types and type conversion (Programming)

- Installation salt-minion on RHEL5 (Linux)

- VMware6 achieve nat Internet (Linux)

- Ubuntu Gnome and Fedora 22 Gnome desktop, extended to achieve global menu (Linux)

- Java Generics (Programming)

 
         
  Php and MySQL command add to the environment variable method in Linux system
     
  Add Date : 2017-04-13      
         
       
         
  After installing php and MySQL on Linux CentOS system for ease of use, you need to php and mysql command added to the system command, if not previously added to the environment variables, perform "php -v" command to view the current php version information from time to time , it prompts errors command does not exist, here we explain in detail under the linux php and mysql is added to the environment variable approach (assuming php and mysql are installed in / usr / local / webserver / php / and / usr / local / webserver / mysql / in).

Method one: Run the command directly export PATH = $ PATH: / usr / local / webserver / php / bin and export PATH = $ PATH: / usr / local / webserver / mysql / bin
Using this method, valid only for the current session, that is to say whenever the log out or log off your system later, PATH setting will fail, just a temporary effect.

Method two: Perform vi ~ / .bash_profile PATH line to modify the file in the / usr / local / webserver / php / bin and / usr / local / webserver / mysql / bin was added to the PATH = $ PATH: $ HOME / bin after row
This method is effective only for the currently logged on user

Method three: Modify / etc / profile file to make it permanent entry into force, and applies to all users of the system at the end of the file add the following two lines of code
PATH = $ PATH: / usr / local / webserver / php / bin: / usr / local / webserver / mysql / bin
export PATH

Finally: Run the source / etc / profile or execute command ./profile point to make changes to take effect, can be viewed by executing the echo $ PATH command is added successfully.
     
         
       
         
  More:      
 
- Java and Python use make way dictionary word search script (Programming)
- Linux compiler installation Redis (Database)
- Install Unity 8 preview version of the desktop in Ubuntu (Linux)
- C ++ containers (Programming)
- Ubuntu configuration SVN and http mode access (Server)
- Oracle can not change the tablespace to backup mode in non-archive mode (Database)
- Linux operating system security settings initial understanding (Linux)
- Ubuntu 14.10 Server configuration wireless Internet access (Server)
- Nginx reverse proxy and self-signed https (Server)
- Using the Linux folder wc statistics number of lines of code for all files (including subdirectories) (Linux)
- MySQL database to open a remote connection method (Database)
- GitHub multiplayer co-development configuration (Linux)
- Programmer editor Vim (Linux)
- exp / imp Export Import version of the problem and the ORA-6550 error (Database)
- [Android] Eclipse does not update the Android SDK Manager solution [using GoAgent] (Programming)
- JavaScript Advanced Programming notes event capture and event bubbling (Programming)
- Shell Programming Regular Expressions (Programming)
- Go Languages Reviews (Programming)
- Linux (RHEL6 CENTOS6 OLE6) VNC-SERVER Installation and Configuration (Server)
- Servlet life cycle works (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.