两种方式。
第一种:
新建xxx.sh
,填入脚本命令,比如我想开机自启动rtorrent
,只需要填入:
rtorrent
即可。然后给与权限。
chmod 777 rtorrent
最后打开系统偏好设置
—用户与群组
—登陆项
然后将sh文件
拖进去即可。
第二种:
sudo vim ~/Library/LaunchAgents/rtorrent.plist
然后填入
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd > <plist version="1.0"> <dict> <key>Label</key> <string>rtorrent</string> <key>ProgramArguments</key> <array> <string>/pt/rtorrent</string> </array> <key>KeepAlive</key> <true/> <key>RunAtLoad</key> <true/> </dict> </plist> |
注意我高亮的两行,改为自己的。
然后终端输入:
sudo chown root ~/Library/LaunchAgents/rtorrent.plist
sudo launchctl load -w ~/Library/LaunchAgents/rtorrent.plist
试试看看行不行
非常好
能否给个联系方式,交流一下请教一下
我感觉我解决了这个Netframework的问题了,安装好要求重启,重启以后安装deepl,但是又出问题了,显示there was an error while installing the appl
请您详细教我一下,怎么下载安装您说的这个.NET
又来麻烦您了,我下载好了,安装的时候提示:Failed to install the .NET Framework, try installing the latest version manuall
win7旗舰版
感谢回复。不是直接点就能安装啊,下载下来的是个压缩文件,解压后有6个内容:.background、.HFS+Private Directory Data、[HFS+Private Data]、Deep