Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1459595
  • 博文数量: 295
  • 博客积分: 10051
  • 博客等级: 上将
  • 技术积分: 3850
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-11 08:50
文章分类

全部博文(295)

文章存档

2011年(1)

2009年(4)

2008年(290)

我的朋友

分类: BSD

2008-04-17 09:17:50

set ifaddr 10.0.0.1/0 10.0.0.2/0

  adsl:

  set device PPPoE:vr0 # 将vr0 改为你拔号的网卡

  set authname 你的ADSL 帐号

  set authkey 你的ADSL密码

  set dial

  set login

  add default HISADDR

  b、/etc/rc.conf 内容

  inetd_enable="YES"

  sshd_enable="YES"

  fsck_y_enable="YES"

  hostname="mail.extmail.org"

  ifconfig_rl0="inet 192.168.1.1 netmask 255.255.255.0"

  ppp_enable="YES" #YES or NO

  ppp_mode="ddial" #"auto", "ddial", "direct" or "dedicated".

  ppp_nat="YES" # if you want to enable nat for your local network, otherwise NO

  ppp_profile="adsl" #/etc/ppp/ppp.conf

  c、安装cvsup-without-gui

  %cd /usr/ports/net/cvsup-without-gui/

  %make install clean

  d、更新ports

  安装完cvsup软件后,对ports 进行更新

  %/usr/local/bin/cvsup -gL 2 -h cvsup4.freebsdchina.org /usr/share/examples/cvsup/ports-supfile

  三、安装数据库 MySQL

  MySQL 版本很多,大家可以据自己需要自行选择喜欢的版本安装。

  %cd /usr/ports/databases/mysql41-server/

  %make install clean

  在/etc/rc.conf 加入

  mysql_enable="YES"

  复制配置文件(非必需)

  cp /usr/local/share/mysql/my-small.cnf /usr/local/etc/my.cnf

  在此说明:

  1、如果不在/etc/rc.conf 加入以上内容,手工是无法启动MySQL的。

阅读(609) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~