SLE 11 sp4 搭建安装服务器

目录

  • 一、SLE简介

    • 1.1 SLE的安装包
    • 1.2 SLE的开发包
    • 1.3 挂在ISO
  • 二、安装httpd服务
    • 2.1 安装依赖环境
    • 2.2 安装createrepo
    • 2.3 创建repomd.xml文件
    • 2.4 安装apache2
      • 2.4.1 配置临时的repo仓库
      • 2.4.2 查看repo仓库
      • 2.4.3 开始安装apache2
    • 2.5 修改httpd的配置文件
      • 2.5.1 修改/etc/apache2/http.conf
      • 2.5.2 修改/etc/apache2/default-server.conf
      • 2.5.3 修改listen.conf
      • 2.5.4 将SLE的所有软件拷贝到http的目录下
      • 2.5.5 启动httpd服务
      • 2.5.6 在网页上查看
  • 三、配置本地的zypper仓库

一、SLE简介

SLE全程为SUSE Linux Enterprise Server,也就是SuSE企业版Linux系统。

而SuSE的开发包与redhat 和 ubuntu是不通用的。因此需要到官方网站上去下载

1.1 SLE的安装包

一般的安装包 直接到官网网站上去下载即可。

https://www.suse.com/products/server/download/

选择相应的版本即可。

1.2 SLE的开发包

下载地址:

https://download.suse.com/index.jsp?product_id=&search=Search&families=8389&version=47488&date_range=&date_start=11+Apr+2019&date_end=11+Apr+2019&keywords=&sort_by=&results_per_page=

里面包含了所有的开发软件包。

建议创建一个账号。因为新账号都有60天免费试用期。

可以下载SLE网站上的所有资料。

1.3 挂在ISO

mount -t iso9660 -o loop xxx.iso /mnt/cdrom

二、安装httpd服务

要想使用zypper的本地源,必须在本地安装httpd服务,将本地的zypper软件映射到网络上,供其他服务器使用。

2.1 安装依赖环境

CRM-CSHC1:/srv/BigData/SLE-11-sp4/SLE-11-sp4-DVD/x86_64 # rpm -ivh python-deltarpm-3.5.git-4.9.3.x86_64.rpm
Preparing...                ########################################### [100%]
   1:python-deltarpm        ########################################### [100%]

CRM-CSHC1:/srv/BigData/SLE-11-sp4/SLE-11-sp4-DVD/x86_64 # rpm -ivh python-lxml-2.3.6-0.13.1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:python-lxml            ########################################### [100%]

CRM-CSHC1:/srv/BigData/SLE-11-sp4/SLE-11-sp4-DVD/x86_64 # rpm -ivh python-curl-7.19.0-5.2.1.2.x86_64.rpm
Preparing...                ########################################### [100%]
   1:python-curl            ########################################### [100%]

CRM-CSHC1:/srv/BigData/SLE-11-sp4/SLE-11-sp4-DVD/x86_64 # rpm -ivh python-urlgrabber-3.9.1-0.5.1.x86_64.rpm
Preparing...                ########################################### [100%]
   1:python-urlgrabber      ########################################### [100%]
CRM-CSHC1:/srv/BigData/SLE-11-sp4/SLE-11-sp4-DVD/x86_64 # rpm -ivh yum*
Preparing...                ########################################### [100%]
   1:yum-metadata-parser    ########################################### [ 50%]
   2:yum-common             ########################################### [100%]

2.2 安装createrepo

CRM-CSHC1:/srv/BigData/SLE-11-sp4/SLE-11-sp4-DVD/noarch # zypper in createrepo-0.9.9-0.28.28.1.noarch.rpm
File '/repodata/repomd.xml' not found on medium 'cd:///?devices=/dev/sr0'

Please insert medium [] #1 and type 'y' to continue or 'n' to cancel the operation. [yes/no] (no): n
Error building the cache:
[|] Valid metadata not found at specified URL(s)
Warning: Disabling repository 'SLE-11-SP4-DVD' because of the above error.
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  createrepo 

The following package is not supported by its vendor:
  createrepo 

