标签: Nginx

Nginx

2 篇文章

编译安装Nginx
创建nginx用户 useradd -s /bin/false -M nginx 进入安装目录 /opt下 cd /opt 下载nginx(官方链接) #以1.21.6版本为例 wget https://nginx.org/download/nginx-1.21.6.tar.gz 解压 tar -xvf nginx-1.21.6.tar.gz 下载…
systemctl进行管理php-fpm_Nginx_Frpc_Redis等
每次开机需要手动启动各种程序比较麻烦,可以使用systemctl进行管理XXX程序的启动、关闭、重启、开机自启功能。 php注册服务的方式: 1.编辑新的服务文件 vim /etc/systemd/system/php-fpm.service 2.输入以下内容 [Unit] Description=The PHP 7.4 FastCGI Proce…