数据丢失找捷定数据恢复中心

使用port基本安装 PostgreSQL 笔记

文中的 port 选项是本人喜好,不是预设值或建议值

1. 假设环境

  pgsql.home.net 192.168.1.3 255.255.255.0

  文中的 port 选项是本人喜好,不是预设值或建议值

  2. 更新 FreeBSD 中的 port tree

$ su -
$ portsnap fetch update
$ exit
  如果你从未用过 portsnap,改为

$ su -
$ portsnap fetch extract update
$ exit
  3. 登入 pgsql.home.net 后从 port 安装 perl 5.10.1

  系统默认用 perl 5.8.x,如果你想 postgres 用 perl 5.10.x,有两个方法

  i) 编译 postgresql 之前先编译 perl 5.10

  ii) 在 /etc/make.conf 加入一行 PERL_VERSION=5.10.1

  我习惯先编译 perl 5.10

$ su -
$ cd /usr/ports/lang/perl5.10/
$ make config

┌─────────────────────────────┐
│ Options for perl-threaded 5.10.1 │
│ ──────────────────────────┐ │
│ │ [ ] DEBUGGING Build with debugging support │ │
│ │ [ ] GDBM Build GDBM_File extension │ │
│ │ [ ] PERL_MALLOC Use Perl malloc │ │
│ │ [X] PERL_64BITINT Use 64 bit integers (on i386) │ │
│ │ [X] THREADS Build threaded perl │ │
│ │ [ ] MULTIPLICITY Use multiplicity │ │
│ │ [X] SUIDPERL Build set-user-id suidperl binary │ │
│ │ [X] SITECUSTOMIZE Run-time customization of @INC │ │
│ │ [X] USE_PERL Rewrite links in /usr/bin │ │

$ make
$ make install
$ exit

当你遇到数据丢失情况时,为了避免更严重损坏,应立即停止操作,咨询专业数据恢复人员。
咨询电话: 021-31265210

捷定数据恢复中心 | 网站首页 - 介质送修流程 - 修复所需费用 - 站内地图 - 友情链接 - 联系我们