Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[已解决] 在 Arch Linux 下运行无服务响应 #11

Closed
taotieren opened this issue Sep 10, 2023 · 6 comments
Closed

[已解决] 在 Arch Linux 下运行无服务响应 #11

taotieren opened this issue Sep 10, 2023 · 6 comments

Comments

@taotieren
Copy link
Contributor

taotieren commented Sep 10, 2023

将其打包到 AUR clouddrive 仓库,配置环境如下

❯ exa -Tl pkg
drwxr-xr-x    - taotieren  5 9月  11:50 pkg
drwxr-xr-x    - taotieren  5 9月  11:50 └── clouddrive
drwxr-xr-x    - taotieren  5 9月  11:50    ├── opt
drwxr-xr-x    - taotieren  5 9月  11:50    │  └── clouddrive
.rwxr-xr-x  17M taotieren  5 9月  11:50    │     ├── clouddrive
drwxr-xr-x    - taotieren  5 9月  11:50    │     └── wwwroot
drwxr-xr-x    - taotieren  5 9月  11:50    │        ├── _content
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  └── Blazored.Modal
.rwxr-xr-x 2.5k taotieren  5 9月  11:50    │        │     ├── Blazored.Modal.bundle.scp.css
.rwxr-xr-x  164 taotieren  5 9月  11:50    │        │     └── BlazoredModal.razor.js
drwxr-xr-x    - taotieren  5 9月  11:50    │        ├── _framework
.rwxr-xr-x  76k taotieren  5 9月  11:50    │        │  ├── BencodeNET.dll
.rwxr-xr-x 8.5k taotieren  5 9月  11:50    │        │  ├── blazor.boot.json
.rwxr-xr-x  64k taotieren  5 9月  11:50    │        │  ├── blazor.webassembly.js
.rwxr-xr-x  20k taotieren  5 9月  11:50    │        │  ├── blazor.webassembly.js.gz
.rwxr-xr-x  31k taotieren  5 9月  11:50    │        │  ├── Blazored.LocalStorage.dll
.rwxr-xr-x  45k taotieren  5 9月  11:50    │        │  ├── Blazored.Modal.dll
.rwxr-xr-x  16k taotieren  5 9月  11:50    │        │  ├── BlazorPagination.dll
.rwxr-xr-x 1.3M taotieren  5 9月  11:50    │        │  ├── CloudDriveWasm.dll
.rwxr-xr-x 289k taotieren  5 9月  11:50    │        │  ├── CloudDriveWasm.pdb.gz
.rwxr-xr-x 270k taotieren  5 9月  11:50    │        │  ├── dotnet.7.0.10.xk0wph2q28.js
.rwxr-xr-x  68k taotieren  5 9月  11:50    │        │  ├── dotnet.7.0.10.xk0wph2q28.js.gz
.rwxr-xr-x 341k taotieren  5 9月  11:50    │        │  ├── dotnet.timezones.blat
.rwxr-xr-x 2.5M taotieren  5 9月  11:50    │        │  ├── dotnet.wasm
.rwxr-xr-x 1.0M taotieren  5 9月  11:50    │        │  ├── dotnet.wasm.gz
.rwxr-xr-x 264k taotieren  5 9月  11:50    │        │  ├── Google.Protobuf.dll
.rwxr-xr-x  25k taotieren  5 9月  11:50    │        │  ├── Grpc.Core.Api.dll
.rwxr-xr-x 228k taotieren  5 9月  11:50    │        │  ├── Grpc.Net.Client.dll
.rwxr-xr-x  28k taotieren  5 9月  11:50    │        │  ├── Grpc.Net.Client.Web.dll
.rwxr-xr-x 5.6k taotieren  5 9月  11:50    │        │  ├── Grpc.Net.Common.dll
.rwxr-xr-x 1.5M taotieren  5 9月  11:50    │        │  ├── icudt.dat
.rwxr-xr-x 956k taotieren  5 9月  11:50    │        │  ├── icudt_CJK.dat
.rwxr-xr-x 551k taotieren  5 9月  11:50    │        │  ├── icudt_EFIGS.dat
.rwxr-xr-x 1.1M taotieren  5 9月  11:50    │        │  ├── icudt_no_CJK.dat
.rwxr-xr-x 156k taotieren  5 9月  11:50    │        │  ├── Microsoft.AspNetCore.Components.dll
.rwxr-xr-x  19k taotieren  5 9月  11:50    │        │  ├── Microsoft.AspNetCore.Components.Forms.dll
.rwxr-xr-x  80k taotieren  5 9月  11:50    │        │  ├── Microsoft.AspNetCore.Components.Web.dll
.rwxr-xr-x  52k taotieren  5 9月  11:50    │        │  ├── Microsoft.AspNetCore.Components.WebAssembly.dll
.rwxr-xr-x  15k taotieren  5 9月  11:50    │        │  ├── Microsoft.Bcl.AsyncInterfaces.dll
.rwxr-xr-x  14k taotieren  5 9月  11:50    │        │  ├── Microsoft.Bcl.HashCode.dll
.rwxr-xr-x  21k taotieren  5 9月  11:50    │        │  ├── Microsoft.EntityFrameworkCore.Abstractions.dll
.rwxr-xr-x 1.6M taotieren  5 9月  11:50    │        │  ├── Microsoft.EntityFrameworkCore.dll
.rwxr-xr-x  26k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Caching.Abstractions.dll
.rwxr-xr-x  33k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Caching.Memory.dll
.rwxr-xr-x 6.1k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Configuration.Abstractions.dll
.rwxr-xr-x 7.2k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Configuration.dll
.rwxr-xr-x 7.7k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Configuration.Json.dll
.rwxr-xr-x  13k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll
.rwxr-xr-x  36k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.DependencyInjection.dll
.rwxr-xr-x 6.1k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Localization.Abstractions.dll
.rwxr-xr-x  32k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Localization.dll
.rwxr-xr-x  33k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Logging.Abstractions.dll
.rwxr-xr-x  18k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Logging.dll
.rwxr-xr-x  15k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Options.dll
.rwxr-xr-x 7.7k taotieren  5 9月  11:50    │        │  ├── Microsoft.Extensions.Primitives.dll
.rwxr-xr-x  40k taotieren  5 9月  11:50    │        │  ├── Microsoft.JSInterop.dll
.rwxr-xr-x 8.7k taotieren  5 9月  11:50    │        │  ├── Microsoft.JSInterop.WebAssembly.dll
.rwxr-xr-x  14k taotieren  5 9月  11:50    │        │  ├── netstandard.dll
.rwxr-xr-x  20k taotieren  5 9月  11:50    │        │  ├── System.Collections.Concurrent.dll
.rwxr-xr-x  37k taotieren  5 9月  11:50    │        │  ├── System.Collections.dll
.rwxr-xr-x  34k taotieren  5 9月  11:50    │        │  ├── System.Collections.Immutable.dll
.rwxr-xr-x 5.1k taotieren  5 9月  11:50    │        │  ├── System.Collections.NonGeneric.dll
.rwxr-xr-x  13k taotieren  5 9月  11:50    │        │  ├── System.Collections.Specialized.dll
.rwxr-xr-x  23k taotieren  5 9月  11:50    │        │  ├── System.ComponentModel.Annotations.dll
.rwxr-xr-x 4.6k taotieren  5 9月  11:50    │        │  ├── System.ComponentModel.dll
.rwxr-xr-x  12k taotieren  5 9月  11:50    │        │  ├── System.ComponentModel.Primitives.dll
.rwxr-xr-x  98k taotieren  5 9月  11:50    │        │  ├── System.ComponentModel.TypeConverter.dll
.rwxr-xr-x  14k taotieren  5 9月  11:50    │        │  ├── System.Console.dll
.rwxr-xr-x 4.1k taotieren  5 9月  11:50    │        │  ├── System.Diagnostics.Debug.dll
.rwxr-xr-x  26k taotieren  5 9月  11:50    │        │  ├── System.Diagnostics.DiagnosticSource.dll
.rwxr-xr-x 4.1k taotieren  5 9月  11:50    │        │  ├── System.dll
.rwxr-xr-x  32k taotieren  5 9月  11:50    │        │  ├── System.IO.Compression.dll
.rwxr-xr-x  19k taotieren  5 9月  11:50    │        │  ├── System.IO.Pipelines.dll
.rwxr-xr-x 103k taotieren  5 9月  11:50    │        │  ├── System.Linq.dll
.rwxr-xr-x 356k taotieren  5 9月  11:50    │        │  ├── System.Linq.Expressions.dll
.rwxr-xr-x  62k taotieren  5 9月  11:50    │        │  ├── System.Linq.Queryable.dll
.rwxr-xr-x  17k taotieren  5 9月  11:50    │        │  ├── System.Memory.dll
.rwxr-xr-x 135k taotieren  5 9月  11:50    │        │  ├── System.Net.Http.dll
.rwxr-xr-x 5.1k taotieren  5 9月  11:50    │        │  ├── System.Net.NameResolution.dll
.rwxr-xr-x 9.2k taotieren  5 9月  11:50    │        │  ├── System.Net.Primitives.dll
.rwxr-xr-x 7.7k taotieren  5 9月  11:50    │        │  ├── System.Net.Sockets.dll
.rwxr-xr-x  13k taotieren  5 9月  11:50    │        │  ├── System.ObjectModel.dll
.rwxr-xr-x 1.6M taotieren  5 9月  11:50    │        │  ├── System.Private.CoreLib.dll
.rwxr-xr-x  67k taotieren  5 9月  11:50    │        │  ├── System.Private.Uri.dll
.rwxr-xr-x 4.6k taotieren  5 9月  11:50    │        │  ├── System.Resources.ResourceManager.dll
.rwxr-xr-x 9.7k taotieren  5 9月  11:50    │        │  ├── System.Runtime.dll
.rwxr-xr-x  37k taotieren  5 9月  11:50    │        │  ├── System.Runtime.InteropServices.JavaScript.dll
.rwxr-xr-x 4.1k taotieren  5 9月  11:50    │        │  ├── System.Security.Cryptography.Algorithms.dll
.rwxr-xr-x  18k taotieren  5 9月  11:50    │        │  ├── System.Security.Cryptography.dll
.rwxr-xr-x 4.1k taotieren  5 9月  11:50    │        │  ├── System.Security.Cryptography.Primitives.dll
.rwxr-xr-x  28k taotieren  5 9月  11:50    │        │  ├── System.Text.Encodings.Web.dll
.rwxr-xr-x 321k taotieren  5 9月  11:50    │        │  ├── System.Text.Json.dll
.rwxr-xr-x 229k taotieren  5 9月  11:50    │        │  ├── System.Text.RegularExpressions.dll
.rwxr-xr-x 4.6k taotieren  5 9月  11:50    │        │  ├── System.Threading.dll
.rwxr-xr-x 4.1k taotieren  5 9月  11:50    │        │  ├── System.Threading.Tasks.dll
.rwxr-xr-x 4.6k taotieren  5 9月  11:50    │        │  ├── System.Threading.Tasks.Extensions.dll
.rwxr-xr-x 4.1k taotieren  5 9月  11:50    │        │  ├── System.Threading.ThreadPool.dll
.rwxr-xr-x 7.2k taotieren  5 9月  11:50    │        │  ├── System.Transactions.Local.dll
.rwxr-xr-x 9.2k taotieren  5 9月  11:50    │        │  ├── System.Web.HttpUtility.dll
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  └── zh-CN
.rwxr-xr-x  43k taotieren  5 9月  11:50    │        │     ├── CloudDriveWasm.resources.dll
.rwxr-xr-x  15k taotieren  5 9月  11:50    │        │     └── CloudDriveWasm.resources.dll.gz
.rwxr-xr-x 6.7k taotieren  5 9月  11:50    │        ├── CloudDriveWasm.styles.css
drwxr-xr-x    - taotieren  5 9月  11:50    │        ├── css
.rwxr-xr-x 3.7k taotieren  5 9月  11:50    │        │  ├── app.css
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  ├── bootstrap
.rwxr-xr-x 156k taotieren  5 9月  11:50    │        │  │  └── bootstrap.min.css
.rwxr-xr-x  22k taotieren  5 9月  11:50    │        │  ├── clouddrive.css
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  ├── font-awesome
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  │  ├── css
.rwxr-xr-x 102k taotieren  5 9月  11:50    │        │  │  │  └── all.min.css
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  │  └── webfonts
.rwxr-xr-x 187k taotieren  5 9月  11:50    │        │  │     ├── fa-brands-400.ttf
.rwxr-xr-x 108k taotieren  5 9月  11:50    │        │  │     ├── fa-brands-400.woff2
.rwxr-xr-x  64k taotieren  5 9月  11:50    │        │  │     ├── fa-regular-400.ttf
.rwxr-xr-x  25k taotieren  5 9月  11:50    │        │  │     ├── fa-regular-400.woff2
.rwxr-xr-x 395k taotieren  5 9月  11:50    │        │  │     ├── fa-solid-900.ttf
.rwxr-xr-x 150k taotieren  5 9月  11:50    │        │  │     ├── fa-solid-900.woff2
.rwxr-xr-x  10k taotieren  5 9月  11:50    │        │  │     ├── fa-v4compatibility.ttf
.rwxr-xr-x 4.6k taotieren  5 9月  11:50    │        │  │     └── fa-v4compatibility.woff2
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  ├── open-iconic
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  │  ├── font
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  │  │  ├── css
.rwxr-xr-x 9.4k taotieren  5 9月  11:50    │        │  │  │  │  └── open-iconic-bootstrap.min.css
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  │  │  └── fonts
.rwxr-xr-x  28k taotieren  5 9月  11:50    │        │  │  │     ├── open-iconic.eot
.rwxr-xr-x  21k taotieren  5 9月  11:50    │        │  │  │     ├── open-iconic.otf
.rwxr-xr-x  55k taotieren  5 9月  11:50    │        │  │  │     ├── open-iconic.svg
.rwxr-xr-x  28k taotieren  5 9月  11:50    │        │  │  │     ├── open-iconic.ttf
.rwxr-xr-x  15k taotieren  5 9月  11:50    │        │  │  │     └── open-iconic.woff
.rwxr-xr-x 4.1k taotieren  5 9月  11:50    │        │  │  ├── FONT-LICENSE
.rwxr-xr-x 1.1k taotieren  5 9月  11:50    │        │  │  ├── ICON-LICENSE
.rwxr-xr-x 3.6k taotieren  5 9月  11:50    │        │  │  └── README.md
.rwxr-xr-x 4.2k taotieren  5 9月  11:50    │        │  └── site.css
.rwxr-xr-x 5.4k taotieren  5 9月  11:50    │        ├── favicon.ico
.rwxr-xr-x  16k taotieren  5 9月  11:50    │        ├── icon-192.png
.rwxr-xr-x  92k taotieren  5 9月  11:50    │        ├── icon-512.png
drwxr-xr-x    - taotieren  5 9月  11:50    │        ├── img
.rwxr-xr-x 2.9k taotieren  5 9月  11:50    │        │  ├── ali-promo-qrcode.png
.rwxr-xr-x 3.2k taotieren  5 9月  11:50    │        │  ├── alipay-58x168.png
.rwxr-xr-x  11k taotieren  5 9月  11:50    │        │  ├── audio.png
.rwxr-xr-x  10k taotieren  5 9月  11:50    │        │  ├── cloud115.png
.rwxr-xr-x  23k taotieren  5 9月  11:50    │        │  ├── cloud189.png
.rwxr-xr-x  12k taotieren  5 9月  11:50    │        │  ├── cloudaliyundrive.png
.rwxr-xr-x  24k taotieren  5 9月  11:50    │        │  ├── cloudbaidu.png
.rwxr-xr-x 194k taotieren  5 9月  11:50    │        │  ├── clouddrive-h.png
.rwxr-xr-x 8.6k taotieren  5 9月  11:50    │        │  ├── cloudgoogledrive.png
.rwxr-xr-x  32k taotieren  5 9月  11:50    │        │  ├── cloudhecaiyun.png
.rwxr-xr-x  27k taotieren  5 9月  11:50    │        │  ├── cloudonedrive.png
.rwxr-xr-x  31k taotieren  5 9月  11:50    │        │  ├── cloudwocloud.png
.rwxr-xr-x  15k taotieren  5 9月  11:50    │        │  ├── favicon.ico
.rwxr-xr-x  42k taotieren  5 9月  11:50    │        │  ├── file.png
.rwxr-xr-x 1.3k taotieren  5 9月  11:50    │        │  ├── file32.png
.rwxr-xr-x  621 taotieren  5 9月  11:50    │        │  ├── folder-00-32.png
.rwxr-xr-x  25k taotieren  5 9月  11:50    │        │  ├── folder-00.png
.rwxr-xr-x 7.1k taotieren  5 9月  11:50    │        │  ├── folder.png
.rwxr-xr-x  438 taotieren  5 9月  11:50    │        │  ├── folder32.png
.rwxr-xr-x  60k taotieren  5 9月  11:50    │        │  ├── iina.png
.rwxr-xr-x  27k taotieren  5 9月  11:50    │        │  ├── infuse.png
.rwxr-xr-x  45k taotieren  5 9月  11:50    │        │  ├── loading.gif
.rwxr-xr-x  19k taotieren  5 9月  11:50    │        │  ├── mpvplay.png
.rwxr-xr-x  34k taotieren  5 9月  11:50    │        │  ├── nplayer.png
.rwxr-xr-x 293k taotieren  5 9月  11:50    │        │  ├── photo.png
.rwxr-xr-x 1.5k taotieren  5 9月  11:50    │        │  ├── photo32.png
.rwxr-xr-x  66k taotieren  5 9月  11:50    │        │  ├── pikpak.png
.rwxr-xr-x 8.1k taotieren  5 9月  11:50    │        │  ├── potplayer.png
.rwxr-xr-x  39k taotieren  5 9月  11:50    │        │  ├── video.png
.rwxr-xr-x 1.6k taotieren  5 9月  11:50    │        │  ├── video32.png
.rwxr-xr-x  65k taotieren  5 9月  11:50    │        │  ├── vlc.png
.rwxr-xr-x 7.0k taotieren  5 9月  11:50    │        │  └── webdav.png
.rwxr-xr-x 2.1k taotieren  5 9月  11:50    │        ├── index.html
drwxr-xr-x    - taotieren  5 9月  11:50    │        ├── js
.rwxr-xr-x    3 taotieren  5 9月  11:50    │        │  ├── clouddrive.js
.rwxr-xr-x  21k taotieren  5 9月  11:50    │        │  ├── hammer.min.js
.rwxr-xr-x 2.3k taotieren  5 9月  11:50    │        │  ├── html5-qrcode.js
.rwxr-xr-x  14k taotieren  5 9月  11:50    │        │  ├── myjs.js
.rwxr-xr-x 3.7k taotieren  5 9月  11:50    │        │  ├── myphotoswipe.js
.rwxr-xr-x  27k taotieren  5 9月  11:50    │        │  ├── qrcode.js
.rwxr-xr-x 6.4k taotieren  5 9月  11:50    │        │  └── split.min.js
.rwxr-xr-x  432 taotieren  5 9月  11:50    │        ├── manifest.json
drwxr-xr-x    - taotieren  5 9月  11:50    │        ├── photoswipe
drwxr-xr-x    - taotieren  5 9月  11:50    │        │  ├── default-skin
.rwxr-xr-x  12k taotieren  5 9月  11:50    │        │  │  ├── default-skin.css
.rwxr-xr-x 8.6k taotieren  5 9月  11:50    │        │  │  ├── default-skin.css.map
.rwxr-xr-x  794 taotieren  5 9月  11:50    │        │  │  ├── default-skin.png
.rwxr-xr-x 2.2k taotieren  5 9月  11:50    │        │  │  ├── default-skin.svg
.rwxr-xr-x  866 taotieren  5 9月  11:50    │        │  │  └── preloader.gif
.rwxr-xr-x  25k taotieren  5 9月  11:50    │        │  ├── photoswipe-ui-default.js
.rwxr-xr-x  10k taotieren  5 9月  11:50    │        │  ├── photoswipe-ui-default.min.js
.rwxr-xr-x 4.3k taotieren  5 9月  11:50    │        │  ├── photoswipe.css
.rwxr-xr-x 3.2k taotieren  5 9月  11:50    │        │  ├── photoswipe.css.map
.rwxr-xr-x 100k taotieren  5 9月  11:50    │        │  ├── photoswipe.js
.rwxr-xr-x  32k taotieren  5 9月  11:50    │        │  └── photoswipe.min.js
.rwxr-xr-x  23k taotieren  5 9月  11:50    │        ├── service-worker-assets.js
.rwxr-xr-x 2.4k taotieren  5 9月  11:50    │        ├── service-worker.js
.rwxr-xr-x 1.4k taotieren  5 9月  11:50    │        └── sw-registrator.js
drwxr-xr-x    - taotieren  5 9月  11:50    └── usr
drwxr-xr-x    - taotieren  5 9月  11:50       ├── bin
.rwxr-xr-x   88 taotieren  5 9月  11:50       │  └── clouddrive
drwxr-xr-x    - taotieren  5 9月  11:50       └── share
drwxr-xr-x    - taotieren  5 9月  11:50          ├── applications
.rw-r--r--  337 taotieren  5 9月  11:50          │  └── clouddrive.desktop
drwxr-xr-x    - taotieren  5 9月  11:50          └── icons
drwxr-xr-x    - taotieren  5 9月  11:50             └── hicolor
drwxr-xr-x    - taotieren  5 9月  11:50                ├── 192x192
drwxr-xr-x    - taotieren  5 9月  11:50                │  └── apps
.rw-r--r--  16k taotieren  5 9月  11:50                │     └── clouddrive.png
drwxr-xr-x    - taotieren  5 9月  11:50                └── 512x512
drwxr-xr-x    - taotieren  5 9月  11:50                   └── apps
.rw-r--r--  92k taotieren  5 9月  11:50                      └── clouddrive.png

