mwjhw216 发表于 2015-11-24 10:01:25

postfix的安装移植

  1、安装:
  1.1、解压:tar –cvzf postfix-2.8.2.tar.gz
     cd postfix-2.8.2
     按照postfix-2.8.2文件夹中INSTALL的说明文档进行安装
     make -f Makefile.init makefiles (生成Makefile文件)
  make (用来编译)
  make install (用来安装)
  其中可指定安装目录
  postfix check (检测postfix)
  postfix start (启动)
  移植:
  2、把安装文件都放到目标机上,缺什么再从开发机上找,
  3、启动post检测,出现的问题没有postfix用户和组,就增加用户和组,如果增加不上就从开发机中的/etc/group和/etc/passwd把用户和组复制过来,其他问题90%是权限问题,给予权限,
  postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/.   
postfix/postfix-script: warning: not owned by postfix: /var/lib/postfix/./master.lock
  解决:chown postfix:postfix  /var/lib/postfix/
  postfix/postfix-script: warning: group or other writable: /var/lib/postfix
  解决 chmod og-w /var/lib/postfix
  4、
  # postfix check   
BusyBox v1.5.1 (2011-01-12 17:06:10 CST) multi-call binary
  Usage: find
  Search for files in a directory hierarchy.  The default PATH is   
the current directory; default EXPRESSION is '-print'
  EXPRESSION may consist of:   
        -follow         Dereference symlinks      
        -name PATTERN   File name (leading directories removed) matches PATTERN      
        -print          Print (default and assumed)      
        -print0         Delimit output with null characters rather than      
                        newlines      
        -type X         Filetype matches X (where X is one of: f,d,l,b,c,...)      
        -perm PERMS     Permissions match any of (+NNN); all of (-NNN);      
                        or exactly (NNN)      
        -mtime DAYS     Modified time is greater than (+N); less than (-N);      
                        Or exactly (N) days      
        -mmin MINS      Modified time is greater than (+N); less than (-N);      
                        or exactly (N) minutes      
        -exec CMD       Execute CMD with all instances of {} replaced by the      
                        files matching EXPRESSION
  find命令不兼容从开机上复制过来就行了,问题如下:
页: [1]
查看完整版本: postfix的安装移植