php7:/usr/bin/php //執行檔案目錄/usr/lib64/php //php已安裝的庫檔案,32位為/usr/lib/php/etc/php.d //php所有擴充庫的設定檔/etc/php.ini //php自身的設定檔/usr/share/php //暫時不知/usr/include/php//phpize添加的擴充庫源碼位置/usr/share/man/man1/php.1.gz //php協助文檔php-fpm:/usr/sbin/php-fpm /etc/php-fpm.d //存放php-fpm的設定檔。(socket的配置)/etc/php-fpm.conf //php-fpm的源設定檔/usr/share/man/man8/php-fpm.8.gznginx:/usr/sbin/nginx /etc/nginx //包含nginx.conf,fastCgi_params等檔案,還有conf.d檔案夾,裡面為nginx.conf的子設定檔,可在裡面建vhost檔案夾以建立多個網站/usr/share/nginx //存放nginx的模組資訊。預設的網站目錄在該目錄下的html目錄裡nginx運行會產生nginx.pid檔案,預設在/run/nginx.pidphp-fpm運行時會產生php-fpm.pid檔案,預設在/run/php-fpm/php-fpm.pid以tcp協議的9000連接埠訪問時,不產生檔案,以socket方式訪問時會產生www.sock檔案放在/run/php-fpm目錄下。可將這些檔案路徑調整至/var/run目錄下,或著建立網站目錄放在任意位置記錄檔預設會存放在/run/log下,可調整,並可與pid檔案儲存在同一目錄www.sock為nginx與php-fpm連通的介質,故nginx.conf中與php-fpm.conf中的配置要保持一致,同時。產生的socket檔案要屬於www使用者並給與其讀寫權限,否則會產生502錯誤。 對於根據源碼安裝的,就比較方便了,因為可以將其全部存放在同一目錄,通常是/usr/local目錄下,這樣管理起來比較方便,所以強烈推薦源碼安裝。redis安裝:下載源碼壓縮包,解壓至/usr/local/目錄,進redis目錄。執行make編譯,會在./src下產生6個可執行檔。然後執行make install,會將這些可執行檔複製到/usr/local/bin目錄下,redis-benchmarkredis-check-aofredis-check-rdbredis-cliredis-sentinel -> redis-serverredis-server####全資訊為:-rwxr-xr-x. 1 root root 2431696 10月 2 22:55 redis-benchmark-rwxr-xr-x. 1 root root 25157 10月 2 22:55 redis-check-aof-rwxr-xr-x. 1 root root 5178454 10月 2 22:55 redis-check-rdb-rwxr-xr-x. 1 root root 2584403 10月 2 22:55 redis-clilrwxrwxrwx. 1 root root 12 10月 2 22:55 redis-sentinel -> redis-server-rwxr-xr-x. 1 root root 5178454 10月 2 22:55 redis-server再執行./utils/isntall_server.sh執行配置引導指令碼,組建組態資訊如下:Selected config:Port : 6379Config file : /etc/redis/6379.confLog file : /var/log/redis_6379.logData dir : /var/lib/redis/6379Executable : /usr/local/bin/redis-serverCli Executable : /usr/local/bin/redis-cli並將redis配置為跟隨系統啟動。服務名為redis_6379netconsole 0:關 1:關 2:關 3:關 4:關 5:關 6:關network 0:關 1:關 2:開 3:開 4:開 5:開 6:關nginx 0:關 1:關 2:開 3:開 4:開 5:開 6:關redis_6379 0:關 1:關 2:開 3:開 4:開 5:開 6:關
systemctl與chkconfig:systemctl管理系統服務,chkconfig系統管理使用者自訂的服務當使用者通過systemctl禁用或啟用某一非系統服務時,會重新導向到chkconfig中執行off或者on.同樣,當通過chkconfig修改系統服務時會重新導向到systemctl中執行相應的命令