PHP Daily Progress a little bit common Linux commands

Source: Internet
Author: User
Tags create directory fpm

Popular, Welcome to shoot Bricks

1. Create directory: mkdir XXX
2. View Nginx installation directory: Ps-ef|grep nginx
3. Give the folder a permission: chmod 777 XXX
4. View Linux port usage: NETSTAT-APN
5. View the path to PHP: which PHP
6. Increase the Scheduled task configuration: CRONTAB-E
7. Restart Crond:service Crond Reload
8. Re-refresh Nginx configuration file:./nginx-s Reload
9. Creating the MySQL User: Create user ' myuser ' @ ' localhost ' identified by ' mypassword ';
10. Query created by all MySQL users: SELECT host, user, password from Mysql.user
11. View All Users cat/etc/passwd
12. Modify the user default file usermod-d/ TMP test
13. Set MySQL account
GRANT all privileges on . To ' user ' @ '% ' identified by ' 123456 ' with GRANT OPTION;
FLUSH privileges;
14. View Port occupied lsof-i: Port number
15. Restart the PHP configuration kill-usr2 cat/usr/local/php5/var/run/php-fpm.pid
/usr/ LOCAL/PHP52/SBIN/PHP-FPM start
16. Add account useradd XXX
17. Delete account Userdel XXX
18. Install the software yum installed xxx
19. View Port used NETSTAT-ANP | GREP:22
20.memcached Process ID pgrep memcached
21. Consult the folder/file user group and permissions under the current directory LS-LH
22. View the directory where the process is located rpm-qal |grep memcached
23. Change Password passwd xxx

PHP progresses a little bit of common Linux commands every day

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.