⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appendix-a.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<HTML>

<HEAD>

<TITLE>The Linux Database:Appendix A: The CD-ROM</TITLE>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=1558284915//-->

<!--TITLE=The Linux Database//-->

<!--AUTHOR=Fred Butzen//-->

<!--PUBLISHER=IDG Books Worldwide, Inc.//-->

<!--IMPRINT=M & T Books//-->

<!--APPENDIX=A//-->

<!--PAGES=533-542//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="ewtoc.html">Table of Contents</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H2 ALIGN="CENTER"><FONT COLOR="#000077"><I>Appendices</I></FONT></H2>

<P><I>&#133; it is a fact that the condition of historic life is one of constant change. History is unending restlessness and mutation.</I>&#151;Jose Ortega y Gasset</P>

<H3><A NAME="Heading1"></A><FONT COLOR="#000077">Introduction</FONT></H3>

<P>This book has two appendices:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;Appendix A describes how to install software used with this book&#146;s examples.

<DD><B>&#149;</B>&nbsp;&nbsp;Appendix B describes some of the database software and tools that are available for Linux as of this writing.

</DL>

<P>As Jose Ortega y Gasset notes, history is change. He might have added that the history of computing changes rapidly&#151;and the history of Linux particularly rapidly.

</P>

<P>Therefore, please bear in mind that between the time we wrote this book and the time you read it, the Linux world will have changed. New tools will have become available, old tools will have changed and added new features, perhaps new systems will have been unveiled. We have made the information in these appendices as complete and accurate as possible; however, before you start to build a big application, be sure to find documentation that is as complete and up-to-date as possible.</P>

<H2><A NAME="Heading2"></A><FONT COLOR="#000077">Appendix A<BR>The CD-ROM

</FONT></H2>

<P>The CD-ROM includes all of the software discussed in this book:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;A release of Slackware Linux

<DD><B>&#149;</B>&nbsp;&nbsp;Database packages, including Just Logic and mSQL

<DD><B>&#149;</B>&nbsp;&nbsp;Java tools for compiling and running the Java examples

<DD><B>&#149;</B>&nbsp;&nbsp;Source code for each example in the book, and each example&#146;s expected output.

</DL>

<P>This appendix describes how to install and run this software.

</P>

<H3><A NAME="Heading3"></A><FONT COLOR="#000077">Linux</FONT></H3>

<P>The CD-ROM contains a Slackware release of Linux. It includes release 2 of the kernel, uses ELF object format, and includes the latest versions of popular Linux tools.

</P>

<P>If you are not yet running Linux, you can use these bits to install Linux onto your computer. Please note, however, that installation and configuration of Linux is can be tricky at times, and does require careful planning. If you are considering installing Linux, you should consider picking up a copy of <I>Linux Configuration &amp; Installation</I>, second edition, by Patrick Volkerding, Kevin Reichard, and Eric F. Johnson (New York, MIS:Press, 1996).</P>

<H3><A NAME="Heading4"></A><FONT COLOR="#000077">Before You Begin</FONT></H3>

<P>Most of the database-related software is kept in directory <B>database</B> on the CD-ROM. Before you begin to install anything, be sure that you read file <B>database/READ.ME</B>. This file holds last-minute updates, changes, and corrections to the instructions in this chapter. Read file <B>database/READ.ME</B> before you install <I>anything</I>.</P>

<H3><A NAME="Heading5"></A><FONT COLOR="#000077">Just Logic</FONT></H3>

<P>Just Logic is a relational database package published by Just Logic Technologies, Inc., of Montreal, PQ, Canada. We wish to thank Just Logic Technologies for permitting us to include their software with our book.

</P>

<H4 ALIGN="LEFT"><A NAME="Heading6"></A><FONT COLOR="#000077">Copyright Information</FONT></H4>

<P>All of the software that comprises the Just Logic relational database management system is copyrighted by Just Logic Technologies, Inc. All rights reserved. This software may not be reproduced or redistributed without written permission of Just Logic Technologies, Inc.

</P>

<H4 ALIGN="LEFT"><A NAME="Heading7"></A><FONT COLOR="#000077">Installation</FONT></H4>

<P>To install Just Logic onto your Linux system, do the following:

</P>

<DL>

<DD><B>1.</B>&nbsp;&nbsp;Read all the following instructions before you do anything.

<DD><B>2.</B>&nbsp;&nbsp;Log in as the superuser <B>root</B>.