❯ clouddrive        
housekeeping ./clouddrive
welcome to clouddrive v0.5.6 with cloudapi v0.5.6 build 23-09-02 21:42:48
http server is listening on [::]:19798

❯ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1492 qdisc cake state UP group default qlen 1000
    link/ether XXXXXXXXXXXXX brd ff:ff:ff:ff:ff:ff
    altname enp0s25
    inet XXXXXXXXX/24 brd XXXXXXX.255 scope global noprefixroute eno1
       valid_lft forever preferred_lft forever
    inet6 240e:XXXXXXX::d8d/128 scope global dynamic noprefixroute 
       valid_lft 1985sec preferred_lft 1985sec
    inet6 240e:XXXXXXX/64 scope global temporary dynamic 
       valid_lft 1986sec preferred_lft 1986sec
    inet6 240e:XXXXX/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 1986sec preferred_lft 1986sec
    inet6 fe80::XXXXXXX/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether XXXXXXXXX brd ff:ff:ff:ff:ff:ff permaddr XXXXXXX
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether XXXXXXXX brd ff:ff:ff:ff:ff:ff
    inet XXXXXXX/16 brd XXXXXX255.255 scope global docker0
       valid_lft forever preferred_lft forever

上面是包结构和网络配置信息,有 IPv6 网络环境
进本地端口一直卡住的状态。
是什么原因呢?是 IPv6 影响的吗?如果是怎么修复呢?
图片

