2023-07-07 22:30
Composer安装项目时报错Do not run Composer as root/super user!
composer报错
解决方案
composer报错
Changed current directory to /root/.composer
Do not run Composer as root/super user! See https://getcomposer.org/root for details
解决方案
创建一个新用户和用户组,切换到新用户去执行相应的命令即可
useradd qipa250 //创建用户qipa250
ls –l /home //查看home下有了qipa250文件夹
passwd qipa250 //添加密码
tail /etc/passwd //查看最后多了一行qipa250开头的
su - qipa250 //切换到qipa250
su - root //输入root密码切回root