<DD><B>3.</B>&nbsp;&nbsp;Mount the CD-ROM.

<DD><B>4.</B>&nbsp;&nbsp;Create user group <B>dba</B>.

<DD><B>5.</B>&nbsp;&nbsp;Create an account for user <B>jlt_sql</B>. This user should be the only member of group <B>dba</B>. Give this user home directory <B>/home/jlt_sql</B>.

<DD><B>6.</B>&nbsp;&nbsp;Create directory <B>/home/jlt_sql</B>. Give full owner permissions to user <B>jlt_sql</B>, and full group permissions to group <B>dba</B>.

<DD><B>7.</B>&nbsp;&nbsp;From the directory onto which you mounted the CD-ROM, copy archive <B>database/just_logic/jlt.cpio</B> into directory <B>/home/jlt_sql</B>.

<DD><B>8.</B>&nbsp;&nbsp;<B>cd</B> into directory <B>/home/jlt_sql</B>; then use the following command to de-archive the bits:

<!-- CODE SNIP //-->

<PRE>

     cpio -ivd &lt; jlt_cpio

</PRE>

<!-- END CODE SNIP //-->

<DD><B>9.</B>&nbsp;&nbsp;Once the bits have been de-archived, run command <B>set_prot</B>. This sets permissions appropriately.

<DD><B>10.</B>&nbsp;&nbsp;Copy of the contents of file <B>profile.example</B> into file <B>/etc/profile</B>. This file sets a number of environmental variables that Just Logic needs to run correctly.

</DL>

<H3><A NAME="Heading8"></A><FONT COLOR="#000077">mSQL</FONT></H3>

<P>MiniSQL is a product of Hughes Technologies, Australia. We wish to thank Hughes Technologies for their permission to include mSQL with this book. We ask readers to respect the copyrights of mSQL and the conditions under which it can be used.

</P>

<P>To learn more about Hughes Technologies&#146; products, and to obtain the latest enhancements to mSQL, check out Hughes Technologies&#146; home page, at:</P>

<!-- CODE SNIP //-->

<PRE>

     <A HREF="http://www.hughes.com.au/product/">http://www.hughes.com.au/product/</A>

</PRE>

<!-- END CODE SNIP //-->

<H4 ALIGN="LEFT"><A NAME="Heading9"></A><FONT COLOR="#000077">Copyright Information</FONT></H4>

<P>mSQL is copyrighted by Hughes Technologies, Inc. It may not be copied or reproduced in any way whatsoever except as specified by Hughes Technologies. For details on what permissions Hughes Technologies grants to you, see file <B>/usr/src/msql-1.0.14/doc/License</B>. This file also contains information on how you can purchase a license for mSQL.</P>

<H4 ALIGN="LEFT"><A NAME="Heading10"></A><FONT COLOR="#000077">Installation</FONT></H4>

<P>mSQL comes in the form of source code. Thus, installation is a three-step process: first, install the sources; then compile them; and then configure your system to use mSQL.

</P>

<P>To install mSQL sources, do the following:</P>

<DL>

<DD><B>1.</B>&nbsp;&nbsp;Log in as the superuser <B>root</B>.

<DD><B>2.</B>&nbsp;&nbsp;Mount the CD-ROM.

<DD><B>3.</B>&nbsp;&nbsp;From the directory onto which you mounted the CD-ROM, copy file <B>msql-1.0.14.tgz</B> into directory <B>/usr/src</B>.

<DD><B>4.</B>&nbsp;&nbsp;Use the following command to de-archive the sources:

<!-- CODE SNIP //-->

<PRE>

     tar xvzf msql-1.0.14.tgz

</PRE>

<!-- END CODE SNIP //-->

</DL>

<P>To compile the sources and install the compiled bits, follow the directions given in file <B>/usr/src/msql-1.0.14/README</B>. It is a good idea to perform the simple tests that this file suggests; however, we have found some errors in the mSQL regression test, and therefore you should not regard this as a true test of whether mSQL is correctly installed.</P>

<P>The last task for installation is to assign a port (socket) to mSQL. Edit <B>/etc/services</B>, and add a line as follows:</P>

<!-- CODE SNIP //-->

<PRE>

     msql         1112/tcp         # msql database

</PRE>

<!-- END CODE SNIP //-->

<P>If you have already assigned port 1112, use another port.

</P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -