Linux environment setup configuration and installation tutorial [recommended]

Source: Internet
Author: User

I. system conventions

Software source code package storage location:/usr/local/src

Source code package compilation and installation location (prefix):/usr/local/software_name

Script and maintenance program storage location:/usr/local/sbin

MySQL database location:/var/lib/MySQL (can be set as needed)

Apache website root directory:/home/www/wwwroot (which can be set as needed)

Apache VM log root directory:/home/www/logs (can be set as needed)

Apache running account: www

Ii. System Environment deployment and adjustment

1. Check whether the system is normal

# More/var/log/messages (check for system-level error messages)

# Dmesg (check whether the hardware device has an error message)

# Ifconfig (check whether Nic settings are correct)

# Ping www.bkjia.com (check whether the network is normal)

2. disable unnecessary services

# Ntsysv

Only the services to be started are listed below. We recommend that you disable all services not listed:

Atd

Crond

Irqbalance

Microcode_ctl

Network

Sendmail

Sshd

Syslog

3. restart the system

# Init 6

4. Configure vim

# Vi/root/. bashrc

Add a line under alias mv = 'mv-I ': alias vi = 'vim' Save and exit.

# Echo 'syntax on'>/root/. vimrc

5. Use the yum program to install the required development kit (The following is the standard RPM package name)

# Yum install ntp vim-enhanced gcc-c ++ gcc-g77 flex bison autoconf automake bzip2-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel kernel

6. Timing correction server clock, timing synchronization with the Chinese National Time Service Center Time Service Server

# Crontab-e

Add a row:

*/30 * ntpdate 210.72.145.44

  • 5 pages in total:
  • Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page

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.