./configure --prefix=/usr/local/php-fpm --with-config-file-path=/usr/local/php-fpm/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysqli --with-pdo-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --enable-soap --enable-ftp --enable-mbstring --enable-exif --with-pear --with-curl --with-openssl
yum install -y openssl-devel
安裝這個包chkconfig --add php-fpm
添加一下php-fpm服務到服務列表chmod 755 /etc/init.d/php-fpm
修改文件權限爲755/usr/local/php-fpm/etc/php-fpm.d/
目錄查看一下useradd php-fpm
pa aux | grep php-fpm
./configure --prefix=/usr/local/nginx --with-http_ssl_module
命令進行配置make && make install
命令進行編譯安裝/usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx
這個路徑作一個軟連接/usr/local/nginx/sbin/nginx
來啓動服務cd /usr/local/nginx/conf/
進入這個目錄netstat -ltnp |grep nginx
查看nginx監聽的端口是哪一個vi /etc/yum.repos.d/nginx.repo
/etc/yum.repos.d/nginx.repo
這個文件裏面去[nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true
killall nginx
把nginx的服務所有關閉pkill nginx
殺死nginx進程cd /usr/local/
進入安裝目錄rm -rf nginx
這樣就刪除了 /usr/local/nginx/ 目錄了yum install -y nginx
/etc/nginx/nginx.conf
systemctl start nginx
systemctl stop nginx
systemctl restart nginx
nginx -t
檢查配置文件是否有語法錯誤yum install -y telnet
firewall-cmd --add-prot=80/tcp --permanent
firewall-cmd --reload
vi /etc/nginx/conf.d/default.conf
nginx -t
檢測配置文件nginx -s reload
重載配置文件systemctl restart nginx
重啓nginx服務vi /etc/hosts
編輯這個文件deny all;
nginx -t
檢測配置文件語法錯誤nginx -s reload
重載配置文件rm -rf wordpress5.3 wordpress5.3.zip