Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经安装了 Ampps,然后添加/usr/local/ampps/php/bin到/ect/environment,当我重新启动我的笔记本电脑时,一切都解决了,之后我使用sudo apt-get install composer并安装了 ubuntu 的依赖项,包括 php,现在我php --ini正在显示路径/usr/local/ampps/php/bin
/usr/local/ampps/php/bin
/ect/environment
sudo apt-get install composer
php --ini
如何将其更改回 ampps 文件夹?
您可以像这样添加新路径:
vi ~/.bashrc export PATH=$PATH:/usr/local/ampps/php/bin
您可以随意编辑路径