重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
客户端
创新互联公司致力于互联网网站建设与网站营销,提供成都做网站、成都网站制作、网站开发、seo优化、网站排名、互联网营销、小程序设计、公众号商城、等建站开发,创新互联公司网站建设策划专家,为不同类型的客户提供良好的互联网应用定制解决方案,帮助客户在新的全球化互联网环境中保持优势。客户端环境
- [root@web01 ~]# lsb_release -a
- LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
- Distributor ID: CentOS
- Description: CentOS release 5.9 (Final)
- Release: 5.9
- Codename: Final
- [root@web01 ~]# cat /etc/redhat-release
- CentOS release 5.9 (Final)
- [root@web01 ~]# uname -a
- Linux web01 2.6.18-348.el5 #1 SMP Tue Jan 8 17:53:53 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
安装:
- [root@web01 ~]# mkdir soft
- [root@web01 ~]# cd soft/
- [root@web01 soft]# wget http://puppetlabs.com/downloads/facter/facter-1.7.0.tar.gz
- [root@web01 soft]# wget http://puppetlabs.com/downloads/puppet/puppet-2.7.21.tar.gz
- [root@web01 soft]# yum -y install ruby ruby-devel ruby-libs ruby-shadow
- [root@web01 soft]# tar xf puppet-2.7.21.tar.gz
- [root@web01 soft]# tar xf facter-1.7.0.tar.gz
- [root@web01 soft]# cd facter-1.7.0
- [root@web01 facter-1.7.0]# ./install.rb
- [root@web01 facter-1.7.0]# cd ../puppet-2.7.21
- [root@web01 puppet-2.7.21]# ./install.rb
- [root@web01 puppet-2.7.21]# cp conf/namespaceauth.conf /etc/puppet/
- [root@web01 puppet-2.7.21]# cp conf/redhat/puppet.conf /etc/puppet/
- [root@web01 puppet-2.7.21]# cp conf/redhat/client.init /etc/init.d/puppet
- [root@web01 puppet-2.7.21]# chmod +x /etc/init.d/puppet
- [root@web01 puppet-2.7.21]# chkconfig puppet on
- [root@web01 puppet-2.7.21]# chmod 644 /etc/passwd
- [root@web01 puppet-2.7.21]# chmod 644 /etc/shadow
- [root@web01 puppet-2.7.21]# chmod 644 /etc/group
- [root@web01 puppet-2.7.21]# chmod 644 /etc/gshadow
- [root@web01 puppet-2.7.21]# puppetmasterd --mkusers
添加hosts
- [root@web01 puppet-2.7.21]# vim /etc/hosts 添加server
- 127.0.0.1 localhost.localdomain localhost web01
- ::1 localhost6.localdomain6 localhost6
- 172.16.10.252 Centos-server
- 172.16.10.2 web01
- [root@web01 ~]# vim /etc/puppet/puppet.conf
- Listen = true
- Server = Centos-server
- [root@web01 puppet-2.7.21]# vim /etc/puppet/namespaceauth.conf
- [fileserver]
- allow *
- [puppetmaster]
- allow *
- [puppetrunner]
- allow *
- [puppetbucket]
- allow *
- [puppetreports]
- allow *
- [resource]
- allow *
- [root@web01 puppet-2.7.21]# /etc/init.d/puppet start
- Starting puppet: [ OK ]
- [root@web01 puppet-2.7.21]# netstat -tulnp
- Active Internet connections (only servers)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:8140 0.0.0.0:* LISTEN 6491/ruby
- tcp 0 0 0.0.0.0:2222 0.0.0.0:* LISTEN 3095/sshd
创新互联www.cdcxhl.cn,专业提供香港、美国云服务器,动态BGP最优骨干路由自动选择,持续稳定高效的网络助力业务部署。公司持有工信部办法的idc、isp许可证, 机房独有T级流量清洗系统配攻击溯源,准确进行流量调度,确保服务器高可用性。佳节活动现已开启,新人活动云服务器买多久送多久。