Tôi muốn tạo một tệp bản vá kiểu SVN cho httpd.conf
để tôi có thể dễ dàng áp dụng nó cho các máy chủ khác.Làm thế nào để tạo và áp dụng bản vá SVN?
Nếu tôi làm
cd /root
diff -Naur /etc/httpd/conf/httpd.conf_original /etc/httpd/conf/httpd.conf > httpd.patch
cp /etc/httpd/conf/httpd.conf_original /etc/httpd/conf/httpd.conf
patch < httpd.patch
tôi nhận được:
can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|--- /etc/httpd/conf/httpd.conf_original 2012-04-26 13:36:08.331068438 +0200
|+++ /etc/httpd/conf/httpd.conf 2012-04-26 14:27:36.857075085 +0200
--------------------------
File to patch:
Câu hỏi
Tôi đang làm gì sai?