CentOS6.5本地源安裝OpenstackIcehouse 網路型別neutron-flat 原創
本片部落格主要針對openstack的快速安裝,本人親自制作,決定轉載和抄襲。
注:本次實驗本人已安裝成功,以下yum安裝後的提示為正常提示。本文件是對實驗步驟的一個總結。本次實驗各個服務的安裝、配置,本人都寫到了固定指令碼中,下載連結:
本次實驗環境
1 Centos6.5 X86_64位 英文版minimal安裝環境
3 雙節點(controller、compute)
4 每個節點雙網絡卡:
eth0 管理、公共
eth1 私有、提供虛擬機器IP地址
5 使用virtualbox虛擬化軟體
效能需求:
controller:2G記憶體、100G硬碟、雙網絡卡
compute:4G記憶體、120G硬碟、雙網絡卡
virtualbox網路設定如下圖:
具體步驟如下:
1 安裝系統
使用virtualBox建立兩臺虛擬機器,一臺為controller節點、一臺為compute節點。
建立的虛擬機器配置如下圖所示:
以上為控制點的主要配置。計算點配置類似,就是記憶體設定大點即可。
在安裝系統過程中,需要注意以下幾點
(1)建議選擇全英文安裝,這樣在安裝過程中會很快
(2)時區選擇時,選擇Asia/Shanghai時區,取消系統自動更新時區勾選
(3)分割槽時,一般選擇自定義分割槽。本人的分割槽主要有:根目錄50G、/boot分割槽200M、swap分割槽(設定為記憶體的2倍)、建立一塊沒有掛載點的分割槽(10G,留著以後做cinder和swift,計算點就設定兩塊沒有掛載點的分割槽)
(4)選擇系統型別時,建議雙節點全部選擇為minimal,這樣安裝就會節約很多時間
2 基本設定
系統正常安裝後做如下設定:
controller節點:
(1)[[email protected] ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter mangle na[ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[
[[email protected] ~]#
(2)修改selinux為disabled
[[email protected] ~]# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
(3)修改主機名
[[email protected] ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.20.0.200 controller
10.20.0.201 compute
[[email protected] ~]#
(4)關閉iptables服務,關閉開機自啟
[[email protected] ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter mangle na[ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[[email protected] ~]# chkconfig iptables off
[[email protected] ~]#
(5)修改yum源,本次實驗使用的源為本地源,所以我們需要把系統自帶的源更改。把/etc/yum.repos.d/目錄下的檔案進行備份,然後建立local.repo檔案
[[email protected] ~]# cat /etc/yum.repos.d/local.repo
[centos]
baseurl=file:///opt/centos
gpgcheck=0
enabled=1
[openstack-icehouse]
baseurl=file:///opt/iaas-repo
gpgcheck=0
enabled=1
[[email protected] ~]#
以上都是controller點的前期準備工作。
compute節點:
(1)修改網絡卡
[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:C1:53:F2
TYPE=Ethernet
UUID=30923f68-51f3-41e5-bb79-6061b213378a
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=no
IPADDR=10.20.0.201
NETMASK=255.255.255.0
GATEWAY=10.20.0.1
[[email protected] ~]#
(2)修改主機名
[[email protected] ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.20.0.200 controller
10.20.0.201 compute
[[email protected] ~]#
(3)修改yum源,我們在控制點上安裝FTP伺服器,然後計算點所使用的源全部來自此伺服器。先把/etc/yum.repos.d/目錄下的檔案進行備份,然後建立local.repo檔案
[[email protected] ~]# cat /etc/yum.repos.d/local.repo
[centos]
baseurl=ftp://10.20.0.200/centos
gpgcheck=0
enabled=1
[openstack-icehouse]
baseurl=ftp://10.20.0.200/iaas-repo/
gpgcheck=0
enabled=1
[[email protected] ~]#
以上為計算點的前期準備工作
測試:
控制點ping計算點
[[email protected] ~]# ping -c 4 compute
PING compute (10.20.0.201) 56(84) bytes of data.
64 bytes from compute (10.20.0.201): icmp_seq=1 ttl=64 time=0.258 ms
64 bytes from compute (10.20.0.201): icmp_seq=2 ttl=64 time=0.388 ms
64 bytes from compute (10.20.0.201): icmp_seq=3 ttl=64 time=0.396 ms
64 bytes from compute (10.20.0.201): icmp_seq=4 ttl=64 time=0.444 ms
--- compute ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 0.258/0.371/0.444/0.071 ms
[[email protected] ~]#
計算點ping控制點
[[email protected] ~]# ping -c 4 controller
PING controller (10.20.0.200) 56(84) bytes of data.
64 bytes from controller (10.20.0.200): icmp_seq=1 ttl=64 time=0.176 ms
64 bytes from controller (10.20.0.200): icmp_seq=2 ttl=64 time=0.218 ms
64 bytes from controller (10.20.0.200): icmp_seq=3 ttl=64 time=0.220 ms
64 bytes from controller (10.20.0.200): icmp_seq=4 ttl=64 time=0.220 ms
--- controller ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3007ms
rtt min/avg/max/mdev = 0.176/0.208/0.220/0.023 ms
[[email protected] ~]#
以上都配置完成後,我們重啟兩臺機器
重啟完成後,我們利用FTP上傳工具把源上傳到controller節點的/home目錄。上傳完成後,我們進行以下的操作
[[email protected] home]# mount -o loop CentOS6.5.iso /mnt/
[[email protected] home]# cd /mnt/
[[email protected] mnt]# ll
total 682
-r--r--r-- 2 root root 14 Nov 29 2013 CentOS_BuildTag
dr-xr-xr-x 3 root root 2048 Nov 29 2013 EFI
-r--r--r-- 2 root root 212 Nov 28 2013 EULA
-r--r--r-- 2 root root 18009 Nov 28 2013 GPL
dr-xr-xr-x 3 root root 2048 Nov 29 2013 images
dr-xr-xr-x 2 root root 2048 Nov 29 2013 isolinux
dr-xr-xr-x 2 root root 655360 Nov 29 2013 Packages
-r--r--r-- 2 root root 1354 Nov 28 2013 RELEASE-NOTES-en-US.html
dr-xr-xr-x 2 root root 4096 Nov 29 2013 repodata
-r--r--r-- 2 root root 1706 Nov 28 2013 RPM-GPG-KEY-CentOS-6
-r--r--r-- 2 root root 1730 Nov 28 2013 RPM-GPG-KEY-CentOS-Debug-6
-r--r--r-- 2 root root 1730 Nov 28 2013 RPM-GPG-KEY-CentOS-Security-6
-r--r--r-- 2 root root 1734 Nov 28 2013 RPM-GPG-KEY-CentOS-Testing-6
-r--r--r-- 1 root root 3380 Nov 29 2013 TRANS.TBL
[[email protected] mnt]# cp -rfv * /opt/centos
複製完成後,我們取消Centos6.5的掛載,然後再把Openstack源進行掛載
[[email protected] ~]# umount /mnt/
[[email protected] ~]# mount -o loop /home/openstack.iso /mnt/
[[email protected] ~]# cd /mnt/
[[email protected] mnt]# ll
total 4
drwxrwxr-x 6 nobody nobody 2048 Nov 13 2015 iaas-repo
drwxrwxr-x 2 nobody nobody 2048 Mar 6 2015 images
[[email protected] mnt]# cp -rfv * /opt/
以上這兩步完成後,我們在controller節點上安裝ftp服務:
[[email protected] ~]# yum install vsftpd -y
Loaded plugins: fastestmirror, priorities
Repository 'centos' is missing name in configuration, using id
Repository 'openstack-icehouse' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
Setting up Install Process
Package vsftpd-2.2.2-11.el6_4.1.x86_64 already installed and latest version
Nothing to do
[[email protected] ~]#
然後我們把ftp的目錄進行修改,允許匿名進行訪問,只要在/etc/vsftpd/vsftpd.conf檔案加上:anon_root=/opt/即可
然後重啟ftp服務,並設定開機自啟:
[[email protected] ~]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
[[email protected] ~]# chkconfig vsftpd on
[[email protected] ~]#
最後我們到計算點上進行驗證:
[[email protected] ~]# yum update
Loaded plugins: fastestmirror, priorities
Repository 'centos' is missing name in configuration, using id
Repository 'openstack-icehouse' is missing name in configuration, using id
Determining fastest mirrors
centos | 4.0 kB 00:00
centos/primary_db | 4.4 MB 00:00
openstack-icehouse | 2.9 kB 00:00
openstack-icehouse/primary_db | 3.0 MB 00:00
Setting up Update Process
No Packages marked for Update
[[email protected] ~]#
yum設定完成後,接著在controller節點安裝、配置ntp服務:
[[email protected] ~]# yum install -y ntp
Loaded plugins: fastestmirror, priorities
Repository 'centos' is missing name in configuration, using id
Repository 'openstack-icehouse' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
Setting up Install Process
Package ntp-4.2.6p5-1.el6.centos.x86_64 already installed and latest version
Nothing to do
[[email protected] ~]#
修改ntp配置檔案/etc/ntp.conf:
[[email protected] ~]# cat /etc/ntp.conf
# For more information about this file, see the man pages
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).
driftfile /var/lib/ntp/drift
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1
# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 127.127.1.0
fudge 127.127.1.0 stratum 10
#broadcast 192.168.1.255 autokey # broadcast server
#broadcastclient # broadcast client
#broadcast 224.0.1.1 autokey # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 autokey # manycast client
# Enable public key cryptography.
#crypto
includefile /etc/ntp/crypto/pw
# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys
# Specify the key identifiers which are trusted.
#trustedkey 4 8 42
# Specify the key identifier to use with the ntpdc utility.
#requestkey 8
# Specify the key identifier to use with the ntpq utility.
#controlkey 8
# Enable writing of statistics records.
#statistics clockstats cryptostats loopstats peerstats
[[email protected] ~]#
啟動ntp,並設定開機自啟:
[[email protected] ~]# service ntpd restart
Shutting down ntpd: [ OK ]
Starting ntpd: [ OK ]
[[email protected] ~]# chkconfig ntpd on
[[email protected] ~]#
然後到計算點同步時間:
[[email protected] ~]# yum install ntp
Loaded plugins: fastestmirror, priorities
Repository 'centos' is missing name in configuration, using id
Repository 'openstack-icehouse' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
Setting up Install Process
Package ntp-4.2.6p5-1.el6.centos.x86_64 already installed and latest version
Nothing to do
[[email protected] ~]#
[[email protected] ~]# ntpdate controller
14 Dec 02:56:14 ntpdate[10847]: adjust time server 10.20.0.200 offset 0.250648 sec
[[email protected] ~]#
然後我們安裝qpid服務,用於openstack各個元件的訊息通訊服務:
[[email protected] ~]# yum install qpid-cpp-server -y
Loaded plugins: fastestmirror, priorities
Repository 'centos' is missing name in configuration, using id
Repository 'openstack-icehouse' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
Setting up Install Process
Package qpid-cpp-server-0.18-18.el6.x86_64 already installed and latest version
Nothing to do
設定qpid認證為否:
[[email protected] ~]#cat /etc/qpidd.conf
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# Configuration file for qpidd. Entries are of the form:
# name=value
#
# (Note: no spaces on either side of '='). Using default settings:
# "qpidd --help" or "man qpidd" for more details.
#
# If you are using DIGEST-MD5 for client connections to
# brokers, add to this file the following line:
#
# auth=yes
#
# If you are using GSSAPI for client connections to
# brokers, add to this file the following two lines:
#
# auth=yes
# realm=QPID
#
cluster-mechanism=DIGEST-MD5 ANONYMOUS
acl-file=/etc/qpid/qpidd.acl
auth=no
[[email protected] ~]#
以上步驟配置完成後,系統的基本設定就OK了,接下來我們要先安裝openstack所需要的基礎服務。
3 安裝openstack所需要的基礎服務,以下服務的安裝都可以通過指令碼進行執行
控制點:
(1)安裝mysql資料庫,執行指令碼install-mysql.sh
(2)安裝keystone服務,執行指令碼install-keystone.sh
驗證:
[[email protected] ~]# keystone user-list
+----------------------------------+---------+---------+-------+
| id | name | enabled | email |
+----------------------------------+---------+---------+-------+
| 03bc017104c048fe9ccb3b68a73e8afb | admin | True | |
| c89c26a82e944083a0a165c16231a42e | demo | True | |
+----------------------------------+---------+---------+-------+
[[email protected] ~]#
(3)安裝glance服務,執行指令碼install-glance.sh
驗證:
[[email protected] ~]# glance image-list
+--------------------------------------+--------------------------+-------------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+--------------------------+-------------+--------+
| | | | | | |
+--------------------------------------+--------------------------+-------------+--------+
[[email protected] ~]#
(4)安裝nova服務,執行指令碼install-nova-controller.sh
安裝完成後,我們需要到計算節點把nova服務也安裝一下,執行指令碼:install-nova-compute.sh
兩個節點都安裝成功後,我們在控制節點進行驗證:
[[email protected] ~]# nova service-list
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| nova-cert | controller | internal | enabled | up | 2016-12-13T19:05:22.000000 | - |
| nova-consoleauth | controller | internal | enabled | up | 2016-12-13T19:05:20.000000 | - |
| nova-conductor | controller | internal | enabled | up | 2016-12-13T19:05:19.000000 | - |
| nova-scheduler | controller | internal | enabled | up | 2016-12-13T19:05:20.000000 | - |
| nova-compute | compute | nova | enabled | up | 2016-12-13T19:05:18.000000 | - |
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
[[email protected] ~]#
(5)安裝neutron服務,在安裝之前我們設定一下兩個節點的第二塊網絡卡配置:
[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=08:00:27:B5:CB:CA
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
IPADDR=172.16.100.10
NETMASK=255.255.255.0
GATEWAY=172.16.100.1
[[email protected] ~]#
[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=08:00:27:DE:5A:BD
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
IPADDR=172.16.100.20
NETMASK=255.255.255.0
GATEWAY=172.16.100.1
兩塊網絡卡設定成功後,先在控制點執行:install-neutron-controller.sh
驗證:
[[email protected] ~]# neutron agent-list
+--------------------------------------+--------------------+------------+-------+----------------+
| id | agent_type | host | alive | admin_state_up |
+--------------------------------------+--------------------+------------+-------+----------------+
| 32ba7f2f-ff57-4774-b92f-467e5d7df045 | DHCP agent | controller | :-) | True |
| 98ecd824-cc30-4d8b-b88f-9e31e1da89c1 | L3 agent | controller | :-) | True |
| d7bc4acd-955e-4e82-bf18-49c832d7de3a | Open vSwitch agent | controller | :-) | True |
+--------------------------------------+--------------------+------------+-------+----------------+
[[email protected] ~]#
然後到計算點執行:install-neutron-compute.sh
安裝完成後,我們再到控制點進行驗證:
[[email protected] ~]# neutron agent-list
+--------------------------------------+--------------------+------------+-------+----------------+
| id | agent_type | host | alive | admin_state_up |
+--------------------------------------+--------------------+------------+-------+----------------+
| 077df758-8178-4558-997c-6c37210ece00 | Metadata agent | compute | :-) | True |
| 32ba7f2f-ff57-4774-b92f-467e5d7df045 | DHCP agent | controller | :-) | True |
| 78f791d7-8801-4740-82be-462b9360480b | DHCP agent | compute | :-) | True |
| 97e56832-b467-442c-a3ac-edb2d31146a9 | Open vSwitch agent | compute | :-) | True |
| 98ecd824-cc30-4d8b-b88f-9e31e1da89c1 | L3 agent | controller | :-) | True |
| d7bc4acd-955e-4e82-bf18-49c832d7de3a | Open vSwitch agent | controller | :-) | True |
+--------------------------------------+--------------------+------------+-------+----------------+
[[email protected] ~]#
如果有以上提示,說明我們neutron安裝成功。如果提示不對,或者沒有以上的提示,那我們需要去/var/log/neutron目錄下檢視對應的日誌檔案。
4 以上的基礎服務安裝成功後,我們需要在控制點安裝openstack-dashboard服務,這個服務提供web操作功能:
[[email protected] ~]# yum install -y memcached python-memcached mod_wsgi openstack-dashboard--2014.1.3-1.el6
(openstack-dashboard需要加上版本號,要是不加會提示錯誤)
安裝結束後,設定openstack-dashboard,修改/etc/openstack-dashboard/local_settings
ALLOWED_HOSTS = ['10.20.0.200', 'localhost']
OPENSTACK_HOST = "controller"
取消:
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION' : '127.0.0.1:11211',
}
}
前的註釋
啟動httpd、memcached服務,並且設定開機自啟:
[[email protected] ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 10.20.0.200 for ServerName
[ OK ]
[[email protected] ~]# service memcached restart
Stopping memcached: [ OK ]
Starting memcached: [ OK ]
[[email protected] ~]# chkconfig httpd on
[[email protected] ~]# chkconfig memcached on
[[email protected] ~]#
完成以上步驟後,我們到瀏覽器中開啟:10.20.0.200/dashboard
賬號:admin 密碼:000000
至此,我們的平臺基本搭建成功。接下來我們開啟一臺虛擬機器試試:
1 建立網路
[[email protected] ~]# keystone tenant-list
+----------------------------------+---------+---------+
| id | name | enabled |
+----------------------------------+---------+---------+
| 0bab81db02c9447eb9a51986938a648d | admin | True |
| 74f8293475a84959a86bb149a8a6e017 | demo | True |
| 01c8831964944ff78033c0d736de7488 | service | True |
+----------------------------------+---------+---------+
[[email protected] ~]# neutron net-create --tenant-id 01c8831964944ff78033c0d736de7488 network --shared --provider:network_type flat --provider:physical_network physnet1
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | 086cbaaa-0414-42ec-b9f4-36fc4d8682b7 |
| name | network |
| provider:network_type | flat |
| provider:physical_network | physnet1 |
| provider:segmentation_id | |
| shared | True |
| status | ACTIVE |
| subnets | |
| tenant_id | 01c8831964944ff78033c0d736de7488 |
+---------------------------+--------------------------------------+
[[email protected] ~]#
2 建立子網,此步驟在web頁面是進行即可:
3 上傳映象(映象下載地址:)
[[email protected] ~]# glance image-create --name cirros --disk-format qcow2 --container-format bare --progress < cirros-0.3.0-x86_64-disk.img
[=============================>] 100%
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 50bdc35edb03a38d91b1b071afb20a3c |
| container_format | bare |
| created_at | 2016-12-13T19:29:48 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | f22f30ff-4d50-411a-92c1-3dbd64d0bfd0 |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros |
| owner | 0bab81db02c9447eb9a51986938a648d |
| protected | False |
| size | 9761280 |
| status | active |
| updated_at | 2016-12-13T19:29:48 |
| virtual_size | None |
+------------------+--------------------------------------+
[[email protected] ~]#
4 建立虛擬機器:
5 驗證虛擬機器
至此整個平臺部署完成。
要是有遇到的問題,大家可以給我留言,或者加入QQ群:599576282
相關推薦
CentOS6.5本地源安裝OpenstackIcehouse 網路型別neutron-flat 原創
本片部落格主要針對openstack的快速安裝,本人親自制作,決定轉載和抄襲。 注:本次實驗本人已安裝成功,以下yum安裝後的提示為正常提示。本文件是對實驗步驟的一個總結。本次實驗各個服務的安裝、配置,本人都寫到了固定指令碼中,下載連結: 本次實驗環境 1 Centos6
CentOs6.5 下源碼安裝samba
簡單測試 linux共享 表示 lan ip) swd install 服務啟動 服務 環境:CentOS6.5 安裝:samba-3.5.8.tar.gz 安裝步驟: tar -xzvf samba-3.5.8.tar.gz cd samba-3.5.8 cd so
CentOS6.5本地yum源配置
主要通過createrepo來建立本地yum源 1、掛載系統ISO映象,或拷貝系統安裝包 1) mkdir /local_yum 建立儲存rpm包的目錄 2) mkdir /mnt/cdrom 3) mount -o loop
CentOS6.5升級手動安裝GCC4.8.2
sta 安裝gcc cout include 介紹 tar.bz2 yum wget lib 一、簡易安裝 操作環境 CentOS6.5 64bit,原版本4.4.7,不能支持C++11的特性~,希望升級到4.8.2 不能通過yum的方法升級,需要自己手動下載安裝包並編
centos6.5下yum安裝mysql5.5
eps mysql 啟動 pms pan tar oar exp let 第一步就是看linu是否安裝了mysql,經過rpm -qa|grep mysql查看到centos下安裝了mysql5.1,那就開始卸載咯 2 接下來就是卸載mysql5.1了,命令
【CentOS6.5】MySQL安裝和配置
配置 entos alt tro images .com centos ges mys 1./etc/my.cnf 這是mysql的主配置文件 2、數據存放位置 3、錯誤存放位置 【CentOS6.5】MySQL安裝和配置
centos6.5 使用 rpm 安裝 mysql
相關 () res def libs update oca 64bit -i 從mysql網站下載mysql rpm安裝包(包括server、client) 1、安裝server rpm -ivh MySQL-server-5.6.19-1.el6.x86_64.rpm
CentOS6.5下nginx安裝
模塊 pcre acc .cn nginx fig 啟動服務 tab start 一、nginx安裝環境 1、Gcc rpm -qa | grep gcc 安裝nginx需要先將官網下載的源碼進行編譯,編譯依賴gcc環境,如果沒有gcc環境,需要
CentOS6.5下Cloudera安裝搭建部署大數據集群(圖文分五大步詳解)(博主強烈推薦)
centos6 數據 http 時間 log .com pos OS 客戶端 第一步: Cloudera Manager安裝之Cloudera Manager安裝前準備(CentOS6.5)(一) 第二步: Cloudera Manager安裝之時間服務器和
Centos6.5全程手動安裝(小白級)超詳細
虛擬機 db2 ado centos6.5 work 安裝 images aec c89 Centos6.5手動環境安裝步驟:備註:虛擬機模擬安裝步驟 網絡:172.16.100.1IP:172.16.100.65軟件:VMware? Workstation 11.0.0
Centos6.5下Tomcat安裝及配置
tsp watermark ext name mode export f2c images centos6 一、安裝前準備 安裝Tomcat需要提供JDK支持 下載JDK安裝包 #wget https://download.oracle.com/otn-pub/java/j
centos6.5下編譯安裝單例項MySQL5.1
MySQL5.1版本安裝3步曲: 1) ./configure 2) make 3) &nbs
CentOS6.5 yum源 出現的各種錯誤
最近忙著上線部署東西,以前都是在內網,現在需要訪問外網去下載一點東西,但是在更換源的時候出現了各種奇怪的問題,幸好都解決了,記錄下來,方便以後檢視 檢視Linux版本 網路是否通暢 檢視y
CentOS6.5下Redis安裝與配置
本文詳細介紹redis單機單例項安裝與配置,服務及開機自啟動。如有不對的地方,歡迎大家拍磚o(∩_∩)o (以下配置基於CentOS release 6.5 Final, redis版本3.0.2 [redis版本號中間位是偶數的是穩定版,奇數的為非穩定版]) 一.安
centos6.5系統下安裝docker新手教程
Centos 6.5安裝docker教程 Docker 是 PaaS 提供商 dotCloud 開源的一個基於 LXC 的高階容器引擎,原始碼託管在 Github 上, 基於go語言並遵從Apache2.0協議開源。 Docker自2013年以來非常火熱,無論是從 git
CentOS6.5 64位安裝單機版hadoop2.6教程
Hadoop2.6單機安裝 安裝環境 硬體:虛擬機器 作業系統:Centos 6.5 64位 主機名:hadoop0 安裝使用者:root 主機名很重要,可以任意自定義,但是一定要記住。 安裝JDK 2,在/root/.bash
CentOS6.5下原始碼安裝gcc-4.9.4
1、確認現有版本 # gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11) Copyright © 2010 Free Software Foundation, Inc. 本程式是自由軟體;請參
CentOS6.5下編譯安裝mysql-5.6.27
MySQL的安裝分為三種: 1、RPM包安裝;(MySQL-5.6.27-1.linux_glibc2.5.i386.rpm-bundle.tar) 2、二進位制包安裝;(mysql-5.6.27-linux-glibc2.5-i686.tar.gz) 3、原始碼安裝。 (
centOS6.5中靜默安裝oracle 11gR2
fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32
Centos6.5 下 Maven 安裝
一、Maven簡介 Maven 是基於專案物件模型(POM),可以通過一小段描述資訊來管理專案的構建,報告和文件的軟體專案管理工具 Maven 除了以程式構建能力為特色之外,還提供高階專案管理工具。由於 Maven 的預設構建規則有較高的可重用性,所以常常用