您的当前位置:首页 --> CentOS入门 |
CentOS PATH环境变量 |
浏览次数:1729 关键词 ( 环境变量 CentOS PATH ) |
在Shell中,执行如下命令 # ./configure --with-php-config=/opt/lampp/bin/php-config 提示configure: error: mysql_config program not found的错误。没办法,只好配置环境变量。 查看当前系统的环境变量有哪些 # echo $PATH 编辑/etc/profile文件(Shift+g键跳转至该文件的最后一行,按 i 键进入插入编辑模式) # vim /etc/profile 输入所缺失的bin目录(多个目录以 : 分割即可) PATH=$PATH:/opt/lampp/bin export PATH ![]()
zsh不会读取用户目录下的 .bash_profile 和 .bashrc 文件,在 ~/.zshrc里添加 source /etc/profile修改生效 # source /etc/profile
|
下载次数:7 |
下载地址:点击下载 |
本资源为程序自动采集,如有侵权请联系我们移除 admin#80vps.com 来信请将#替换为@ |
下一条 centos系统中网络配置相关 上一条 CentOS发行版关闭图形界面的方法 |