访问地址从 http://127.0.0.1:19798/http://[::]:19798/http://localhost:19798/ 之间来回切换的时候会有一瞬间显示登陆页面,然后就是一直加载的状态。用的浏览器是火狐最新版本。chrome 也是一样的情况。

图片

@taotieren
Copy link
Contributor Author

❯ ps -ef| grep cloud        
taotier+    7877    6019  0 22:20 pts/1    00:00:00 bash /usr/bin/clouddrive
taotier+    7878    7877  0 22:20 pts/1    00:00:00 ./clouddrive
taotier+    7887    7878  0 22:20 pts/1    00:00:00 ./clouddrive Start-Service
taotier+   11970    8172  0 22:37 pts/2    00:00:00 grep --color cloud

@taotieren
Copy link
Contributor Author

linux 的 dotnet 编译能否编译成单文件呢?

参考:https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=logicanalyzer-git

dotnet publish  -r linux-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -p:DebugType=None -p:DebugSymbols=false -o 

@taotieren
Copy link
Contributor Author

使用 5.7.0-pre 测试也有同样的问题

@taotieren
Copy link
Contributor Author

taotieren commented Sep 19, 2023

已解决,AUR 包 https://aur.archlinux.org/packages/clouddrive
安装方式

yay -Syu clouddrive

