Linux command
distccd 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start distcc daemon
distccd --daemon
Start with allowed hosts
distccd --daemon --allow [192.168.1.0/24]
Start in foreground
distccd --no-detach --daemon --allow [0.0.0.0/0]
Specify listen address
distccd --daemon --listen [0.0.0.0]
说明
distccd is the distcc server daemon that receives and processes compilation jobs from distcc clients on a network. It accepts preprocessed source code, compiles it using local compilers, and returns the object files to the requesting client. The daemon listens on TCP port 3632 by default and should be configured with access control to prevent unauthorized compilation requests. Security is implemented through IP address allowlists specified with the --allow option, as the protocol itself provides no authentication. distccd can limit the number of concurrent compilation jobs to prevent system overload. It logs to syslog by default but can be configured to write to specific log files. The daemon typically runs as a dedicated user with limited privileges for security.
参数
- --daemon
- Run as a daemon.
- --allow _spec_
- Allow connections from specified addresses.
- --listen _addr_
- Listen on specified address.
- --no-detach
- Don't detach from terminal.
- --port _port_
- Listen on specified port (default 3632).
- --jobs _n_
- Maximum concurrent jobs.
- --log-file _file_
- Log to file instead of syslog.
FAQ
What is the distccd command used for?
distccd is the distcc server daemon that receives and processes compilation jobs from distcc clients on a network. It accepts preprocessed source code, compiles it using local compilers, and returns the object files to the requesting client. The daemon listens on TCP port 3632 by default and should be configured with access control to prevent unauthorized compilation requests. Security is implemented through IP address allowlists specified with the --allow option, as the protocol itself provides no authentication. distccd can limit the number of concurrent compilation jobs to prevent system overload. It logs to syslog by default but can be configured to write to specific log files. The daemon typically runs as a dedicated user with limited privileges for security.
How do I run a basic distccd example?
Run `distccd --daemon` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --daemon do in distccd?
Run as a daemon.