Basic but practical: Summary of common LNMP commands and common lnmp commands

Source: Internet
Author: User

Basic but practical: Summary of common LNMP commands and common lnmp commands

1. modify directory permissions

[Root @ localhost ~] # Chmod 777/home/user Note: only set the permission of the/home/user directory to rwxrwxrwx.

[Root @ localhost ~] # Chmod-R 777/home/user Note: Set the permissions of the entire/home/user directory and its files and subdirectories to rwxrwxrwx.

2. delete a file

Delete a folder instance:
Rm-rf/var/log/httpd/access
The/var/log/httpd/access Directory and all files and folders under it will be deleted.

Delete a file instance:
Rm-f/var/log/httpd/access. log
The file/var/log/httpd/access. log will be forcibly deleted.

3. File packaging command

Zip-r myfile.zip./* package all the packages under the current directory. The file name is myfile.zip.


4. Restart Nginx
/Etc/init. d/nginx restart


Basic Problems of lamp and lnmp

Ask him a few linux commands
For example, the command to copy files.
File Modification command
Start apache.
You can also directly ask him how to configure the file.
These are the most basic things.

Basic computer knowledge websites, such as DOS commands, are the most commonly used and practical websites.

Blog.cfan.com.cn/...0.html
A complete set of dos Commands

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.