1. Solaris 10 for X86 的安装
1) 用显示器连接服务器,将Solaris10 for X86 光盘插入光驱
2) 先断掉网络链接
3) 从光盘启动服务器
选择Solaris->Solaris Interactive Text(Console Session)字符界面安装
4) 出现选择键盘布局屏幕
Keyboard Layout
选择默认的US-English,然后F2
5) 出现选择语言屏幕:
Select a Language
0. English
1. French
2. German
3. Italian
4. Japanese
5. Korean
6. Simplified Chinese
7. Spanish
8. Swedish
9. Traditional Chinese
Please make a choice (0 - 9), or press h or ? for help: 6
在这里选择6,继续执行。
6) 设置网络连通性
如果系统通过 Solaris 或供应商提供的网络/通信以太网网卡(受 Solaris CD
支持)连接到网络,就指定“是”。在硬件文档里查看当前支持的网卡的列表。
如果系统连接的是一个 Solaris CD
不支持的网络/通信卡,就指定“否”,并执行帮助程序下的指令列表。
联网的
[X] 是
[ ] 否
在此屏幕上,您必须指定缺省时区。您可以三种方式指定时区:从列表中选择其中一
个大陆或海洋,选择其它的 - GMT 偏移量,或其它 - 指定时区文件。
选择时,请使用箭头键高亮显示该选项并按
Return 将它标记为 [X]。
大陆和海洋:
- [ ] 非洲
x [ ] 美洲
x [ ] 南极洲
x [ ] 北冰洋
x [X] 亚洲
x [ ] 大西洋
x [ ] 澳洲
x [ ] 欧洲
x [ ] 印度洋
v [ ] 太平洋
21) 设置国家和地区
> 要做出选择,使用箭头键高亮显示选项并
按 Return 键来标记它 [X] 。
国家和地区:
- [ ] 阿富汗
x [ ] 阿拉伯联合酋长国
x [ ] 阿曼
x [ ] 阿塞拜疆
x [ ] 澳门
x [ ] 巴基斯坦
x [ ] 巴勒斯坦
x [ ] 巴林
x [ ] 不丹
x [ ] 朝鲜
x [ ] 东帝汶
x [ ] 俄罗斯
x [ ] 菲律宾
……
x [X] 中国
Would you like to enable network services for use by remote clients?
Selecting "No" provides a more secure configuration in
which Secure Shell is the only network service provided to
remote clients. Selecting "Yes" enables a larger set of
services as in previous Solaris releases. If in doubt, it is
safe to select "No" as any services can be individually enabled
after installation.
Note: This choice only affects initial installs. It doesn't affect upgrades.
Remote services enabled
[X] Yes
[ ] No
26) 选择安装Solaris 的软件类型
安装 Solaris 软件有两种方式:
- “标准”从标准的 Solaris Distribution 安装系统。
选择“标准”可以在初始安装和
升级 (如果系统可以升级) 之间选择。
- “快闪”从一个或多个 Flash Archive 安装您的系统。
下面所显示的信息是你用来安装Solaris 软件的简要表.
它反应了你在先前的屏幕上所做的选择.
============================================================================
- 安装选项: 初始
x 引导设备: c1t0d0
x 客户服务: 没有
x
x 语言环境: [简体中文 EUC]
x [简体中文 GB18030]
x [简体中文 GBK]
x [简体中文 UTF-8]
x 系统语言环境: [简体中文 EUC] ( zh )
x
x 软件: Solaris 10, 完整分发加 OEM 支持
x
x 文件系统和硬盘设置: / c1t0d0s0 55550 MB
v swap c1t0d0s1 4099 MB
立即安装
42) 安装完成后的收尾工作
创建/root,修改/etc/passwd,将root 的路径指定为/root
Create a home directory for root and assign bash as the default shell for the root user:
# mkdir /root
# chmod 700 /root
# vi /etc/passwd
In the passwd file, change the first line:
root:x:0:1:Super User:/root:/bin/bash
Use :wq! to instruct vi to override the read-only permission on the passwd
file.
修改/etc/profile,加入
告知 Solaris OS 软件使用 DNS 来解析主机名。
编辑 /etc/nsswitch.conf,然后在以 hosts 开头的行中的 files 之后添加 dns。
以下安装过程可以通过远程telnet 来完成。
2. 安装Apache
1) 用 root 身份 login 到 Console mode 中。
2) 安装 pkg-get
# mkdir /usr/local
# mkdir /usr/local/src
# cd /usr/local/src
# wget http://www.blastwave.org/pkg_get.pkg
# cp pkg_get.pkg ..
# pkgadd -d pkg_get.pkg all
You may use and copy this software without charge, as you see fit.
The software is copyright (C) Philip Brown, Nov 2002
Dont forget to update /opt/csw/etc/pkg-get.conf with your nearest archive site.
The selected base directory </opt/csw> must exist before installation
is attempted.
Do you want this directory created now [y,n,?,q] y
Using </opt/csw> as the package base directory.
## Processing package information.
## Processing system information.
2 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of <CSWpkgget> [y,n,?] y
Installing pkg_get - CSW version of automated package download tool as <CSWpkgget>
## Installing part 1 of 1.
/opt/csw/bin/pkg-get
/opt/csw/etc/pkg-get.conf.csw
/opt/csw/share/man/man1m/pkg-get.1m
/var/pkg-get/admin-fullauto
[ verifying class <none> ]
## Executing postinstall script.
Installing /opt/csw/etc/pkg-get.conf.csw to pkg-get.conf
Installation of <CSWpkgget> was successful.
7) 设定 MySQL 的 root user 密码 ( 下文中的 new-password 为你想要的密
码,你可以自行更改为你喜欢的密码。因为安全理由,切密不要使用
new-password 为你的密码,一定要更改 )
# cd /usr/sfw/bin
# ./mysqladmin -u root password 'new-password'
8) 测试 MySQL Server
# ./mysqlshow -p
Enter password: new-password
+-----------+
| Databases |
+---mysql |
| test |
+-----------+
# ./mysql -u root -p
Enter password: new-password
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 3 to server version: 4.0.20-standard
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql> show databases;
+-----------+
| Databases |
+-----------+
| mysql |
| test |
+-----------+
2 rows in set (0.00 sec)
mysql> quit;
Bye
--------+
| mysql |
| test |
+-----------+
# ./mysql -u root -p
Enter password: new-password
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 3 to server version: 4.0.20-standard
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql> show databases;
+-----------+
| Databases |
+-----------+
| mysql |
| test |
+-----------+
2 rows in set (0.00 sec)
mysql> quit;
Bye