Board logo

標題: 純script裝機 [打印本頁]

作者: 3ldk    時間: 2017-8-30 13:21     標題: 純script裝機

linux係咪可以純script裝機?

裝software可以打個command落sh file

但改setting點算?
例如係某個config file入面加入一句setting,
又或者改某個config file的某一行setting
作者: HKEPC852    時間: 2017-8-30 14:00

用vi xxx.conf
vi類似windows的notepad
改完config file就restart service就ok
作者: eagelfall    時間: 2017-8-30 15:34

linux 有例如 sed 呢類 command 去改 text (i.e. script) file
其實 script, config, patch, ... file 都係 text file
行 patch file 其實就係將舊 config file update 做新 config file





歡迎光臨 電腦領域 HKEPC Hardware (https://h2.hkepc.com/forum/) Powered by Discuz! 7.2