Mert elég jó kis progi amin keresztül lehet barátokhoz csatlakozni pl cod2 szerverhez vagy beszélgetni. stb... A nyers program megvan és lehet külön xfire szerverhez csatlakozni...
Xfire szerver készítése
Na eddig jutottam most kb 10 perc alat..:
https://github.com/darcymiranda/PFire
Fent van buildelve run parancsal elindítva.
De a port 25999 kinyitva. Futtatom,de az xfire kliensel nem találom még localon sem...
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
Restored /opt/PFire/src/PFire.Common/PFire.Common.csproj (in 3,48 sec).
Restored /opt/PFire/src/PFire.Infrastructure/PFire.Infrastructure.csproj (in 7,16 sec).
Restored /opt/PFire/src/PFire.Core/PFire.Core.csproj (in 7,16 sec).
Restored /opt/PFire/src/PFire.Console/PFire.Console.csproj (in 13,21 sec).
PFire.Common -> /opt/PFire/src/PFire.Common/bin/Debug/net5.0/PFire.Common.dll
PFire.Infrastructure -> /opt/PFire/src/PFire.Infrastructure/bin/Debug/net5.0/PFire.Infrastructure.dll
/opt/PFire/src/PFire.Core/Session/XFireClient.cs(239,29): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [/opt/PFire/src/PFire.Core/PFire.Core.csproj]
PFire.Core -> /opt/PFire/src/PFire.Core/bin/Debug/net5.0/PFire.Core.dll
PFire.Console -> /opt/PFire/src/PFire.Console/bin/Debug/net5.0/PFire.Console.dll
Build succeeded.
/opt/PFire/src/PFire.Core/Session/XFireClient.cs(239,29): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [/opt/PFire/src/PFire.Core/PFire.Core.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:32.24
[17:25:00 DBG] An 'IServiceProvider' was created for internal use by Entity Framework.
[17:25:01 DBG] No relationship from 'Friend' to 'User' has been configured by convention because there are multiple properties on one entity type {'Me', 'Them'} that could be matched with the properties on the other entity type {'FriendsOf', 'MyFriends'}. This message can be disregarded if explicit configuration has been specified in 'OnModelCreating'.
[17:25:01 DBG] No relationship from 'User' to 'Friend' has been configured by convention because there are multiple properties on one entity type {'FriendsOf', 'MyFriends'} that could be matched with the properties on the other entity type {'Me', 'Them'}. This message can be disregarded if explicit configuration has been specified in 'OnModelCreating'.
[17:25:02 DBG] No relationship from 'Friend' to 'User' has been configured by convention because there are multiple properties on one entity type {'Me', 'Them'} that could be matched with the properties on the other entity type {'FriendsOf', 'MyFriends'}. This message can be disregarded if explicit configuration has been specified in 'OnModelCreating'.
[17:25:02 DBG] No relationship from 'User' to 'Friend' has been configured by convention because there are multiple properties on one entity type {'FriendsOf', 'MyFriends'} that could be matched with the properties on the other entity type {'Me', 'Them'}. This message can be disregarded if explicit configuration has been specified in 'OnModelCreating'.
[17:25:02 DBG] The index {'MeId'} was not created on entity type 'Friend' as the properties are already covered by the index {'MeId', 'ThemId'}.
[17:25:02 DBG] The index {'MeId'} was not created on entity type 'Friend' as the properties are already covered by the index {'MeId', 'ThemId'}.
[17:25:02 INF] Entity Framework Core 5.0.0 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.Sqlite' with options: None
[17:25:02 DBG] Migrating using database 'main' on server 'pfiredb.sqlite'.
[17:25:02 DBG] Opening connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] An error occurred using the connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opening connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] An error occurred using the connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opening connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opened connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (14ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
PRAGMA journal_mode = 'wal';
[17:25:03 INF] Executed DbCommand (66ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
PRAGMA journal_mode = 'wal';
[17:25:03 DBG] Closing connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Closed connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] DetectChanges starting for 'DatabaseContext'.
[17:25:03 DBG] DetectChanges completed for 'DatabaseContext'.
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Opening connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opened connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "__EFMigrationsHistory" (
"MigrationId" TEXT NOT NULL CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY,
"ProductVersion" TEXT NOT NULL
);
[17:25:03 INF] Executed DbCommand (18ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "__EFMigrationsHistory" (
"MigrationId" TEXT NOT NULL CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY,
"ProductVersion" TEXT NOT NULL
);
[17:25:03 DBG] Closing connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Closed connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opening connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opened connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Creating DbCommand for 'ExecuteScalar'.
[17:25:03 DBG] Created DbCommand for 'ExecuteScalar' (0ms).
[17:25:03 DBG] Opening connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opened connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';
[17:25:03 INF] Executed DbCommand (9ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';
[17:25:03 DBG] Closing connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Closed connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Creating DbCommand for 'ExecuteReader'.
[17:25:03 DBG] Created DbCommand for 'ExecuteReader' (0ms).
[17:25:03 DBG] Opening connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opened connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
[17:25:03 INF] Executed DbCommand (5ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
[17:25:03 DBG] A data reader was disposed.
[17:25:03 DBG] Closing connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Closed connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 INF] Applying migration '20201213224005_InitialMigration'.
[17:25:03 DBG] Opening connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opened connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Beginning transaction with isolation level 'Unspecified'.
[17:25:03 DBG] Began transaction with isolation level 'Serializable'.
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Users" (
"Id" INTEGER NOT NULL CONSTRAINT "PK_Users" PRIMARY KEY AUTOINCREMENT,
"Username" TEXT NOT NULL,
"Password" TEXT NOT NULL,
"Salt" TEXT NOT NULL,
"Nickname" TEXT NULL,
"Version" BLOB NULL,
"DateCreated" TEXT NOT NULL,
"DateModified" TEXT NOT NULL
);
[17:25:03 INF] Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Users" (
"Id" INTEGER NOT NULL CONSTRAINT "PK_Users" PRIMARY KEY AUTOINCREMENT,
"Username" TEXT NOT NULL,
"Password" TEXT NOT NULL,
"Salt" TEXT NOT NULL,
"Nickname" TEXT NULL,
"Version" BLOB NULL,
"DateCreated" TEXT NOT NULL,
"DateModified" TEXT NOT NULL
);
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Friends" (
"MeId" INTEGER NOT NULL,
"ThemId" INTEGER NOT NULL,
"Message" TEXT NULL,
"Pending" INTEGER NOT NULL,
"Version" BLOB NULL,
"DateCreated" TEXT NOT NULL,
"DateModified" TEXT NOT NULL,
CONSTRAINT "PK_Friends" PRIMARY KEY ("MeId", "ThemId"),
CONSTRAINT "FK_Friends_Users_MeId" FOREIGN KEY ("MeId") REFERENCES "Users" ("Id") ON DELETE RESTRICT,
CONSTRAINT "FK_Friends_Users_ThemId" FOREIGN KEY ("ThemId") REFERENCES "Users" ("Id") ON DELETE RESTRICT
);
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Friends" (
"MeId" INTEGER NOT NULL,
"ThemId" INTEGER NOT NULL,
"Message" TEXT NULL,
"Pending" INTEGER NOT NULL,
"Version" BLOB NULL,
"DateCreated" TEXT NOT NULL,
"DateModified" TEXT NOT NULL,
CONSTRAINT "PK_Friends" PRIMARY KEY ("MeId", "ThemId"),
CONSTRAINT "FK_Friends_Users_MeId" FOREIGN KEY ("MeId") REFERENCES "Users" ("Id") ON DELETE RESTRICT,
CONSTRAINT "FK_Friends_Users_ThemId" FOREIGN KEY ("ThemId") REFERENCES "Users" ("Id") ON DELETE RESTRICT
);
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE UNIQUE INDEX "IX_Friends_MeId_ThemId" ON "Friends" ("MeId", "ThemId");
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE UNIQUE INDEX "IX_Friends_MeId_ThemId" ON "Friends" ("MeId", "ThemId");
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_Friends_ThemId" ON "Friends" ("ThemId");
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_Friends_ThemId" ON "Friends" ("ThemId");
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_Users_Id" ON "Users" ("Id");
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_Users_Id" ON "Users" ("Id");
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_Users_Username" ON "Users" ("Username");
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_Users_Username" ON "Users" ("Username");
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20201213224005_InitialMigration', '5.0.0');
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20201213224005_InitialMigration', '5.0.0');
[17:25:03 DBG] Committing transaction.
[17:25:03 DBG] Committed transaction.
[17:25:03 DBG] Disposing transaction.
[17:25:03 DBG] Closing connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Closed connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 INF] Applying migration '20201219103931_FixTableNames'.
[17:25:03 DBG] Opening connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] Opened connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Beginning transaction with isolation level 'Unspecified'.
[17:25:03 DBG] Began transaction with isolation level 'Serializable'.
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
DROP TABLE "Friends";
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
DROP TABLE "Friends";
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
DROP TABLE "Users";
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
DROP TABLE "Users";
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "User" (
"Id" INTEGER NOT NULL CONSTRAINT "PK_User" PRIMARY KEY AUTOINCREMENT,
"Username" TEXT NOT NULL,
"Password" TEXT NOT NULL,
"Salt" TEXT NOT NULL,
"Nickname" TEXT NULL,
"Version" BLOB NULL,
"DateCreated" TEXT NOT NULL,
"DateModified" TEXT NOT NULL
);
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "User" (
"Id" INTEGER NOT NULL CONSTRAINT "PK_User" PRIMARY KEY AUTOINCREMENT,
"Username" TEXT NOT NULL,
"Password" TEXT NOT NULL,
"Salt" TEXT NOT NULL,
"Nickname" TEXT NULL,
"Version" BLOB NULL,
"DateCreated" TEXT NOT NULL,
"DateModified" TEXT NOT NULL
);
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Friend" (
"MeId" INTEGER NOT NULL,
"ThemId" INTEGER NOT NULL,
"Message" TEXT NULL,
"Pending" INTEGER NOT NULL,
"Version" BLOB NULL,
"DateCreated" TEXT NOT NULL,
"DateModified" TEXT NOT NULL,
CONSTRAINT "PK_Friend" PRIMARY KEY ("MeId", "ThemId"),
CONSTRAINT "FK_Friend_User_MeId" FOREIGN KEY ("MeId") REFERENCES "User" ("Id") ON DELETE RESTRICT,
CONSTRAINT "FK_Friend_User_ThemId" FOREIGN KEY ("ThemId") REFERENCES "User" ("Id") ON DELETE RESTRICT
);
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Friend" (
"MeId" INTEGER NOT NULL,
"ThemId" INTEGER NOT NULL,
"Message" TEXT NULL,
"Pending" INTEGER NOT NULL,
"Version" BLOB NULL,
"DateCreated" TEXT NOT NULL,
"DateModified" TEXT NOT NULL,
CONSTRAINT "PK_Friend" PRIMARY KEY ("MeId", "ThemId"),
CONSTRAINT "FK_Friend_User_MeId" FOREIGN KEY ("MeId") REFERENCES "User" ("Id") ON DELETE RESTRICT,
CONSTRAINT "FK_Friend_User_ThemId" FOREIGN KEY ("ThemId") REFERENCES "User" ("Id") ON DELETE RESTRICT
);
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE UNIQUE INDEX "IX_Friend_MeId_ThemId" ON "Friend" ("MeId", "ThemId");
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE UNIQUE INDEX "IX_Friend_MeId_ThemId" ON "Friend" ("MeId", "ThemId");
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_Friend_ThemId" ON "Friend" ("ThemId");
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_Friend_ThemId" ON "Friend" ("ThemId");
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_User_Id" ON "User" ("Id");
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_User_Id" ON "User" ("Id");
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_User_Username" ON "User" ("Username");
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE INDEX "IX_User_Username" ON "User" ("Username");
[17:25:03 DBG] Creating DbCommand for 'ExecuteNonQuery'.
[17:25:03 DBG] Created DbCommand for 'ExecuteNonQuery' (0ms).
[17:25:03 DBG] Executing DbCommand [Parameters=[], CommandType='Text', CommandTimeout='30']
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20201219103931_FixTableNames', '5.0.0');
[17:25:03 INF] Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20201219103931_FixTableNames', '5.0.0');
[17:25:03 DBG] Committing transaction.
[17:25:03 DBG] Committed transaction.
[17:25:03 DBG] Disposing transaction.
[17:25:03 DBG] Closing connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[17:25:03 DBG] Closed connection to database 'main' on server 'pfiredb.sqlite'.
[17:25:03 DBG] 'DatabaseContext' disposed.
[17:25:03 DBG] Hosting starting
[17:25:03 INF] PFire Server listening on 0.0.0.0:25999```
mennydorges PFire Server listening on 0.0.0.0:25999```
Eszerint ő fülel.
De ez csak a log.
Ha megnézed a netstat -tulnp
parancs kimenetét, abból ki tudod bogarászni, mi a valós helyzet.
- Szerkesztve
klt
tcp 0 0 0.0.0.0:25999 0.0.0.0:* LISTEN 17523/PFire.Console
Az a baj nem látom hol kellene a hostot javítani...
mennydorges Akkor tényleg fülel, várja a kapcsolódását valaminek a 25999 porton.
klt na ez az. de mire?
mennydorges A kliensére talán. Nem tudom, innen innen nincs ötletem.
- Szerkesztve
klt elvileg az xfire lenne az. a windowson a host file ban megadtam a 127.0.0.1 de az xfire kliens csak nem látja....
Run & Connect
Add cs.xfire.com to your hosts file with your IP
On Windows it's located at C:\Windows\System32\drivers\etc\hosts
127.0.0.1 cs.xfire.com
Note: This is a workaround to redirect the XFire client to point to your localhost address (127.0.0.1) instead of the real server
Open a command line and run the following commands from the root directory
cd src\PFire.Console
dotnet run
host file-om:
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1 cs.xfire.com
45.128.69.249 cs.xfire.com
# ::1 localhost```
mennydorges windowson a host file ban megadtam a 127.0.0.1 de az xfire kliens csak nem látja....
És azon a windowsos gépen futna a kiszolgáló?
Mert ha nem, akkor a 127.0.0.1 nem jó, az félrevezetés.
- Szerkesztve
klt Ez a Pfire az ubuntu 18.04 serverre van telepítve. A kliens windows 11-en van és a windows 11 hostba írtam,hogy az xfire oda menjen..
mennydorges Akkor próbáld meg, hogy a Windowson a szervered IP címét adod meg!
Akkor nem a kliens nem a local hoston akar a kiszolgálóhoz kapcsolódni...
mennydorges ha a hostot módosítom windowson mindig kell neki egy restart?
Gondolom, igen, nemt tudom.
- Szerkesztve
klt
Basszus sikerült. Köszi klt.
FROM "User" AS "u"
INNER JOIN "Friend" AS "f" ON "u"."Id" = "f"."MeId"
INNER JOIN "User" AS "u0" ON "f"."ThemId" = "u0"."Id"
WHERE ("u"."Id" = @__user_Id_0) AND NOT ("f"."Pending")
[18:42:30 DBG] A data reader was disposed.
[18:42:30 DBG] Closing connection to database 'main' on server '/opt/PFire/src/PFire.Console/pfiredb.sqlite'.
[18:42:30 DBG] Closed connection to database 'main' on server 'pfiredb.sqlite'.
[18:42:30 DBG] 'DatabaseContext' disposed.
[18:42:30 DBG] Sent message[geb,1]: PFire.Core.Protocol.Messages.Outbound.FriendsSessionAssign
Még annyi belefér,hogy lehet ezt a dotnet run automatikusan folytonosan futtatni?
Mert most megnyitom a terminált átlépek a mappájába és ki kell adnom neki a dotnet run parancsot.
De bezárom a terminált leáll...
mennydorges Tanulság: a 127.0.0.1 az a localhost, nem egy másik gép
- Szerkesztve
klt De mekkora
MODERÁLVA!
Felhívnám a figyelmedet arra a tényre, hogy legyen szó bármilyen rendszerről vagy bárkiről, ezen az oldalon tisztességgel emlegetjük. Ez rád is vonatkozik.
Htibi
mennydorges dotnet run automatikusan folytonosan futtatni?
Persze.
Scriptben írd le a futtatását.
Valami ilyesmi, nem szó szerint, de majd te leírod rendesen:
#!/bin/sh
/bin/dotnet run izébizé és paraméterei
#vagy mittomén milyen paranccsal indítod amúgy a treminálból.
Elmented például /opt/xfirestart.sh néven.
/etc/systemd/system alatt csinálsz egy új fájlt például xfirepfire.service néven:
[Unit]
Description=Xfire vagy mi a levegő szerver
#Requires=
#Ha valaminek még előtte el kell indulnia teljesen, és az ehhez kell, akkor unkomment, és odaírni a nevét annak
#After=
#Csak egyszerűen ez után induljon, ha nincs ilyen, akkor mindegy, mikor indul
[Service]
Type=simple
User=xfireuserneve
#Ezen felhasználó neve alatt fut majd ex xfire pótlék
ExecStart=/opt/xfirestart.sh
#vagy amine nevezted a scriptet...
[Install]
WantedBy=multi-user.target
Ezután
systemctl daemon-reload
systemctl enable xfirepfire
(vagy aminek neezted a .service-t)
systemctl start xfirepfire
(Nyilván, ide is az a név jön, amit te adtál neki)
Kész.
Ha jól csináltad, a start után a systemctl status xfirepfire
olyasmit (is) kell mutasson, hogy
Active: active (running)
mennydorges winfos host file....
Az is csak egy beállító fájl, amibe ha butaságot írnak, nem vezet jó működésre
- Szerkesztve
● xfirepfire.service - Xfire szerver
Loaded: loaded (/etc/systemd/system/xfirepfire.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-05-01 19:28:32 CEST; 22s ago
Process: 30598 ExecStart=/opt/xfirestart.sh (code=exited, status=203/EXEC)
Main PID: 30598 (code=exited, status=203/EXEC)
máj 01 19:28:32 panel systemd[1]: Started Xfire szerver.
máj 01 19:28:32 panel systemd[30598]: xfirepfire.service: Failed to execute command: Text file busy
máj 01 19:28:32 panel systemd[30598]: xfirepfire.service: Failed at step EXEC spawning /opt/xfirestart.sh: Text file busy
máj 01 19:28:32 panel systemd[1]: xfirepfire.service: Main process exited, code=exited, status=203/EXEC
máj 01 19:28:32 panel systemd[1]: xfirepfire.service: Failed with result 'exit-code'.
sh file:
#!/usr/env/bin bash
/opt/PFire/src/PFire.Console/dotnet run
service:
[Unit]
Description=Xfire szerver
[Service]
Type=simple
ExecStart=/opt/./xfirestart.sh
[Install]
WantedBy=multi-user.target
mennydorges Elfelejtettem említeni, hogy tedd futtathatóvá a .sh fájlt.
chmod +x /opt/xfirestart.sh
Ez lehet probléma.
Illetve hiányolom az elejéről a#!/bin/sh
jelzést.
https://stackoverflow.com/questions/7366775/what-does-the-line-bin-sh-mean-in-a-unix-shell-script