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.
我正在开发一个需要更改的 java 应用程序:ip、网关、默认路由....但是这个应用程序没有 root 权限,由守护程序用户执行。
如何设置它以便应用程序可以编辑文件: /etc/sysconfig/network-scripts/ifcfg-eth0 和 /etc/sysconfig/network ?
谢谢!
启动应用程序sudo以授予它 root 权限,或调整“守护程序用户”的权限,以便它可以编辑/etc/sysconfig/network-scripts/ifcfg-eth0和/etc/sysconfig/network.
sudo
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network