用户身份运行并设置开机自启(会判断联网状态,有网络后启动)

systemctl --user enable --now clouddrive.service

root 身份运行并设置开机自启(会判断联网状态,有网络后启动)

systemctl enable --now clouddrive.service

支持 IPv4 和 IPv6 访问

xdg-open http://127.0.0.1:19798

xdg-open [::]:19798

xdg-open http://localhost:19798/

注意:如果浏览器访问很卡或很慢的话,这个时候切换到浏览器的无痕模式进行访问即可。

查看运行状态

systemctl --user status clouddrive.service
systemctl status clouddrive.service

登陆 clouddrive 账号后设置挂载盘时注意

查看当前用户 UID 或其他用户 UID 避免因为权限问题无法访问。设置对应 UID 即可。

id -u 
id -u username

@taotieren taotieren changed the title 在 Arch Linux 下运行无服务影响 】在 Arch Linux 下运行无服务影响 Sep 19, 2023
@taotieren taotieren changed the title 】在 Arch Linux 下运行无服务影响 [已解决] 在 Arch Linux 下运行无服务影响 Sep 19, 2023
@taotieren
Copy link
Contributor Author

使用 5.7.0-pre 测试也有同样的问题

压缩包里面的 js 文件使用大量的反斜杠,在 linux 设备下是无需这么处理,

AUR 中进行了一些删除操作。

sed -i 's/\\//g' "${pkgdir}/${_install_path}"/wwwroot/*.js

@taotieren taotieren changed the title [已解决] 在 Arch Linux 下运行无服务影响 [已解决] 在 Arch Linux 下运行无服务响应 Sep 19, 2023
@taotieren
Copy link
Contributor Author

我的推荐码:

7jp9Aajq 

有需要的可以填

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant