由于sudo运行程序不继承当前用户的环境变量,所以不能使用export var=value; sudo command的方式执行。解决办法:
sudo var=value command
1520
617
603
258
202
近期评论