[英]How to set image path in linux command line?
How to set image path in linux command line ? 如何在Linux命令行中设置映像路径?
I tried to use this image path 我尝试使用此图像路径
/home/testuser/public_html/img/test.jpg
With this code in linux command line ( putty
) 在Linux命令行中使用此代码(
putty
)
jpegoptim --max=75 /home/testuser/public_html/img/test.jpg
But not work, How can i do that ? 但是不行,我该怎么办?
Make sure the file exists and that it is readable. 确保该文件存在并且可读。 The directory should be writable too.
该目录也应可写。
Try 尝试
sudo chmod 666 /home/testuser/public_html/img/test.jpg
and 和
sudo chmod 777 /home/testuser/public_html/img
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.