1 new package to install.
Overall download size: 85.0 KiB. After the operation, additional 285.0 KiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package createrepo-0.9.9-0.28.28.1.noarch (1/1), 85.0 KiB (285.0 KiB unpacked)
Retrieving package createrepo-0.9.9-0.28.28.1.noarch (1/1), 85.0 KiB (285.0 KiB unpacked)
Installing: createrepo-0.9.9-0.28.28.1 [done]
CRM-CSHC1:/srv/BigData/SLE-11-sp4/SLE-11-sp4-DVD/noarch

2.3 创建repomd.xml文件

首先SLE-CD1是bin文件
SLE-CD2是src文件。

还有所有的开发包中的bin和src文件

最好是将光盘中所有的rpm拷贝到一个目录下。除了i586目录。

最好是把基本的rpm包 和 开发包 分开。

SLE-11-sp4
   |-SLE-11-sp4-DVD
       |-noarch
       |-x86_64
   |-SLE-11-sp4-SDK
       |-noarch
       |-x86_64

然后进入该目录,创建repomd.xml文件。

CRM-CSHC1:/srv/BigData/SLE-11-sp4 # createrepo .
Spawning worker 0 with 5664 pkgs
Workers Finished
Gathering worker results

Saving Primary metadata
Saving file lists metadata
Saving other metadata
CRM-CSHC1:/srv/BigData/SLE-11-sp4 # ls
SLE-11-sp4-DVD  SLE-11-sp4-SDK  repodata
CRM-CSHC1:/srv/BigData/SLE-11-sp4 #

2.4 安装apache2

2.4.1 配置临时的repo仓库

CRM-CSHC1:/srv/BigData/SLE-11-sp4 # cat /etc/zypp/repos.d/SLE-11-SP4-DVD.repo
[SLE-11-SP4-DVD]
name=SLE-11-SP4-DVD
enabled=1
baseurl=file:///srv/BigData/SLE-11-sp4/
type=rpm-md
gpgcheck=0

2.4.2 查看repo仓库

CRM-CSHC1:/srv/BigData/SLE-11-sp4 # zypper repos
# | Alias                                            | Name                                             | Enabled | Refresh
--+--------------------------------------------------+--------------------------------------------------+---------+--------
1 | SLE-11-SP4-DVD                                   | SLE-11-SP4-DVD                                   | Yes     | No
2 | SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109 | SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109 | No      | No
CRM-CSHC1:/srv/BigData/SLE-11-sp4 # 

2.4.3 开始安装apache2

