Questions tagged «rhel7»

8
如何将Systemd服务的输出重定向到文件
我正在尝试将systemd服务的输出重定向到文件,但它似乎不起作用: [Unit] Description=customprocess After=network.target [Service] Type=forking ExecStart=/usr/local/bin/binary1 agent -config-dir /etc/sample.d/server StandardOutput=/var/log1.log StandardError=/var/log2.log Restart=always [Install] WantedBy=multi-user.target 请更正我的方法。
171 linux  centos7  systemd  rhel  rhel7 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.