Linux installation manual tutorial

Source: Internet
Author: User

Install the linux redhat 8.0
1标nic1 10 M/M network cable port, eth0
Ip: 202. 195 .*.*

2 account: root: pass1
Add user2: pass2
3 SSH: sshd
4 open ports: System Settings> Security level> www, ftp, and ssh

Installation Tools
1 putty/winscp
2 vnc
Rpm-ivh vnc-version-1.i386.rpm
Vncpasswd pass3

Vncserver (after this step, the system creates the/root/. vnc directory and modifies the xstartup directory.
Use # to deregister all rows and add a line "gnome-session &")
Install vnc-win32, connect 202. 195. *. *: 1, enter gnome

Install J2SDK
1 download j2sdk-1_4_1_02-linux-i586.bin and move it into the/root/tools/
2 cd/root/tools
Chmod 755 j2sdk-1_4_1_02-linux-i586.bin
3 cd/usr/local
4/root/tools/j2sdk-1_4_1_02-linux-i586.bin
5 ln-s/usr/local/j2sdk1.4.1 _ 02/usr/local/jdk
6 vi/etc/profile. d/java. sh
7. Enter
# Set java environment
Export JAVA_HOME =/usr/local/jdk
Export PATH = $ PATH: $ JAVA_HOME/bin
Export CLASSPATH = $ JAVA_HOME/lib

8 chmod 755/etc/profile. d/java. sh
9 run/etc/profile. d/java. sh or enter
Export JAVA_HOME =/usr/local/jdk
Export PATH = $ PATH: $ JAVA_HOME/bin
Export CLASSPATH = $ JAVA_HOME/lib
10 check with which java,/usr/local/jdk/bin/java appears

Install gcc
Use rpm-ivh *. rpm to install four packages in the following order
Binutils-2.13.90.0.2-2.i386.rpm
Glibc-kernheaders-2.4-7.20.i386.rpm
Glibc-devel-2.2.93-5.i386.rpm
Gcc-3.2-7.i386.rpm

Install APACHE
1 download httpd-2.0.47.tar.gz in/root/tools
2 cd/root/tools/
3 tar-xzvf httpd-2.0.47.tar.gz
4 cd httpd-2.0.47
5./configure
-- With-layout = Apache
-- Prefix =/usr/local/apache
-- Enable-module = so
-- Enable-module = setenvif
-- Enable-module = rewrite
-- With-mpm = prefork
6 make
Make install

Install Php
1 download php-4.3.3.tar.gz in/root/tools
2 cd/root/tools
Tar-xzvf php-4.3.3.tar.gz
Install rpm-ivh bison-1.35-4.i386.rpm
Installation rpm-ivhflex-2.5.4a-26.i386.rpm
3 cd php-4.3.3
4. /configure -- with-apxs2 =/usr/local/apache/bin/apxs -- prefix =/usr/local/php -- enable-track-vars -- enable-debug -- enable-url-des -- enable-sockets -- with-config-file-path =/usr/local/apache/conf
5 make
Make install
6 ls-l/usr/local/apache/modules/libphp4.so
If yes, the installation is successful.
7 vi/usr/local/apache/conf/httpd. conf
Find the LoadModule php4_module modules/libphp4.so line (not added by yourself)
Add AddType application/x-httpd-php. php under it

Install Tomcat
1 download jakarta-tomcat-5.0.28.tar.gz to/root/tools/
Cd/root/tools/
2 tar-xzvf jakarta-tomcat-4.1.24.tar.gz
Cp-rf./jakarta-tomcat-5.0.28/usr/local/jakarta-tomcat-5.0.28
Rm-rf jakarta-tomcat-5.0.28
3 cd/usr/local
Ln-s jakarta-tomcat-4.1.24 tomcat
4. Test the normal installation of Tomcat:/usr/local/tomcat/bin/startup. sh
5. The page is displayed normally through IE http: // yourIP: 8080/Tomcat.

Install JK2:
1 download binary ora-core-1-i386.tar.gz to/root/tools/
2 tar-xzvf Fedora-Core-1-i386.tar.gz
3 cd Fedora-Core-1-i386/usr/lib/httpd/modules
4 cp libjkjni. so/usr/local/apache/modules/
Cp mod_jk2.so/usr/local/apache/modules/
5 cp/root/tools/Fedora-Core-1-i386/etc/httpd/conf/workers2.properties/usr/local/apache/conf
Modify [uri:/jsp-examples/*]
Group = lb

Fedora-Core-1-i386/etc/httpd. d/jk2.conf
Set LoadModule jk2_module modules/mod_jk2.so

JkSet config. file/usr/local/apache/conf/workers2.properties
Add/usr/local/apache/conf/httpd. conf
Restart apache in bin/. apachectl restart (restart takes some time, and then try again)

6 Access http: // 202. 195. *. */jsp-examples/jsp2/el/basic-arithmetic.jsp to see the accessed page, indicating that the configuration is successful.

 

Install samba
1. Select the samba server or use rpm to install linux
2 Configuration
Cd/etc/samba
Vi smb. conf
Add the line *.
[Global]
* Netbios name = portal
Workgroup = MYGROUP

3. In smbusers, the correspondence between root and administrator is defined.
4. Change the Working Group of windows2000 to MYGROUP and restart win2000.
6. Restart samba,
Cd/etc/rc. d/init. d
./Smb restart
7. Shut down the Skynet firewall and search for the portal computer in the network neighbor.
8 Win2000: HKEY_LOCAL_MACHINE/SYSTEM/Currentcontrolset/Services/LanmanWorkstation/Parameters
Append a key value here: the key name enableplaintextpasswd, the value type is DWORD, the value is 1,
9 smbpasswd-a root will prompt the following
New SMB password pass4
Retype new SMB password pass4
Unable to open passdb database
Added user root
10 use root: pass4 in the network neighbor to enter the samba page.
11 add
[Dannysdir]
Comment = Root's Service
Path =/
Valid users = root
Public = no
Writable = yes
Printable = no
Restart smb and a new hard disk icon is displayed in the network neighbor.

Trackback: http://tb.blog.csdn.net/TrackBack.aspx? PostId = 112913

Related Article

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.