上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 179 下一页
摘要: 一,官方下载地址: https://www.python.org/downloads/ 点击进入具体版本的下载页面,我们选择稳定版本,地址: https://www.python.org/downloads/release/python-3124/ 如图: 复制得到下载链接: https://www 阅读全文
posted @ 2024-07-22 15:36 刘宏缔的架构森林 阅读(518) 评论(0) 推荐(0)
摘要: 一,添加controller/中间件/路由 1,添加中间件 liuhongdi@lhdpc:/web/api$ php artisan make:middleware ApiSign INFO Middleware [app/Http/Middleware/ApiSign.php] created 阅读全文
posted @ 2024-07-17 17:27 刘宏缔的架构森林 阅读(152) 评论(0) 推荐(0)
摘要: 一,未配置前laravel11直接render页面 如图: 二,配置 1, bootstrap/app.php <?php use Illuminate\Http\Request; use Illuminate\Auth\AuthenticationException; use Illuminate 阅读全文
posted @ 2024-07-17 10:48 刘宏缔的架构森林 阅读(238) 评论(0) 推荐(0)
摘要: 一,相关文档 https://learnku.com/docs/laravel/11.x/routingmd/16657#the-default-route-files 如图: 二,解决: liuhongdi@lhdpc:/web/api$ php artisan install:api insta 阅读全文
posted @ 2024-07-16 18:11 刘宏缔的架构森林 阅读(274) 评论(0) 推荐(0)
摘要: 一,服务启动与停止 1,启动: [root@blog ~]# systemctl start firewalld.service 查看状态: [root@blog ~]# systemctl status firewalld.service ● firewalld.service - firewal 阅读全文
posted @ 2024-07-16 11:45 刘宏缔的架构森林 阅读(345) 评论(0) 推荐(0)
摘要: 一,ssh限制指定用户从固定ip登录: 1.配置 配置文件 [root@blog ~]# vi /etc/ssh/sshd_config 配置项: AllowUsers lhdop git@1.2.3.4 2,测试效果,ssh确认git用户的密码正确后会拒绝你 [op@blog work]$ git 阅读全文
posted @ 2024-07-16 10:17 刘宏缔的架构森林 阅读(437) 评论(0) 推荐(0)
摘要: 一,关于gitolite 1,官网: https://gitolite.com/gitolite/index.html 2,代码网站: https://github.com/sitaramc/gitolite 3,说明: 3个角色: git服务器,上面运行gitolite/ssh服务 管理服务器:用 阅读全文
posted @ 2024-07-16 09:41 刘宏缔的架构森林 阅读(133) 评论(0) 推荐(0)
摘要: 一,查看当前所有的zone 1,列出当前系统中所有的zone [root@blog ~]# firewall-cmd --get-zones block dmz drop external home internal nm-shared public trusted work 2,系统预设的zone 阅读全文
posted @ 2024-07-15 15:15 刘宏缔的架构森林 阅读(744) 评论(0) 推荐(0)
摘要: 一,zone的target有哪些取值? 1,一个zone的target有4个取值: default、ACCEPT、REJECT、DROP,如果不设置默认为default ACCEPT: 允许通过 REJECT: 禁止通过,会返回错误消息 DROP: 禁止通过,直接丢弃数据包 default: 和RE 阅读全文
posted @ 2024-07-15 14:06 刘宏缔的架构森林 阅读(609) 评论(0) 推荐(0)
摘要: 一,php访问/tmp文件夹中文件会报错: 代码: $filePath = "/tmp/php-temp/keji.jpeg"; $is_ex = file_exists($filePath); //print_r("is_ex: ".$is_ex); if ($is_ex){ echo "文件". 阅读全文
posted @ 2024-07-12 19:17 刘宏缔的架构森林 阅读(318) 评论(0) 推荐(0)
上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 179 下一页