最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

麒麟v10專業(yè)版本添加rc.local的方法

2022-12-22 15:03 作者:信創(chuàng)技術(shù)聯(lián)盟  | 我要投稿


1、切換至root,建立rc-local.service文件

sudo su

vim /etc/systemd/system/rc-local.service


2、在里面寫入如下內(nèi)容

[Unit]?

Description=/etc/rc.local Compatibility?

ConditionPathExists=/etc/rc.local?

[Service]?

Type=forking?

ExecStart=/etc/rc.local start?

TimeoutSec=0?

StandardOutput=tty?

RemainAfterExit=yes?

SysVStartPriority=99?

[Install]

WantedBy=multi-user.target


3、然后在創(chuàng)建文件rc.local

vim /etc/rc.local


4、里面寫入下面內(nèi)容(紅色部分就是開機(jī)所要執(zhí)行的腳本和命令)?

#!/bin/sh -e?


sleep 3

mount -t cifs -o iocharset=utf8,username=your_username,password=your_password,uid=1000,gid=1000 //192.168.123.1/軟件 /home/kylin/桌面/share_test

mount -t cifs -o iocharset=utf8,username=your_username,password=your_password,vers=1.0 //192.168.123.1/7F-file-62 /home/kylin/桌面/share_test

exit 0


5、加上權(quán)限

chmod +x /etc/rc.local


6、啟動(dòng)服務(wù)

systemctl enable rc-local


7、開啟服務(wù)

systemctl start rc-local.service






以上內(nèi)容來源于技術(shù)論壇“信創(chuàng)技術(shù)聯(lián)盟”https://www.cnxclm.com/read-3690-1.html,歡迎對(duì)信創(chuàng)感興趣的朋友們一同到論壇相互討論交流!


麒麟v10專業(yè)版本添加rc.local的方法的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
安康市| 乌兰浩特市| 永泰县| 邵武市| 曲水县| 克拉玛依市| 平遥县| 自治县| 玉山县| 娄底市| 威海市| 博白县| 嫩江县| 湘阴县| 阳泉市| 密云县| 洱源县| 元谋县| 北碚区| 龙南县| 兴仁县| 铜川市| 合肥市| 四川省| 日喀则市| 确山县| 洪雅县| 舞钢市| 宁德市| 新乡市| 大厂| 武义县| 左权县| 商丘市| 大关县| 汉沽区| 宁陕县| 清苑县| 荃湾区| 商南县| 长葛市|