Common PHP development tasks commonly used in several commands

Source: Internet
Author: User
Tags svn update
Usually a few commands commonly used in PHP development work

Switch to root login: sudo su-


View System health Status: top

In top we have to monitor the used of the fifth swap partition at all times, and if this value is constantly changing, it means that the kernel is constantly swapping memory and swap data, which is really not enough memory.


View network client connections: netstat-n | grep TCP | grep Listening Port | Wc-l

View process Memory Condition: PMAP Process ID


List Current Account Scheduled tasks: Crontab-l

To edit a scheduled task list: CRONTAB-E


Package directory: Tar CVF <压缩文件名.tar.gz> <目录>

Unpacking directory: Tar xvf <目录>


Modify permission groups for all files and subdirectories under directory: Chgrp-r www <目录>

Modify the owner of all files and subdirectories under directory: Chown-r www <目录>

Modify read/write/execute permissions for all files and subdirectories in directory: Chmod-r 775 <目录> file owner and same group account have RWX permissions, other group accounts have RX Authority


Restart PHP-FPM:/USR/LOCAL/PHP/SBIN/PHP-FPM Restart after modifying the php.ini configuration

Modify nginx vhost domain name configuration to make it effective:

/USR/LOCAL/NGINX/BIN/NGINX-T (check configuration for errors)

/usr/local/nginx/bin/nginx -S Reload (restart load configuration)


Test Machine project Directory SVN export: SVN checkout

Code update under Project directory: SVN update

  • 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.