Linux--Build PHP server Environment Small Note

Source: Internet
Author: User

The operating system running as a Web server is Linux

Apache, PHP, MySQL and other service software needs to be installed inside this system.

The system features: stable, free, rich network functions (apache/redis/memcache/mailbox/mysql, etc.), security

    1. system root Directory file Introduction

Home Directory

/var Project deployment Directory

/USR Software installation directory

/etc main configuration file directory

/Dev Hardware Device Catalog

    1. Directory Operations

Created: Mkdir-p newdir

Mobile change Name: MV Dir1 Dir2/newdir

Copy Change name:

Cp-r Dir1 Dir2/newdir

CP filename Dir/newfile

Delete:

RM-RF filename

    1. Simple file operation

A) View: Cat more less head-n tail-n WC

b) Create: Touch filaname

c) Additional content: Echo content >/>> filename

    1. User and group actions

User action:

Created: useradd-g gid-u uid-d home_dir user name

Modified: usermod-g gid-u uid-d home_dir-l newname user name

Delete: Userdel-r user name

Group operations:

Created: groupadd-g GID Group name

Modified: groupmod-g gid-n newname Group name

Delete: Groupdel Group name

Linux--Build PHP server Environment Small Note

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.