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