PHP7:/usr/bin/php//executable directory/usr/lib64/php//php installed library files, 32-bit for/USR/LIB/PHP/ETC/PHP.D//php all extension Library profiles/etc/php.ini// PHP's own profile/usr/share/php//temporarily unknown/usr/include/php//phpize added extension library source location/usr/share/man/man1/php.1.gz//php Help documentation php-fpm:/ USR/SBIN/PHP-FPM/ETC/PHP-FPM.D//Storage of PHP-FPM configuration files. (Configuration of the socket)/etc/php-fpm.conf//php-fpm Source configuration file/usr/share/man/man8/php-fpm.8.gz Nginx:/usr/sbin/nginx/etc/nginx// Contains files such as Nginx.conf,fastcgi_params, as well as the CONF.D folder, which is the nginx.conf of the child configuration file, can be built inside the Vhost folder to build multiple sites/usr/share/nginx/ Storage of Nginx module information. The default site directory in the directory in the HTML directory Nginx run will produce nginx.pid files, default in/run/nginx.pid php-fpm run will produce Php-fpm.pid file, the default in/run/php-fpm/
When Php-fpm.pid is accessed with the TCP protocol in Port 9000, the file is not generated and Www.sock files are generated in the/RUN/PHP-FPM directory when accessed as sockets.
These file paths can be adjusted to the/var/run directory, or the new site directory is placed in any location log files are stored by default under/run/log, adjustable, and can be saved in the same directory as the PID file Www.sock for Nginx and php-fpm connected media, so nginx.conf and php-fpm.conf in the configuration to be consistent, at the same time.
The generated socket file should belong to the WWW user and read and write permissions to it, or a 502 error will occur.
For the installation according to the source code, it is more convenient, because it can be stored in the same directory, usually/usr/local directory, so that the management is more convenient, so strongly recommend the source code installation. Redis Installation: Download source compression package, extract to/usr/local/directory, into RediS directory. Execute make compilation, which generates 6 executable files under./src.
Then execute make install, which copies the executable files to the/usr/local/bin directory, Redis-benchmark redis-check-aof Redis-check-rdb redis-cli Redis-sentinel-> redis-server redis-server ### #全信息为:-rwxr-xr-x. 1 root root 2431696 October 2 22:55 redis-benchmark-rwxr-xr-x. 1 root root 25157 October 2 22:55 redis-check-aof-rwxr-xr-x. 1 root root 5178454 October 2 22:55 redis-check-rdb-rwxr-xr-x. 1 root 2584403 October 2 22:55 redis-cli lrwxrwxrwx. 1 root 12 October 2 22:55 redis-sentinel-> redis-server-rwxr-xr-x. 1 root 5178454 October 2 22:55 redis-server./utils/isntall_server.sh Execute the configuration boot script and generate configuration information as follows: Selected Config:port : 6379 Config File:/etc/redis/6379.conf Log file:/var/log/redis_6379.log Data dir:/var/lib/redis/
6379 executable:/usr/local/bin/redis-server Cli executable:/usr/local/bin/redis-cli and configure Redis to follow system boot. Service name is redis_6379 netconsole 0: Off 1: Off 2: Off 3: Off 4: off 5: OFF 6: Close network 0: Close 1: Off 2: Open 3: Open 4: Open 5: Open 6: Close Nginx 0: Off1: Close 2: Open 3: Open 4: Open 5: Open 6: Close redis_6379 0: Close 1: Close 2: Open 3: Open 4: Open 5: Open 6: Off
systemctl and Chkconfig:systemctl Management system services, chkconfig manage user-defined services when a user disables or enables a non-system service through SYSTEMCTL,
is redirected to Chkconfig to perform off or on. Similarly, when the system service is modified through chkconfig, it is redirected to the Systemctl to execute the appropriate command