而不是修補,我會建議安裝「numactl」。該修補程序是針對源代碼樹製作的,而不是安裝的版本,因此文件都是錯誤的。您仍然可以使用該補丁,但運行:
cd /etc/init.d
sudo patch -p2 < /tmp/init.d.patch
然後發出警告,不知道名字,並讓您自行輸入。輸入:
mongodb
我會看起來像:
[email protected]:~ $ cd /etc
[email protected]:/etc $ cd init.d/
[email protected]:/etc/init.d $ sudo patch -p2 < /tmp/init.d2.patch
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git debian/init.d debian/init.d
|old mode 100644
|new mode 100755
|index 7e5169d..4577291
|--- debian/init.d
|+++ debian/init.d
--------------------------
File to patch: mongodb
patching file mongodb
[email protected]:/etc/init.d $
補丁上一個叫做'init.d'文件,但在運行'/ etc'有一個叫'init.d'目錄。 –