Unset Language
Export lang = "en"
CD/home/Kingsoft
Mkdir DistCC
CD DistCC
RPM package: rpm-IVH...
Bz2 package: tar-xvf...
Go to the directory after DistCC Decompression
./Configure & make install
Mkdir/usr/lib/DistCC
Mkdir/usr/lib/DistCC/bin
CD/usr/lib/DistCC/bin
Ln-S/usr/local/bin/DistCC gcc
Ln-S/usr/local/bin/DistCC CC
Ln-S/usr/local/bin/DistCC g ++
Ln-S/usr/local/bin/DistCC C ++
Go to the ccache decompression directory
./Configure & make install
Mkdir/Data
Mkdir/data/Cache
Mkdir/data/Cache/ccache
CD/data/Cache
Touch/var/log/distccd. Log
Vim ~ /. Bash_profile
Add/usr/lib/DistCC/bin to path
And add the following content
# ----- DistCC -----
#
Distcc_hosts = "localhost 192.168.1.1"
Distcc_verbose = 1
Distcc_log = "/var/log/DistCC. log"
Export distcc_hosts path distcc_verbose distcc_log
#
# ----- End -----
# ----- Ccache -----
#
# Export ccache_disable = 1
Ccache_dir =/data/Cache/ccache
Ccache_logfile =/data/Cache/ccache. Log
Ccache_prefix = "DistCC"
Cc = "ccache GCC"
Cxx = "ccache g ++"
Export ccache_dir ccache_logfile ccache_prefix CC cxx
#
# ----- End -----
Vim/etc/rc. Local
Distccd -- daemon -- allow 10.255.0.0/16
========================================================== =
Start monitoring: distccd -- daemon -- allow 10.255.0.0/16
View monitoring: distccmon-text 1