💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**1.配置文件** ``` cp /usr/local/src/php-7.2.6/php.ini-development /usr/local/php/etc/php.ini ``` **2.配置文件语法检测** ``` /usr/local/php/sbin/php-fpm -t ``` **3.服务管理** 1)启动 ``` /usr/local/php/sbin/php-fpm ``` 2)关闭 ``` pkill php-fpm ``` 3)重载 ``` pkill -USR2 php-fpm ``` **4.开机启动** ``` vi /etc/rc.local /usr/local/php/sbin/php-fpm ``` **5.nginx与php结合** ``` #bbs.linux.com虚拟主机 server{ listen 80; server_name bbs.linux.com; access_log logs/bbs.access.log main; location / { root html/bbs; index index.php index.html index.htm; } location ~ \.php(.*)$ { fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; #nginx支持tp fastcgi_param PATH_INFO $1; include fastcgi_params; } } ```   ### **系统的学习PHP** 关注:PHP自学中心,回复相应的关键词,领取以下视频教程 **高性能Linux服务器搭建实战** 公众号里回复:20190622   #### **还有其他的教程的关键词,请关注公众号查看每天分享的文章教程的头部** ![](https://img.kancloud.cn/96/af/96af322d2cdc53d3fbbe981affa60c7f_150x150.jpg)