Procedure for creating a linux website

Source: Internet
Author: User

1. install Linux. If you need to use dual NICs later, you 'd better plug in two NICs before installation.
1) install Linux
2) After installation, configure the second Nic In X_window.
Go to X_window and add eth1 to the turbolinux Control Center-network configuration-network interface.
Use ifconfig to check whether eth0 and eth1 have the same interruptions. If they are different, the installation is successful (you can also unplug the network cable.
Check whether the installation is successful)
[Installation] How to Make the kernel detect that two NICs often encounter such problems is actually very simple:
When you have two NICs, add
Append = "ether = 0, eth1"
If you have inserted three blocks, it is:
Append = "ether =, eth1 ether =, eth2"
Example:
Boot =/dev/hda
# Compact # faster, but won "t work on all systems.
Delay = 50
Vga = normal # force sane state
Append = "ether = 0, eth1"
# Ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
Image =/zImage
Root =/dev/hda1
Label = linux
Read-only # Non-UMSDOS filesystems shoshould be mounted read-only for checking
# Linux bootable partition config ends
This is the practice when you do not know the NIC irq and iobase (especially when the PCI Nic is like 3c590 ...)
When you know the ENI irq and iobase, you should specify the following:
Example: Two 3c590:
Append = "ether = 9, 0xfce0, eth0 ether = 5, 0xfcc0, eth1"
Note: If the module has been compiled, it should be in/etc/rc. d/rc. modules (in TurboLinux
Yes/etc/conf. modules)
Add a similar line:
/Sbin/modprobe ne io = io1, io2
2. After Linux is installed, create users and groups
Groupadd dba (group name)
Groudadd oinstall (group name)
Useradd oracle (user name)
Go to the etc directory and edit the group
Add to oinstall (group): x: 501 racle (User)
Dba (group): x: 502 racle (User)
3. Configure Environment Parameters
Method 1: Use root permission to edit/root/. bash_profile
Copy the edited. bash_profile to/home/oracle.
Chown oracle: dba/home/oracle /.
Method 2: Use root permission to edit/root/. bashrc
Add umask 022
Enter/etc
Edit profile
In./root/. bash_profile and/etc/profile, edit the content as follows:
PATH = $ PATH: $ HOME/bin
ENV = $ HOME/. bashrc
USERNAME = ""
Umask 022
NLS_LANG = "simplified chinese". zhs16gbk
ORACLE_HOME =/u1/oracle/8i
ORACLE_BASE =/u1/oracle
ORACLE_SID = orcl
LD_LIBRARY_PATH = $ ORACLE_HOME/lib
PATH = $ PATH: $ ORACLE_HOME/bin :.
DISPLAY = 127.0.0.1: O. O
Export USERNAME ENV PATH
Export ORACLE_HOME ORACLE_BASE ORACLE_SID
Export LD_LIBRARY_PATH NLS_LANG
Export DISPLAY
4. Install oracle8.1.6
1) copy the oracle8.1.6 File
<1> use root permission to suspend the optical drive
Method 1: mount/dev/cdrom/mnt
Method 2: mount-t iso9660/mnt
<2> copy an oracle File
Cd/mnt
Method 1: cp oracle/oracle.tar (copy oracle files to/directory as oracle users)
Method 2: cp oracle.tar/u2 /.
2) unlock the oracle File
Tar xvf oracle.tar (expand the package file)
Tar xzvf oracle.tar.gz (decompress and expand the package file)
3) install oracle8.1.6
Grant u1 and u2 the oracle: dba permission
Chown-R oracle: dba/u1
Chown-R oracle: dba/u2
<1> install the oracle client. It is used when the web server and the db server are not on the same server.
(1) install oracle
Log on with an oracle user
Go to X_window
Start the terminal
Cd/Oracle8iR2
Run./runInstaller to start Installation
Welcome:
Press next
File Locations:
Press next
UNIX Group Name:
Enter dba and press next
Error. The system prompts you to run/u1/oracle/8i/orainstRoot. sh with the root permission.
CTRL + ALT + F2 to open a new console (character window)
Log On As root
[Root @ wapdb/root] # cd/u1/oracle/8i/
At this time, there is a file orainstRoot. sh in the/u1/oracle/8i/directory to run it.
[Root @ wapdb/8i] #./orainstRoot. sh
CTRL + ALT + F7, return to the installation page (Graphic window)
Click Retry to continue the installation,
Available Products:
Select Oracle8i Enterprise Edition 8.1.6.1.0, select install client (client), and press next
(This step is suitable for installation on different machines with the database server and WEB server)
Installation Types:
Select Typical (128 MB) and press next. A progress ruler is displayed in the upper-right corner of the screen.
You can select the language for installation.
Database Identification:
Global Database Name: Enter dba (optional)
SID: retain orcl
Press next
Database File Location:
Any directory. In this example, set it to "/u1/oracle/8i/" and press Next. Then, the Progress ruler in the upper right corner of the screen continues before
Into
The following is a Summary of the products you want to install.
Press Install, and the Install screen appears. Wait... you can see the installation and other log files prompted at the bottom of the window.
For future query.
The Setup Privileges window is displayed.
Tip: run a script as root before the installation continues.
"/U1/oracle/8i // root. sh ",
CTRL + ALT + F2, return to the first terminal window just running
Run the file as root,
[Root @ wapdb/8i] # sh root. sh
Screen Display:
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Enter
The system starts to execute some actions. After the execution is completed, press CTRL + ALT + F7 to return to OUI and press OK.
(2) Configure oracle
Enter/u1/oracle/8i/bin
Run netasst or netca command to start OUI for configuration
Set
You can also directly change listener. ora and tnsnames. ora.
The fastest way is to COPY the tnsnames. ora on the database server to/u1/oracle/8i/network/admin.
Log On As an ORACLE user
[Oracle @ wapserver/] $ cd $ ORACLE_HOME/network/admin
[Oracle @ wapserver admin] $ ftp xxx. xxx #
Use FTP to log on to the oracle server.
And use oracle users.
Ftp> cd/u1/oracle/8i/network/admin
Ftp> get tnsnames. ora
Ftp> bye
Listener. ora file configuration
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 211.94.129.2 (web server ip address ))
(PORT = 1521 ))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC ))
)
)
)
Tnsnames. ora file configuration
EXTPROC_CONNECTION_DATA.WEBQINMAI =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC ))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
ORCL. W =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 211.94.129.16 (db server ip address ))
(PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
ORCLbig =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 211.94.129.16 (db server ip address ))
(PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
<2> install the oracle server-for web server and db server to use one server, db server
Upper
(1) install oracle
Log on with an oracle user
Go to X_window
Start the terminal
Cd/Oracle8iR2
Run./runInstaller to start Installation
Welcome:
Press next
File Locations:
Press next
UNIX Group Name:
Enter dba and press next
Error. The system prompts you to run/u1/oracle/8i/orainstRoot. sh with the root permission.
CTRL + ALT + F2 to open a new console (character window)
Log On As root
[Root @ wapdb/root] # cd/u1/oracle/8i/
At this time, there is a file orainstRoot. sh in the/u1/oracle/8i/directory to run it.
[Root @ wapdb/8i] #./orainstRoot. sh
CTRL + ALT + F7, return to the installation page (Graphic window)
Click Retry to continue the installation,
Available Products:
Select Oracle8i Enterprise Edition 8.1.6.1.0, and click next
Installation Types:
Method 1: select Typical (540 MB) and press next. A progress ruler is displayed in the upper-right corner of the screen.
You can select the language for installation.
Database Identification:
Global Database Name: Enter dba (optional)
SID: retain orcl
Press next
Database File Location:
In this example, set the directory to "/u1/oracle/8i/" and press Next. Then, the Progress ruler is displayed in the upper-right corner of the screen.
Continue
The following is a Summary of the products you want to install.
Press Install, and the Install screen appears. Wait... you can see the Installation log prompted at the bottom of the window.
File directory for future query.
The Setup Privileges window is displayed.
Tip: run a script as root before the installation continues.
"/U1/oracle/8i // root. sh ",
CTRL + ALT + F2, return to the first terminal window just running
Run the file as root,
[Root @ wapdb/8i] # sh root. sh
Screen Display:
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Enter
The system starts to execute some actions. After the execution is completed, press CTRL + ALT + F7 to return to OUI and press OK.
Starting from Database Creation Progress, perform the following four steps
Creating and starting Oracle instance
Copying database files
Initializing database
Database creation completed
The preceding four processes are completed. The Oracle Database Configuration Assistant Alert window is displayed.
The prompt is: the database has been created to tell you some basic information about the database.
Global databse name: dba
Database system identifier (SID): orcl
SYS account password: change_on_install
SYSTEM account password: manager
Press OK
End of Installation,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.