Panabit Support Board!

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 11486|回复: 0

U盘的PanabitV8.01(可实时保存)(32-64MU盘解决方案)

[复制链接]
发表于 2008-1-17 15:08:47 | 显示全部楼层 |阅读模式
U盘的PanabitV8.01(可实时保存)(32-64MU盘解决方案)
先声明哦,看完的要顶哦。
U盘必须大于32M,如果比32M还小的16M的U盘,那对不起,此文章可能帮不了你。

在看这篇文章前,读者必须具备以下几点要求:
1.必须懂得windows下的ultraISO这个软件的使用,WinISO编辑的ISO可能无法保存FreeBSD的启动信息。
2.必须明白FB即FreeBSD的简称;
3.必须熟悉FB下VI命令的使用;
4.必须明白FB下对大小写敏感;
5.必须明白自己U盘在FB下的设备分区名如da0s1a等;
6.必须明白自己的U盘是否以USB-HDD方式启动
如果不具备以上几点,请先去熟悉后,再来看此文章.

能写出这篇文章, 要感谢time、Lucifer 、panabit等管理员悉心不懈的教导,在此对他们表示衷心的感谢。

第一部分:改装光盘
    1、下载所需的文件:Panabit 2008 Live CD ISO文件,约10M;FB精简版系统文件FB62_for_PanabitOS2.tar.gz;PanabitV8.01版安装文件Panabit0801.tar.gz
    2、将下载的FB精简版系统文件FB62_for_PanabitOS2.tar.gz及PanabitV8.01版安装文件Panabit0801.tar.gz放入Panabit 2008 Live CD的ISO文件的根目录中(用ultraISO)
    3、将改装后的ISO刻成光盘
第二部分:对U盘进行操作
    1、引导:将U盘插入电脑,用改装后的ISO引导系统,在出现的“login:”输入root,回车
    2、分区:输入sysinstall,回车,选择Configure选项,回车,选择Fdisk,回车,选择要分区的硬盘,如果里面有分区,用D命令删除,删除后用C命令创建,键入C后,直接回车(此步可以将整个U盘分为单独一个区),类型165不变,回车,继续键入w,执行Write Change,接下来的提示都选择OK,q 退出Fdisk。按Tab健,选择OK,退出Fdisk操作,再按X,退出sysinstall界面。
    3、始始化和格式化U盘:disklabel -r -wB da0s1,再输入newfs da0s1a
    4、加载U盘:mount /dev/da0s1a /mnt
    5、加载光驱:mount -t cd9660 /dev/acd0 /media
    6、复制FB精简版系统文件到U盘:cp /media/FB62_for_PanabitOS2.tar.gz /mnt
    7、进入U盘:cd /mnt/
    8、解压系统文件:tar zxvf FB62_for_PanabitOS2.tar.gz
    9、删除系统文件:rm FB62_for_PanabitOS2.tar.gz
    10、复制安装文件到U盘:cp /media/Panabit0801.tar.gz /mnt
第三部分:修改U盘的文件
    1、vi /mnt/etc/fstab,将ad0s1a改为da0s1a,保存退出
    2、vi /mnt/etc/rc.local,将所有语句前加“###”,并将mdmfs -s 20m md1 /usr/panalog前的“#”去掉让它启用,保存退出
    3、vi /boot/loader.conf,加入autoboot_delay="1"这句话,保存退出
第四部分:安装Panabit
    1、输入reboot重启电脑,取出光盘,改为U盘启动,并设为USB-HDD方式启动。
    2、登陆时输入root
    3、进入根目录:cd /
    4、解压Panabit安装文件:tar zxvf /Panabit0801.tar.gz
    5、删除Pananbit安装文件:rm /Panabit0801.tar.gz
    6、进入Panabit的解压目录:cd /panabit20080111
    7、安装Panabit:./ipeinstall


下面附上安装提示:


根据脚本提示,可以按照缺省的安装目录,1-2分钟,即可安装完毕。下面是脚本运行过程:

Welcome installing panabit!

