摘要: 一,配置nginx虚拟主机 1,查看php-fpm使用的端口: [root@img ~]# ss -lntp | grep php 如图: 可以看到端口是9000 2,配置虚拟主机: 如下: [root@img conf.d]# vi file.conf 内容如下: server { listen 阅读全文
posted @ 2023-05-10 21:05 刘宏缔的架构森林 阅读(1021) 评论(0) 推荐(0)
摘要: 一,配置nginx.conf 进入到nginx的conf目录 [root@img conf]# pwd /usr/local/soft/nginx-1.24.0/conf 创建虚拟主机的存放目录 [root@img conf]# mkdir conf.d 编辑配置文件 [root@img conf] 阅读全文
posted @ 2023-05-10 20:31 刘宏缔的架构森林 阅读(1449) 评论(0) 推荐(0)
摘要: 一,官网地址: https://www.php.net/ 如图: 二,下载并解压: 下载: [root@img php]# wget https://www.php.net/distributions/php-8.2.5.tar.gz 解压: [root@img php]# tar -zxvf ph 阅读全文
posted @ 2023-05-10 15:41 刘宏缔的架构森林 阅读(1401) 评论(0) 推荐(0)
摘要: 一,安装epel 我们以libzip-devel为例: 默认搜索不到 [root@img ~]# yum search libzip-devel Last metadata expiration check: 0:02:34 ago on Wed 10 May 2023 01:15:06 PM CS 阅读全文
posted @ 2023-05-10 14:36 刘宏缔的架构森林 阅读(2041) 评论(0) 推荐(0)
摘要: 一,官网: http://nginx.org/ 如图: 二,下载并解压 下载: [root@img nginx]# wget http://nginx.org/download/nginx-1.24.0.tar.gz 解压: [root@img nginx]# tar -zxvf nginx-1.2 阅读全文
posted @ 2023-05-10 11:24 刘宏缔的架构森林 阅读(2176) 评论(1) 推荐(1)
摘要: 一,配置可以sudo的用户 参考这个: https://blog.imgtouch.com/index.php/2023/06/06/rocky-linux-tian-jia-sudoer-yong-hu-rocky-linux-9-1/ 二,禁止使用root登录ssh 1,配置ssh [root@ 阅读全文
posted @ 2023-05-10 09:46 刘宏缔的架构森林 阅读(2620) 评论(0) 推荐(0)