windows
- windows 自动启动 指定程序(vmware 不可用)
选择“开始”按钮 ,然后滚动查找你希望在启动时运行的应用。
右键单击该应用,选择“更多”,然后选择“打开文件位置”。 此操作会打开保存应用快捷方式的位置。 如果没有“打开文件位置”选项,这意味着该应用无法在启动时运行。
文件位置打开后,按 Windows 徽标键+ R,键入“shell:startup”,然后选择“确定”。 这将打开“启动”文件夹。
将该应用的快捷方式从文件位置复制并粘贴到“启动”文件夹中。
TODO
linux 发行版 systemd 自启动
cat ~/bin/doc_web_start.sh
#!/bin/bash
python3 -m http.server --directory /home/pop/doc/dsp_user_guide/build/html --bind 0.0.0.0 8000 > /dev/null 2>&1
$ cat /etc/systemd/system/doc.service
[Unit]
Description=My Service Description
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
User=pop
ExecStart=/home/pop/bin/doc_web_start.sh
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable my_startup.service
sudo systemctl start my_startup.service