CRM-CSHC1:/srv/BigData/SLE-11-sp4 # zypper in apache2
Building repository 'SLE-11-SP4-DVD' cache [done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW packages are going to be installed:
  apache2 apache2-prefork apache2-utils libapr-util1 libapr1 

The following recommended package was automatically selected:
  apache2-prefork 

The following packages are not supported by their vendor:
  apache2 apache2-prefork apache2-utils libapr-util1 libapr1 

5 new packages to install.
Overall download size: 1.4 MiB. After the operation, additional 3.7 MiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package libapr1-1.3.3-11.18.19.8.x86_64 (1/5), 125.0 KiB (297.0 KiB unpacked)
Retrieving package libapr-util1-1.3.4-12.22.23.1.x86_64 (2/5), 93.0 KiB (208.0 KiB unpacked)
Retrieving package apache2-utils-2.2.12-1.51.52.1.x86_64 (3/5), 125.0 KiB (192.0 KiB unpacked)
Retrieving package apache2-2.2.12-1.51.52.1.x86_64 (4/5), 775.0 KiB (2.3 MiB unpacked)
Retrieving package apache2-prefork-2.2.12-1.51.52.1.x86_64 (5/5), 285.0 KiB (673.0 KiB unpacked)
Installing: libapr1-1.3.3-11.18.19.8 [done]
Installing: libapr-util1-1.3.4-12.22.23.1 [done]
Installing: apache2-utils-2.2.12-1.51.52.1 [done]
Installing: apache2-2.2.12-1.51.52.1 [done]
Additional rpm output:
Starting SuSEconfig, the SuSE Configuration Tool...
Running module permissions only
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.permissions...
Checking permissions and ownerships - using the permissions files
        /etc/permissions
        /etc/permissions.easy
        /etc/permissions.d/mail-server
        /etc/permissions.d/postfix
        /etc/permissions.local
setting /etc/ld.so.cache to root:root 0644. (wrong owner/group root:infa)
Finished.
Updating etc/sysconfig/apache2...
looking for old 2.0 modules to be renamed...
Done.

Installing: apache2-prefork-2.2.12-1.51.52.1 [done]

根据提示输入 y即可。

安装apache2 其他的相关包

CRM-CSHC1:/srv/BigData/SLE-11-sp4 # zypper in apache2*
Loading repository data...
Reading installed packages...
'apache2-utils' providing 'apache2*' is already installed.
No update candidate for 'apache2-utils-2.2.12-1.51.52.1.x86_64'. The highest available version is already installed.
'apache2-prefork' providing 'apache2*' is already installed.
No update candidate for 'apache2-prefork-2.2.12-1.51.52.1.x86_64'. The highest available version is already installed.
'apache2' providing 'apache2*' is already installed.
No update candidate for 'apache2-2.2.12-1.51.52.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...

The following NEW packages are going to be installed:
  apache2-devel apache2-doc apache2-example-pages apache2-mod_apparmor apache2-mod_auth_kerb apache2-mod_auth_ntlm_winbind
  apache2-mod_fcgid apache2-mod_jk apache2-mod_macro apache2-mod_mono apache2-mod_nss apache2-mod_perl apache2-mod_perl-devel
  apache2-mod_php53 apache2-mod_python apache2-mod_scgi apache2-mod_security2 apache2-mod_tidy apache2-worker cyrus-sasl-devel
  libapr-util1-devel libapr1-devel libdb-4_5-devel libexpat-devel libgdiplus0 libiniparser0 libiniparser0-32bit libopenssl-devel
  libtidy mono-core mono-data mono-data-sqlite mono-web mono-winforms mozilla-nss-tools openldap2-devel perl-Tie-IxHash php53
  php53-ctype php53-dom php53-iconv php53-json php53-pdo php53-sqlite php53-tokenizer php53-xmlreader php53-xmlwriter
  samba-krb-printing samba-winbind samba-winbind-32bit sqlite2 xsp 

The following recommended packages were automatically selected:
  libgdiplus0 php53-ctype php53-dom php53-iconv php53-json php53-sqlite php53-tokenizer php53-xmlreader php53-xmlwriter
  samba-krb-printing 

The following packages are not supported by their vendor:
  apache2-devel apache2-doc apache2-example-pages apache2-mod_apparmor apache2-mod_auth_kerb apache2-mod_auth_ntlm_winbind
  apache2-mod_fcgid apache2-mod_jk apache2-mod_macro apache2-mod_mono apache2-mod_nss apache2-mod_perl apache2-mod_perl-devel
  apache2-mod_php53 apache2-mod_python apache2-mod_scgi apache2-mod_security2 apache2-mod_tidy apache2-worker cyrus-sasl-devel
  libapr-util1-devel libapr1-devel libdb-4_5-devel libexpat-devel libgdiplus0 libiniparser0 libiniparser0-32bit libopenssl-devel
  libtidy mono-core mono-data mono-data-sqlite mono-web mono-winforms mozilla-nss-tools openldap2-devel perl-Tie-IxHash php53
  php53-ctype php53-dom php53-iconv php53-json php53-pdo php53-sqlite php53-tokenizer php53-xmlreader php53-xmlwriter
  samba-krb-printing samba-winbind samba-winbind-32bit sqlite2 xsp 

52 new packages to install.
Overall download size: 42.1 MiB. After the operation, additional 184.2 MiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package apache2-doc-2.2.12-1.51.52.1.x86_64 (1/52), 1.7 MiB (10.3 MiB unpacked)
Retrieving package apache2-example-pages-2.2.12-1.51.52.1.x86_64 (2/52), 68.0 KiB (11.0 KiB unpacked)
Retrieving package apache2-mod_apparmor-2.5.1.r1445-55.66.1.x86_64 (3/52), 13.0 KiB (14.0 KiB unpacked)
Retrieving package apache2-mod_auth_kerb-5.4-0.3.8.x86_64 (4/52), 26.0 KiB (60.0 KiB unpacked)
Retrieving package apache2-mod_fcgid-2.2-31.27.1.x86_64 (5/52), 52.0 KiB (156.0 KiB unpacked)
Retrieving package apache2-mod_jk-1.2.40-0.2.1.x86_64 (6/52), 155.0 KiB (406.0 KiB unpacked)
Retrieving package apache2-mod_macro-1.1.8-193.18.x86_64 (7/52), 16.0 KiB (32.0 KiB unpacked)
Retrieving package apache2-mod_python-3.3.1-147.24.104.x86_64 (8/52), 295.0 KiB (1.5 MiB unpacked)
Retrieving package apache2-mod_scgi-1.12-1.19.x86_64 (9/52), 16.0 KiB (28.0 KiB unpacked)
Retrieving package apache2-mod_security2-2.7.1-0.2.18.1.x86_64 (10/52), 480.0 KiB (3.2 MiB unpacked)
Retrieving package apache2-worker-2.2.12-1.51.52.1.x86_64 (11/52), 293.0 KiB (689.0 KiB unpacked)
Retrieving package cyrus-sasl-devel-2.1.22-182.20.1.x86_64 (12/52), 96.0 KiB (159.0 KiB unpacked)
Retrieving package libapr1-devel-1.3.3-11.18.19.8.x86_64 (13/52), 525.0 KiB (4.5 MiB unpacked)
Retrieving package libdb-4_5-devel-4.5.20-95.39.x86_64 (14/52), 5.3 MiB (38.5 MiB unpacked)
Retrieving package libexpat-devel-2.0.1-88.34.1.x86_64 (15/52), 157.0 KiB (775.0 KiB unpacked)
Retrieving package libgdiplus0-2.6.7-0.5.76.x86_64 (16/52), 366.0 KiB (975.0 KiB unpacked)
Retrieving package libiniparser0-2.17-87.17.x86_64 (17/52), 10.0 KiB (19.0 KiB unpacked)
Retrieving package libiniparser0-32bit-2.17-87.17.x86_64 (18/52), 10.0 KiB (14.0 KiB unpacked)
Retrieving package libopenssl-devel-0.9.8j-0.70.1.x86_64 (19/52), 2.9 MiB (20.3 MiB unpacked)
Retrieving package libtidy-1.0-34.7.x86_64 (20/52), 122.0 KiB (379.0 KiB unpacked)
Retrieving package mono-core-2.6.7-0.13.1.x86_64 (21/52), 9.5 MiB (30.6 MiB unpacked)
Retrieving package mozilla-nss-tools-3.17.3-0.8.11.x86_64 (22/52), 361.0 KiB (1.7 MiB unpacked)
Retrieving package perl-Tie-IxHash-1.21-721.22.x86_64 (23/52), 14.0 KiB (20.0 KiB unpacked)
Retrieving package php53-5.3.17-0.41.1.x86_64 (24/52), 1.2 MiB (4.6 MiB unpacked)
Retrieving package samba-krb-printing-3.6.3-0.58.1.x86_64 (25/52), 204.0 KiB (11.0 KiB unpacked)
Retrieving package sqlite2-2.8.17-134.12.x86_64 (26/52), 151.0 KiB (342.0 KiB unpacked)
Retrieving package samba-winbind-3.6.3-0.58.1.x86_64 (27/52), 3.7 MiB (12.5 MiB unpacked)
Retrieving package samba-winbind-32bit-3.6.3-0.58.1.x86_64 (28/52), 226.0 KiB (72.0 KiB unpacked)
Retrieving package openldap2-devel-2.4.26-0.30.1.x86_64 (29/52), 1.0 MiB (4.9 MiB unpacked)
Retrieving package apache2-mod_tidy-0.5.5-32.18.x86_64 (30/52), 22.0 KiB (48.0 KiB unpacked)
Retrieving package mono-data-2.6.7-0.13.1.x86_64 (31/52), 2.4 MiB (9.4 MiB unpacked)
Retrieving package apache2-mod_nss-1.0.8-0.4.13.1.x86_64 (32/52), 93.0 KiB (278.0 KiB unpacked)
Retrieving package apache2-mod_perl-2.0.4-40.24.1.x86_64 (33/52), 3.1 MiB (7.0 MiB unpacked)
Retrieving package php53-xmlwriter-5.3.17-0.41.1.x86_64 (34/52), 61.0 KiB (47.0 KiB unpacked)
Retrieving package php53-tokenizer-5.3.17-0.41.1.x86_64 (35/52), 56.0 KiB (19.0 KiB unpacked)
Retrieving package php53-pdo-5.3.17-0.41.1.x86_64 (36/52), 86.0 KiB (120.0 KiB unpacked)
Retrieving package php53-json-5.3.17-0.41.1.x86_64 (37/52), 63.0 KiB (35.0 KiB unpacked)
Retrieving package php53-iconv-5.3.17-0.41.1.x86_64 (38/52), 65.0 KiB (39.0 KiB unpacked)
Retrieving package php53-dom-5.3.17-0.41.1.x86_64 (39/52), 98.0 KiB (169.0 KiB unpacked)
Retrieving package php53-ctype-5.3.17-0.41.1.x86_64 (40/52), 54.0 KiB (15.0 KiB unpacked)
Retrieving package apache2-mod_php53-5.3.17-0.41.1.x86_64 (41/52), 1.2 MiB (8.2 MiB unpacked)
Retrieving package apache2-mod_auth_ntlm_winbind-0.0.0.lorikeet_svn_682-1.18.x86_64 (42/52), 12.0 KiB (22.0 KiB unpacked)
Retrieving package libapr-util1-devel-1.3.4-12.22.23.1.x86_64 (43/52), 248.0 KiB (2.3 MiB unpacked)
Retrieving package mono-data-sqlite-2.6.7-0.13.1.x86_64 (44/52), 135.0 KiB (386.0 KiB unpacked)
Retrieving package apache2-mod_perl-devel-2.0.4-40.24.1.x86_64 (45/52), 33.0 KiB (147.0 KiB unpacked)
Retrieving package php53-sqlite-5.3.17-0.41.1.x86_64 (46/52), 95.0 KiB (156.0 KiB unpacked)
Retrieving package php53-xmlreader-5.3.17-0.41.1.x86_64 (47/52), 61.0 KiB (31.0 KiB unpacked)
Retrieving package apache2-devel-2.2.12-1.51.52.1.x86_64 (48/52), 194.0 KiB (628.0 KiB unpacked)
Retrieving package mono-web-2.6.7-0.13.1.x86_64 (49/52), 2.6 MiB (9.5 MiB unpacked)
Retrieving package mono-winforms-2.6.7-0.13.1.x86_64 (50/52), 2.5 MiB (8.0 MiB unpacked)
Retrieving package xsp-2.6.5-0.5.93.noarch (51/52), 239.0 KiB (826.0 KiB unpacked)
Retrieving package apache2-mod_mono-2.6.3-5.5.114.x86_64 (52/52), 33.0 KiB (65.0 KiB unpacked)
Installing: apache2-doc-2.2.12-1.51.52.1 [done]
Installing: apache2-example-pages-2.2.12-1.51.52.1 [done]
Installing: apache2-mod_apparmor-2.5.1.r1445-55.66.1 [done]
Installing: apache2-mod_auth_kerb-5.4-0.3.8 [done]
Installing: apache2-mod_fcgid-2.2-31.27.1 [done]
Installing: apache2-mod_jk-1.2.40-0.2.1 [done]
Installing: apache2-mod_macro-1.1.8-193.18 [done]
Installing: apache2-mod_python-3.3.1-147.24.104 [done]
Installing: apache2-mod_scgi-1.12-1.19 [done]
Installing: apache2-mod_security2-2.7.1-0.2.18.1 [done]
Installing: apache2-worker-2.2.12-1.51.52.1 [done]
Installing: cyrus-sasl-devel-2.1.22-182.20.1 [done]
Installing: libapr1-devel-1.3.3-11.18.19.8 [done]
Installing: libdb-4_5-devel-4.5.20-95.39 [done]
Installing: libexpat-devel-2.0.1-88.34.1 [done]
Installing: libgdiplus0-2.6.7-0.5.76 [done]
Installing: libiniparser0-2.17-87.17 [done]
Installing: libiniparser0-32bit-2.17-87.17 [done]
Installing: libopenssl-devel-0.9.8j-0.70.1 [done]
Installing: libtidy-1.0-34.7 [done]
Installing: mono-core-2.6.7-0.13.1 [done]
Installing: mozilla-nss-tools-3.17.3-0.8.11 [done]
Installing: perl-Tie-IxHash-1.21-721.22 [done]
Installing: php53-5.3.17-0.41.1 [done]
Installing: samba-krb-printing-3.6.3-0.58.1 [done]
Additional rpm output:
Starting SuSEconfig, the SuSE Configuration Tool...
Running module permissions only
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.permissions...
Checking permissions and ownerships - using the permissions files
        /etc/permissions
        /etc/permissions.easy
        /etc/permissions.d/mail-server
        /etc/permissions.d/postfix
        /etc/permissions.local
setting /etc/ld.so.cache to root:root 0644. (wrong owner/group root:infa)
Finished.

Installing: sqlite2-2.8.17-134.12 [done]
Installing: samba-winbind-3.6.3-0.58.1 [done]
Installing: samba-winbind-32bit-3.6.3-0.58.1 [done]
Installing: openldap2-devel-2.4.26-0.30.1 [done]
Installing: apache2-mod_tidy-0.5.5-32.18 [done]
Additional rpm output:

To load mod_tidy into Apache, add tidy to APACHE_MODULES in /etc/sysconfig/apache2.
Please read /usr/share/doc/packages/apache2-mod_tidy/README.SUSE for further configuration hints.
Finally, restart the webserver with 'rcapache2 graceful'.

Installing: mono-data-2.6.7-0.13.1 [done]
Installing: apache2-mod_nss-1.0.8-0.4.13.1 [done]
Additional rpm output:

apache2-mod_nss certificate database generated.

Installing: apache2-mod_perl-2.0.4-40.24.1 [done]
Installing: php53-xmlwriter-5.3.17-0.41.1 [done]
Installing: php53-tokenizer-5.3.17-0.41.1 [done]
Installing: php53-pdo-5.3.17-0.41.1 [done]
Installing: php53-json-5.3.17-0.41.1 [done]
Installing: php53-iconv-5.3.17-0.41.1 [done]
Installing: php53-dom-5.3.17-0.41.1 [done]
Installing: php53-ctype-5.3.17-0.41.1 [done]
Installing: apache2-mod_php53-5.3.17-0.41.1 [done]
Installing: apache2-mod_auth_ntlm_winbind-0.0.0.lorikeet_svn_682-1.18 [done]
Installing: libapr-util1-devel-1.3.4-12.22.23.1 [done]
Installing: mono-data-sqlite-2.6.7-0.13.1 [done]
Installing: apache2-mod_perl-devel-2.0.4-40.24.1 [done]
Installing: php53-sqlite-5.3.17-0.41.1 [done]
Installing: php53-xmlreader-5.3.17-0.41.1 [done]
Installing: apache2-devel-2.2.12-1.51.52.1 [done]
Installing: mono-web-2.6.7-0.13.1 [done]
Installing: mono-winforms-2.6.7-0.13.1 [done]
Installing: xsp-2.6.5-0.5.93 [done]
Additional rpm output:
Updating etc/sysconfig/xsp2...

Installing: apache2-mod_mono-2.6.3-5.5.114 [done]

2.5 修改httpd的配置文件

2.5.1 修改/etc/apache2/http.conf

<Directory />
    Options None
    AllowOverride None
    Order deny,allow
    # 将Deny 修改为Allow
    Allow from all
</Directory>
# 注释一下两行配置
#Include /etc/apache2/sysconfig.d/include.conf
#Include /etc/apache2/vhosts.d/*.conf

2.5.2 修改/etc/apache2/default-server.conf

DocumentRoot "/srv/www/SLE-11-sp4"

<Directory "/srv/www/SLE-11-sp4">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs-2.2/mod/core.html#options
    # for more information.
    Options Indexes
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    AllowOverride None
    # Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
</Directory>

2.5.3 修改listen.conf

Listen 12345

2.5.4 将SLE的所有软件拷贝到http的目录下

CRM-CSHC1:/srv/BigData # mv SLE-11-sp4 /srv/www/
CRM-CSHC1:/srv/www # chown -R root:root SLE-11-sp4/

2.5.5 启动httpd服务

apache2ctl start

2.5.6 在网页上查看

三、配置本地的zypper仓库

进入/etc/zypp/repo.d/中的所有的repo文件中的enable属性改为0;

新建一个zypper的repo

linux-l7js:/srv/www/aaa # cat /etc/zypp/repos.d/SLE-11-SP4.repo
[SLE-11-SP4]
name=SLE-11-SP4
enabled=1
baseurl=http://CRM-CSHC1:12345/
#basseurl=file:///srv/www/SLE-11-sp4/
gpgcheck=0
type=rpm-md

配置完成后,刷新zypper的配置信息

zypper refresh

此时的zypper就可以在本地使用了。

原文地址:https://www.cnblogs.com/czlan91/p/10779571.html

时间: 2024-10-18 22:52:34

SLE 11 sp4 搭建安装服务器的相关文章

2-8 无人值守安装服务器搭建 日志

无人值守安装服务器搭建PXE + DHCP+TFTP+ Kickstart+ FTPdhcp PXE tftp vsftpd system-config-kickstart ###################################################################################################################################################################

搭建无人执守安装服务器

方法:PXE + DHCP+TFTP+ Kickstart+ HTTP 执行 PXE + KickStart安装需要准备内容: • DHCP 服务器用来给客户机分配IP: • TFTP 服务器用来存放PXE的相关文件,比如:系统引导文件: • HTTP 服务器用来存放系统安装文件,镜像: • KickStart所生成的ks.cfg配置文件: • 带有一个 PXE 支持网卡的将安装的主机. 安装所需软件包:httpd tftp-server dhcp xinetd system-config-ki

搭建PXE服务器,实现无人值守自动安装系统

实验:搭建PXE服务器,实现无人值守自动安装系统 在PXE服务器和新安装的服务器上分别安装http实现均衡负载 建立主从DNS服务器 第一步,先配置DHCP,目的是给需要安装系统的主机分配ip地址 服务器IP地址设为192.168.100.11 [[email protected] ~]# ifconfig eth0 | grep "inet addr" inet addr:192.168.100.11  Bcast:192.168.100.255  Mask:255.255.255.

Linux下搭建无人执守安装服务器

Linux下搭建无人执守安装服务器 实验概述 原理和概念: 1:什么是PXE ? 严格来说,PXE 并不是一种安装方式,而是一种引导的方式.进行 PXE 安装的必要条件是要安装的计算机中包含一个 PXE 支持的网卡(NIC),即网卡中必须要有 PXE Client.PXE (Pre-bootExecution Environment)协议使计算机可以通过网络启动. 网卡中必须有PXE芯片 协议分为client 和 server 端,PXE client 在网卡的 ROM 中,当计算机引导时,BI

一步步安装nginx搭建流媒体服务器

先安装: apt-get install g++ apt-get install g++ apt-get install build-essential 一般已经安装了 在网上下载以下的包.后面我把这些包上传到csdn资源里,以后就不用找了. nginx-1.2.3.tar.gz      :应用服务器主程序 nginx_mod_h264_streaming-2.2.7.tar.gz      :MP4流媒体支持模块. openssl-1.0.1c.tar.gz                

为公司内网搭建一个无人执守安装服务器

为公司内网搭建一个无人执守安装服务器 方法 ftp + tftp + dhcp + kickstart + PXE 什么是 PXE ? PXE 并不是一种安装方式,而是一种引导的方式.进行 PXE 安装的必要条件是要安装的计算机中包含一个PXE支持的网卡(NIC),即网卡中必须要有PXE client.PXE(Pre-boot Execution Environment)协议使计算机可以通过网络启动.网卡中必须有PXE芯片. 协议分为 client 和 server 端,PXE client在网

搭建Yum服务器及编译安装Httpd

搭建yum服务器 编译安装Httpd 原文地址:http://blog.51cto.com/10461810/2106438

用系统为centos6的主机,搭建PXE服务器,实现批量安装centos6,7系统

1. iptables -F setenforce 0 临时关掉selinux,清掉防火墙 永久生效更改配置文件:vim /etc/sysconfig/selinux chkconfig iptables off 2. yum -y install httpd dhcp tftp-server 安装http服务用于构建镜像文件的yum仓库 安装dhcp服务,搭建dhcp服务器,为客户端分配ip地址 安装tftp服务,搭建tftp服务器,准备系统启动的引导文件,如pxelinux.0 menu32

百晓生带你玩转linux系统服务搭建系列----pxe远程安装服务器的搭建及无人值守安装

实验环境系统环境:centos6.5:程安装服务器WIN7:客户端一.pxe远程安装服务器的搭建 安装并开启需要的服务,tftp,ftp,dhcp.1) yum -y install tftp-server,安装tftp环境软件包(如没有安装yum仓库,请参考http://blog.51cto.com/13842738/2135806)2) 编辑tftp配置文件vim /etc/xinetd.d/tftp 将"disable = yes"改为"disable = no&quo