Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Php and MySQL command add to the environment variable method in Linux system     - Linux System Getting Started Learning: DeVeDe installed on Linux to create a video DVD (Linux)

- CentOS7 iptables (Linux)

- Jetty JNDI Development combat (Linux)

- RabbitMQ installation, configuration, monitoring (Linux)

- Linux netstat command to get started (Linux)

- How to Install Puppet in the Ubuntu 15.04 (Server)

- The Linux firewall is configured to use proxy (Linux)

- How to install Eclipse Luna IDE on CentOS 7 / RHEL 7 (Linux)

- Upgrading to MySQL 5.7.9 MySQL 5.6.23 (Database)

- GitLab issued Merge Request return error 500 when the two solutions log (Linux)

- Making Linux root file system problems on-link library (Programming)

- Puppet centralized configuration management system (Server)

- Fun music library in Linux using command line (Linux)

- String JavaScript type system (Programming)

- Linux Log (Linux)

- NGINX Plus now fully supports HTTP / 2 (Server)

- You must ask yourself four questions before deploying Docker (Server)

- Linux system commands to view hardware information (Linux)

- Linux environment variable configuration and save places (Linux)

- How to create a new file system / partitions under Linux terminal (Linux)

  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.
- MySQL optimization tabs (Database)
- Tab set to four spaces in Vim (Linux)
- libreadline.so.6: can not open shared object file problem solution (Linux)
- TypeScript basic grammar (Programming)
- Python, and / or (Programming)
- Five kinds of IO Model under Linux (Programming)
- CentOS 5.x install Lua 5.2.3 error (LIBS = -lncurses) (Linux)
- Use HugePages optimize memory performance (Database)
- Grep how to find files based on file contents in UNIX (Linux)
- OpenSSL: implementation creates a private CA, certificate signing request Explanation (Server)
- How to fix apt-get update can not add a new CD-ROM error (Linux)
- impdp error ORA-31631, ORA-39122 (Database)
- Not safe procedure under Linux (Linux)
- Keepalived + Nginx Installation and Configuration (Server)
- SteamOS installation under Ubuntu 14.04 (Linux)
- Restore Oracle Database Cold backup and database reconstruction emca (Database)
- Linux directory structure (Linux)
- Ubuntu user use PPA to install Uget 2.0.5 (Linux)
- Encounter ORA-00600: internal error code, arguments: [4194] ORA-1552 (Database)
- To install and use the Doxygen under Linux (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.