三、安裝應用軟體
1、首先安裝ruby
tar -zxvf ruby-1.8.7.tar.gz
cd ruby-1.8.7
./configure --prefix=/usr/local/ruby
make
make install
作業系統path路徑:
vi /etc/profile
export path=/usr/local/ruby/bin:$path
檢視ruby --version版本
顯示ruby的lib搜尋路徑:
$ ruby -e 'puts $:'
安裝 rubygems
ruby setup.rb
puppet要求gem在1.3.4以下.
2、安裝facter
tar -zxvf facter-1.6.18.tar.gz
cd facter-1.6.18
ruby install.rb
3、安裝puppet
tar -zxvf puppet-2.7.22.tar.gz
cd puppet-2.7.22/
ruby install.rb
[root@zserpap puppet-2.7.22]# cp conf/auth.conf /etc/puppet/
[root@zserpap puppet-2.7.22]# cp conf/namespaceauth.conf /etc/puppet/
[root@zserpap puppet-2.7.22]# cp conf/redhat/puppet.conf /etc/puppet/
[root@zserpap puppet-2.7.22]# cp conf/redhat/server.init /etc/init.d/puppetmaster
[root@zserpap puppet-2.7.22]# chmod +x /etc/init.d/puppetmaster
[root@zserpap puppet-2.7.22]# /etc/init.d/puppetmaster start
starting puppetmaster: /bin/bash: /usr/sbin/puppetmasterd: no such file or directory
[failed]
[root@zserpap puppet-2.7.22]# cp sbin/puppetmasterd /usr/sbin/
[root@zserpap puppet-2.7.22]# chmod -r 777 /usr/sbin/puppetmasterd
[root@zserpap puppet-2.7.22]# cp sbin/puppetmasterd /bin/puppetmasterd
[root@zserpap puppet-2.7.22]# chmod -r 777 /bin/puppetmasterd
[root@zserpap puppet-2.7.22]# /etc/init.d/puppetmaster start
starting puppetmaster: /usr/bin/env: ruby: no such file or directory
[failed]
[root@zserpap puppet-2.7.22]# ls /usr/local/ruby/bin/
erb filebucket pi puppetdoc rdoc ruby
facter irb puppet ralsh ri testrb
[root@zserpap puppet-2.7.22]# ln -s /usr/local/ruby/bin/ruby /usr/bin/
[root@zserpap puppet-2.7.22]# /etc/init.d/puppetmaster start
starting puppetmaster: could not prepare for execution: got 6 failure(s) while initializing: change from absent to directory failed: could not set 'directory on ensure: could not find group puppet; change from absent to directory failed: could not set 'directory on ensure: could not find group puppet; change from absent to directory failed: could not set 'directory on ensure: could not find group puppet; change from absent to directory failed: could not set 'directory on ensure: could not find group puppet; change from absent to directory failed: could not set 'directory on ensure: could not find group puppet; change from absent to directory failed: could not set 'directory on ensure: could not find group puppet
[failed]
[root@zserpap puppet-2.7.22]# useradd puppet
[root@zserpap puppet-2.7.22]# /etc/init.d/puppetmaster start
starting puppetmaster: [ ok ]
[root@zserpap sbin]# pwd
/usr/local/src/puppet-2.7.22/sbin
cp -r * /usr/sbin/
[root@zserpap manifests]# chkconfig --add puppetmaster
[root@zserpap manifests]# chkconfig puppetmaster on
客戶端其它安裝和伺服器安裝相同,除了用 cp conf/redhat/client.init /etc/init.d/puppet
tar -zxvf puppet-2.7.22.tar.gz
cd puppet-2.7.22/
ruby install.rb
[root@pyytestdb puppet-2.7.22]# cp conf/auth.conf /etc/puppet/
[root@pyytestdb puppet-2.7.22]# cp conf/namespaceauth.conf /etc/puppet/
[root@pyytestdb puppet-2.7.22]# cp conf/redhat/puppet.conf /etc/puppet/
[root@pyytestdb puppet-2.7.22]# cp conf/redhat/client.init /etc/init.d/puppet
[root@pyytestdb puppet-2.7.22]# chmod +x /etc/init.d/puppet
[root@pyytestdb puppet-2.7.22]# service puppet start
starting puppet: /bin/bash: /usr/sbin/puppetd: no such file or directory
[failed]
[root@pyytestdb puppet-2.7.22]# cp sbin/puppetd /usr/sbin/puppetd
[root@pyytestdb puppet-2.7.22]# service puppet start
starting puppet: /usr/bin/env: ruby: no such file or directory
[failed]
[root@pyytestdb puppet-2.7.22]# chmod +x /usr/sbin/puppetd
[root@pyytestdb puppet-2.7.22]# service puppet start
starting puppet: /usr/bin/env: ruby: no such file or directory
[failed]
[root@pyytestdb puppet-2.7.22]# ln -s /usr/local/ruby/bin/ruby /usr/bin/
[root@pyytestdb puppet-2.7.22]# /etc/init.d/puppet start
starting puppet: [ ok ]
啟動服務
chkconfig puppet on
service puppet start
原始碼安裝 mysql 原始碼安裝 mysql
yum y install ncurses devel gcc bzip2 bison 安裝解壓命令 安裝命令 wget http 複製的鏈結.解壓命令 tar xf cmake檔案.tar 編譯工具cmake安裝 cmake命令版本 2.8以上 將資料夾放到指定目錄整理 mv usr local ...
python 原始碼安裝教程 原始碼安裝python3
裝好yum源和epel源 解壓安裝 root localhost a ls python 3.6.0.tgz root localhost a tar xf python 3.6.0.tgz c usr local src root localhost a cd usr local src root...
解除安裝原始碼安裝mysql 原始碼安裝MySQL
原始碼安裝mysql tiger 2019 年 01 月 07 日 原始碼安裝mysql 獲取包 上傳包至伺服器並解壓 安裝依賴yum install ncurses devel cmake y 配置mysql vim cmake.shcmake dcmake install prefix usr ...