Please input the directory to install panabit [/usr/panabit]缺省直接回车,可以更换目录)
Please input the directory to store log [/usr/panalog]缺省直接回车,可以更换目录)
Please input the directory to store configuration [/usr/panaetc]缺省直接回车,可以更换目录)

The last time to verify your choice:
(1) The directory that you want to install is "/usr/panabit"
(2) The directory that the log to be stored is "/usr/panalog"
(3) The directory that the configuration to be stored is "/usr/panaetc"
Above are right(y/n[y])?(回车"y"表示确认)

Creating directory "/usr/panabit" ...ok
Creating directory "/usr/panalog" ...ok

Installing Panabit to "/usr/panabit" ...ok

Initializing configurations ...ok
Saving configuration to /etc/PG.conf ...
****** Congratulations ******!
You have successfully installed Panabit on your system:
(1) The installed path is: /usr/panabit
(2) The log path is: /usr/panalog
(3) The configuration path is: /usr/panaetc

To make your system more sutiable for panabit running, it's recomended of tuning your system according your system memory size and cpu frequence.
Do you want to tune your system(y/n)y(此处询问是否调节内核优化参数,系统自动检测)
Your kernel configuration has been tuned as the followings:

#console="comconsole"
autoboot_delay="2"
beastie_disable="YES"
kern.ipc.nmbclusters=10240
kern.maxdsiz=2000000000
(上面5行,后2行为安装脚本自动增加,前3行是系统原有的)
Warning: your em driver has been compiled into kernel.
To optimize panabit performance, we recommend you use the optimized driver panaos provides.
To use the optimized driver, please remove em driver from your kernel.
(此处为一般性提示,仅作为参考,标准版用户忽略此项)
You should restart your system to make they take effects.
(需要重启系统,调整参数才会生效。注意安装完毕,reboot系统)
Following interfaces are installed in your system:
em0 em1 em2(这是系统识别的3块网卡列表,供下面选择指定使用)
Please choose one of above as your admin interface: em0(选择em0作为管理端口)
Please input ip address of admin interface: 192.168.0.18
Please input network mask of admin interface: 255.255.255.0
Please input default gateway: 192.168.0.1(这3行的网路参数根据实际情况给定)
The following interfaces are left for your data processing:
em1 em2
Please select data interfaces: em1 em2(指定两个网卡时,用空格隔开,一般选择性能好的网卡作为数据网卡)
Your interface configurations are:
Admin interface : em0
Admin ip address : 192.168.0.8
Admin netmask : 255.255.255.0
Default gateway : 192.168.0.1
Data interfaces : em1 em2
(再次显示管理口参数、数据网路接口)
Thank you for using panabit!
You can issue "/usr/panabit/bin/ipectrl start" to start panabit!
And you can also add the above command to /etc/rc.local file to let the system automaticly start panabit at system startup!
(启动Panabit进程命令:/usr/panabit/bin/ipectrl start,如果安装目录费缺省目录,则需要根据实际情况改变路径;为了能开机自动启动,可以将启动进程命令行加入: /etc/rc.local文件)
If you want to stop the currently running panabit, you can issue
"/usr/panabit/bin/ipectrl stop" to stop it!
(停止Panabit进程命令:/usr/panabit/bin/ipectrl stop)

启动Panabit进程之后,可以使用ps ax查看进程是否启动,正常应该有ipe_monitor、ipe_datamon、ipe_xping、ipe_httpd进程。

接下来,就可以使用浏览器,进入Web界面配置管理:https://192.168.0.8,输入用户名:admin,缺省口令:panabit,则登陆管理界面。

至此,一台Panabit应用层流量管理系统安装完毕,即可上线运行,虽然还没有配置策略,但是已经可以分析流量了,一般是先空策略上线运行,待有流量分析数据之后,再进行策略设置和调整。

[ 本帖最后由 kingfight 于 2008-1-17 21:16 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|北京派网软件有限公司 ( ICP备案序号:京ICP备14008283号 )

GMT+8, 2024-5-2 07:08 , Processed in 0.065732 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表