随笔 - 23,  文章 - 0,  评论 - 0,  阅读 - 12164
07 2024 档案
netdot webapi发布centos stream 9 被dos攻击
摘要:前言-刚刚发布一个demo一直被一个叼毛攻击,不停的扫描端口,弄得接口一访问就是503错误 99元买了一个2核2g的服务器,1元钱买了一个服务器,有个人一直扫描我的端口 安装一个 nginx dnf install nginx 安装完成后启动nginx服务 # 启动 systemctl start 阅读全文
posted @ 2024-07-06 20:02 啊修 阅读(12) 评论(0) 推荐(0) 编辑
解决linxu The type initializer for 'Gdip' threw an exception.
摘要:问题很简单,引用的图像库出问题了,我使用的centos stream 8,.net 8的框架,引用的图像库是System.Drawing.Common Image sourceImage = Image.FromFile(sourcePath) using (Bitmap newImage = ne 阅读全文
posted @ 2024-07-06 07:48 啊修 阅读(25) 评论(0) 推荐(0) 编辑
webapi发布centos stream 8设置自动运行
摘要:发布文件放到home下 然后依次输入 第一步:创建服务文件 首先,需要创建一个systemd服务文件。我们一般将这种服务文件放在/etc/systemd/system/目录下,并且给它一个.service后缀。例如,你可以创建一个名为wecharwebapi.service的文件。 sudo vi 阅读全文
posted @ 2024-07-04 19:49 啊修 阅读(15) 评论(0) 推荐(0) 编辑
CentOS Stream 8 发布.net 8 webapi
摘要:参考资料 https://learn.microsoft.com/zh-cn/dotnet/core/install/linux-rhel#where-is-centos-linux 微软好像不持支.net 7所以把demo换成.net8 sudo dnf install dotnet-sdk-8. 阅读全文
posted @ 2024-07-03 15:13 啊修 阅读(47) 评论(0) 推荐(0) 编辑


< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示