Install LAMP in LINUX

Source: Internet
Author: User

 

Lamp linux Installation Summary

1,

Insert a CD or ISO file

2,

Installation in text mode, input: text

3,

Skip the CD check Skip

4,

Welcome to CentOS! OK

5,

Select English Language

6,

Select us on the keyboard

7,

Tip: the device will be initialized and all databases will be cleared because the device is completely installed. Yes

8,

Enter the text partition page

======================================

Remove all partitions on selected drives and create default layout.

Remove all partitions from the selected disk and create a default split mode.

Remove linux partitions on selected drives and create default layout.

Remove the linux partition on the selected disk and create a preset partition mode.

Use free space on selected drives and create default layout.

Use the unused space on the selected disk to create a default split mode.

Create custom layout.

Manual partitioning

======================================

Select the first one.

9,

Confirm info YES

10,

Divide the disk into three zones.

==============

/Boot

Swap

/

==============

/Select Fill all available space for the partition (all available space)

Select Force to be a primary partition for the partition (primary partition)

OK.

11,

Start loading configuration GRUB. Press enter by default.

12,

Boot Loader Configuration

Set an independent name. OK

13,

Select Use a GRUB Password

Set a password for GRUB.

14,

Press enter by default for other channels.

15,

Network Configuration for eth0

Set Network Information

Select Activate on boot and Enable IPv4 support and press Enter.

16,

Select Manual address configuration

IP Address local ip Address (for example): 192.168.1.126

Prefix (Netmask) Subnet Mask (for example): 255.255.255.0 OK

17,

Gateway Default Gateway (for example): 192.168.1.1

Primary DNS Gateway (for example): 202.106.0.20

Secondary DNS backup Gateway (for example): blank

OK

18,

Set host name OK

19,

Set the system time to Asis/Shanghai OK

20,

Set system logon Password

21,

Select Customize software selection (custom) for the software package to be installed)

22,

Select the Basic installation package:

Develop library

Develop tools

Edits

Base

X software development

Administrator tools

System tools

OK

23,

Confirm the installation information and wait for installation.

24,

Take out the CD or ISO, restart reboot, and log on to the root user.

# Su-// obtain the root permission

# Whoami // view current Permissions

25,

Create a new user

# Useradd Username

# Passwd username // set the password or initial password

26,

For security, modify the system Port and logon information.

# Cp/etc/ssh/sshd_config/etc/ssh/sshd_config.ori // back up the ssh_config file to be configured

# Vi/etc/ssh/sshd_config // edit sshd_config

 

#### By jeacen ###

Port 52113

PermitRootLogin no

PermitEmptyPasswords no

#### By jeacen ###

After adding the above information

: Wq save: q quit

#/Etc/init. d/sshd restart // restart the ssh service. The modification takes effect.

27,

To ensure security, add the user name that requires root permission to sudo to ensure that the root password is not disclosed.

# Mongodo

Add the root user name as follows

# User privilege specification

Root ALL = (ALL) ALL

Username ALL = (ALL) ALL

Wq: Save

28,

Modify Chinese display

# Vi/etc/sysconfig/i18n

LANG = "zh_CN.GB18030"

# Source/etc/sysconfig/i18n takes effect

 

This article is from the "jeacen Technology House" blog

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.