Neuinitialisierung Webspace liquidbuddha
Adrachin:
Ich betreibe einen Webspace bei
der ist erst seit einigen Tagen aktiv. Allerdings gab es bei der Order des Webspaces eine unglückliche Verknüpfung mit einer meiner Domains adrachnin.blog. Diese Domain ist aktuell noch wie Wordpress gehostet und kann erst ende des Monats übertragen werden. Die Domain adrachin.blog ist aber im Webspace als “Master Domain” verknüpft. Aus diesem Grund sind vermutlich zahlreiche Probleme entstanden mit SSH Zugang und andere merkwürdige Verhaltensweisen.
Ich habe noch eine andere Domain, die direkt vom Anbieter Metanet bezogen wurde und aktiv ist:
liquidbuddha.ch
Ich möchte jetzt, dass der Webspace neu Initialisiert wird und die Domain liquidbuddha.ch zugeordnet wird.
Schreibe bitte eine Anfrage an den technischen Support der dieses Anliegen formuliert. Wenn es geht nicht so umständlich formuliert wie ich das hier getan habe.
LiquidGPT:
Hier ist ein Entwurf für deine Anfrage an den technischen Support von Metanet:
Betreff: Bitte um Neuinitialisierung des Webspaces und Zuordnung einer neuen Domain
Sehr geehrtes Metanet-Team,
ich bitte um Ihre Unterstützung bei einem Anliegen bezüglich meines Webspaces.
Beim Anlegen des Webspaces wurde die Domain adrachnin.blog als “Master Domain” verknüpft. Diese Domain ist jedoch noch bei WordPress gehostet und kann erst Ende des Monats übertragen werden. Dies hat zu mehreren Problemen geführt, unter anderem mit dem SSH-Zugang.
Ich habe eine weitere Domain, liquidbuddha.ch, die direkt von Metanet bezogen wurde und aktiv ist. Ich möchte den Webspace neu initialisieren und die Domain liquidbuddha.ch als neue “Master Domain” zuordnen.
Bitte teilen Sie mir mit, welche Schritte erforderlich sind, um dies umzusetzen, oder ob Sie dies direkt für mich vornehmen können.
Vielen Dank für Ihre Unterstützung.
Mit freundlichen Grüßen,
[Dein Name]
[Deine Kundennummer]
Falls du noch spezifische Informationen hinzufügen möchtest oder Fragen hast, lass es mich wissen!
Adrachin:
Interpretiere die Terminal Ausgabe einer SSH Verbindung:
ssh -vvv adrachin@80.74.154.3 -p2121
OpenSSH_9.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/ matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for
debug2: resolve_canonicalize: hostname 80.74.154.3 is address
debug3: expanded UserKnownHostsFile ‘~/.ssh/known_hosts’ -> ‘/Users/thomas/.ssh/known_hosts’
debug3: expanded UserKnownHostsFile ‘~/.ssh/known_hosts2’ -> ‘/Users/thomas/.ssh/known_hosts2’
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 80.74.154.3 [80.74.154.3] port 2121.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /Users/thomas/.ssh/id_rsa type 0
debug1: identity file /Users/thomas/.ssh/id_rsa-cert type -1
debug1: identity file /Users/thomas/.ssh/id_ecdsa type -1
debug1: identity file /Users/thomas/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/thomas/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/thomas/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/thomas/.ssh/id_ed25519 type -1
debug1: identity file /Users/thomas/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/thomas/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/thomas/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/thomas/.ssh/id_xmss type -1
debug1: identity file /Users/thomas/.ssh/id_xmss-cert type -1
debug1: identity file /Users/thomas/.ssh/id_dsa type -1
debug1: identity file /Users/thomas/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.0
debug1: compat_banner: match: OpenSSH_8.0 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 80.74.154.3:2121 as ‘adrachin’
debug3: put_host_port: [80.74.154.3]:2121
debug3: record_hostkey: found key type ED25519 in file /Users/thomas/.ssh/known_hosts:4
debug3: record_hostkey: found key type RSA in file /Users/thomas/.ssh/known_hosts:5
debug3: record_hostkey: found key type ECDSA in file /Users/thomas/.ssh/known_hosts:6
debug3: load_hostkeys_file: loaded 3 keys from [80.74.154.3]:2121
debug1: load_hostkeys: fopen /Users/thomas/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,kex-strict-s-v00@openssh.com
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: aes256-gcm@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc
debug2: ciphers stoc: aes256-gcm@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc
debug2: MACs ctos: hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
debug2: MACs stoc: hmac-sha2-256,hmac-sha1,umac-128@openssh.com,hmac-sha2-512
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: aes128-ctr MAC: umac-128@openssh.com compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: umac-128@openssh.com compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:jaNO04DYP/6jFWiw4qdH8FSJf4ln3PrZqSAfoJmD9Yg
debug3: put_host_port: [80.74.154.3]:2121
debug3: put_host_port: [80.74.154.3]:2121
debug3: record_hostkey: found key type ED25519 in file /Users/thomas/.ssh/known_hosts:4
debug3: record_hostkey: found key type RSA in file /Users/thomas/.ssh/known_hosts:5
debug3: record_hostkey: found key type ECDSA in file /Users/thomas/.ssh/known_hosts:6
debug3: load_hostkeys_file: loaded 3 keys from [80.74.154.3]:2121
debug1: load_hostkeys: fopen /Users/thomas/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host ‘[80.74.154.3]:2121’ is known and matches the ED25519 host key.
debug1: Found key in /Users/thomas/.ssh/known_hosts:4
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 4294967296 blocks
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug3: kex_input_ext_info: extension server-sig-algs
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug3: ssh_get_authentication_socket_path: path ‘/private/tmp/com.apple.launchd.NN1poheGOy/Listeners’
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Will attempt key: /Users/thomas/.ssh/id_rsa RSA SHA256:MZQPqVbkiMnKLCfJEMBWvSWL4hzygcBevMZCMObwkog
debug1: Will attempt key: /Users/thomas/.ssh/id_ecdsa
debug1: Will attempt key: /Users/thomas/.ssh/id_ecdsa_sk
debug1: Will attempt key: /Users/thomas/.ssh/id_ed25519
debug1: Will attempt key: /Users/thomas/.ssh/id_ed25519_sk
debug1: Will attempt key: /Users/thomas/.ssh/id_xmss
debug1: Will attempt key: /Users/thomas/.ssh/id_dsa
debug2: pubkey_prepare: done
debug1: Offering public key: /Users/thomas/.ssh/id_rsa RSA SHA256:MZQPqVbkiMnKLCfJEMBWvSWL4hzygcBevMZCMObwkog
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /Users/thomas/.ssh/id_ecdsa
debug3: no such identity: /Users/thomas/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /Users/thomas/.ssh/id_ecdsa_sk
debug3: no such identity: /Users/thomas/.ssh/id_ecdsa_sk: No such file or directory
debug1: Trying private key: /Users/thomas/.ssh/id_ed25519
debug3: no such identity: /Users/thomas/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /Users/thomas/.ssh/id_ed25519_sk
debug3: no such identity: /Users/thomas/.ssh/id_ed25519_sk: No such file or directory
debug1: Trying private key: /Users/thomas/.ssh/id_xmss
debug3: no such identity: /Users/thomas/.ssh/id_xmss: No such file or directory
debug1: Trying private key: /Users/thomas/.ssh/id_dsa
debug3: no such identity: /Users/thomas/.ssh/id_dsa: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
adrachin@80.74.154.3’s password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 52
Authenticated to 80.74.154.3 ([80.74.154.3]:2121) using “password”.
debug1: channel 0: new session [client-session] (inactive timeout: 0)
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting no-more-sessions@openssh.com
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: filesystem
debug3: client_repledge: enter
debug3: receive packet: type 80
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug3: client_input_hostkeys: received RSA key SHA256:HbI3XblIGUWS+0+SDJGnrJZDRir3A3DZWafMsgf35fw
debug3: client_input_hostkeys: received ECDSA key SHA256:DYnyTs54CA0gs0hJkb2joVAFkCGmubWmHoiuvpS5bg0
debug3: client_input_hostkeys: received ED25519 key SHA256:jaNO04DYP/6jFWiw4qdH8FSJf4ln3PrZqSAfoJmD9Yg
debug3: put_host_port: [80.74.154.3]:2121
debug1: client_input_hostkeys: searching /Users/thomas/.ssh/known_hosts for [80.74.154.3]:2121 / (none)
debug3: hostkeys_foreach: reading file “/Users/thomas/.ssh/known_hosts”
debug3: hostkeys_find: found ssh-ed25519 key at /Users/thomas/.ssh/known_hosts:4
debug3: hostkeys_find: found ssh-rsa key at /Users/thomas/.ssh/known_hosts:5
debug3: hostkeys_find: found ecdsa-sha2-nistp256 key at /Users/thomas/.ssh/known_hosts:6
debug3: hostkeys_find: found ssh-ed25519 key under different name/addr at /Users/thomas/.ssh/known_hosts:7
debug1: client_input_hostkeys: searching /Users/thomas/.ssh/known_hosts2 for [80.74.154.3]:2121 / (none)
debug1: client_input_hostkeys: hostkeys file /Users/thomas/.ssh/known_hosts2 does not exist
debug3: client_input_hostkeys: 3 server keys: 0 new, 3 retained, 0 incomplete match. 0 to remove
debug1: client_input_hostkeys: no new or deprecated keys from server
debug3: client_repledge: enter
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: send packet: type 98
debug1: Sending environment.
debug3: Ignored env CFBundleIdentifier
debug3: Ignored env TMPDIR
debug3: Ignored env XPC_FLAGS
debug3: Ignored env LaunchInstanceID
debug3: Ignored env TERM
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env SECURITYSESSIONID
debug3: Ignored env XPC_SERVICE_NAME
debug3: Ignored env TERM_PROGRAM
debug3: Ignored env TERM_PROGRAM_VERSION
debug3: Ignored env TERM_SESSION_ID
debug3: Ignored env SHELL
debug3: Ignored env HOME
debug3: Ignored env LOGNAME
debug3: Ignored env USER
debug3: Ignored env PATH
debug3: Ignored env SHLVL
debug3: Ignored env PWD
debug3: Ignored env OLDPWD
debug3: Ignored env ZSH
debug3: Ignored env PAGER
debug3: Ignored env LESS
debug3: Ignored env LSCOLORS
debug3: Ignored env LS_COLORS
debug3: Ignored env HOMEBREW_PREFIX
debug3: Ignored env HOMEBREW_CELLAR
debug3: Ignored env HOMEBREW_REPOSITORY
debug3: Ignored env MANPATH
debug3: Ignored env INFOPATH
debug3: Ignored env PYENV_ROOT
debug3: Ignored env PYENV_SHELL
debug1: channel 0: setting env LANG = “deCH.UTF-8”
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env
debug3: Ignored env CF_USER_TEXT_ENCODING
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug3: client_repledge: enter
debug1: pledge: fork
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
-chrootsh: nodenv: Kommando nicht gefunden.
[adrachin@sora ~]$ debug3: obfuscate_keystroke_timing: starting: interval ~20ms
ls
bin dev etc httpdocs lib lib64 logs opt tmp usr var
[adrachin@sora ~]$ debug3: obfuscate_keystroke_timing: stopping: chaff time expired (0 chaff packets sent)
LiquidGPT:
Hier ist eine Interpretation der Ausgabe Deiner SSH-Verbindung:
-
Konfigurationsdaten einlesen:
debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files debug1: /etc/ssh/ssh_config line 54: Applying options for *Die SSH-Client-Konfiguration wird gelesen. Es wird versucht, zusätzliche Konfigurationsdateien einzuschließen, aber keine werden gefunden.
-
Hostname und bekannte Hosts:
debug2: resolve_canonicalize: hostname 80.74.154.3 is address debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/thomas/.ssh/known_hosts' debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/thomas/.ssh/known_hosts2'Die IP-Adresse
80.74.154.3wird als Hostname erkannt. Die bekannten Hosts werden aus den Dateien~/.ssh/known_hostsund~/.ssh/known_hosts2geladen. -
Verbindung herstellen:
debug1: Connecting to 80.74.154.3 [80.74.154.3] port 2121. debug1: Connection established.Eine Verbindung zu
80.74.154.3über Port2121wird erfolgreich hergestellt. -
Authentifizierungsschlüssel und Protokollversion:
debug1: identity file /Users/thomas/.ssh/id_rsa type 0 debug1: identity file /Users/thomas/.ssh/id_rsa-cert type -1 ... debug1: Local version string SSH-2.0-OpenSSH_9.6 debug1: Remote protocol version 2.0, remote software version OpenSSH_8.0Der Client versucht, verschiedene Authentifizierungsschlüssel zu verwenden, findet aber nur
id_rsa. Die Protokollversionen des Clients und des Servers werden ausgetauscht. -
Authentifizierung:
debug1: Authenticating to 80.74.154.3:2121 as 'adrachin' ... debug1: Next authentication method: password adrachin@80.74.154.3's password: debug2: we sent a password packet, wait for reply debug3: receive packet: type 52 Authenticated to 80.74.154.3 ([80.74.154.3]:2121) using "password".Der Benutzer
adrachinwird mit einem Passwort authentifiziert, nachdem die Schlüsselbasierte Authentifizierung fehlschlägt. -
Interaktive Sitzung starten:
debug1: Entering interactive session. ... debug2: channel_input_status_confirm: type 99 id 0 debug2: PTY allocation request accepted on channel 0 debug2: shell request accepted on channel 0Eine interaktive Sitzung wird gestartet, und das Kommandozeileninterface (Shell) wird auf dem Server bereitgestellt.
-
Fehlermeldung:
-chrootsh: nodenv: Kommando nicht gefunden.Beim Starten der Shell auf dem Server wird versucht, das Kommando
nodenvauszuführen, was jedoch nicht gefunden wird. -
Verzeichnisinhalt anzeigen:
[adrachin@sora ~]$ ls bin dev etc httpdocs lib lib64 logs opt tmp usr varNach dem Einloggen wird der Inhalt des aktuellen Verzeichnisses angezeigt.
Zusammenfassung
Die Verbindung zum Server wurde erfolgreich hergestellt und authentifiziert. Der Server akzeptiert Passwortauthentifizierung, nachdem die Schlüsselbasierte Authentifizierung fehlschlägt. Es gab einen Fehler beim Starten des Kommandos nodenv, aber die Shell funktioniert ansonsten und listet den Verzeichnisinhalt auf.
Falls weitere Probleme bestehen oder spezifische Lösungen benötigt werden, gib mir bitte mehr Details, damit ich weiterhelfen kann.
Adrachin:
Was ist das für ein Command nodenv?
LiquidGPT:
nodenv ist ein Kommandozeilen-Tool, das zur Verwaltung verschiedener Versionen von Node.js verwendet wird. Es ermöglicht Benutzern, mehrere Versionen von Node.js auf ihrem System zu installieren, zu verwalten und zwischen diesen Versionen zu wechseln. nodenv funktioniert ähnlich wie rbenv für Ruby oder pyenv für Python.
Funktionen und Vorteile von nodenv
-
Versionsmanagement:
- Installiere und verwalte mehrere Versionen von Node.js.
- Wechsel einfach zwischen verschiedenen Versionen.
-
Projektspezifische Versionen:
- Setze projektspezifische Node.js-Versionen, sodass jedes Projekt eine eigene, definierte Version von Node.js verwenden kann.
-
Globale Versionen:
- Setze eine globale Node.js-Version, die systemweit verwendet wird, sofern keine projektspezifische Version definiert ist.
-
Einfache Installation:
nodenvkann leicht installiert und konfiguriert werden, oft über einfache Skripte oder Paketmanager.
Beispielbefehle
-
Installation von
nodenv:git clone https://github.com/nodenv/nodenv.git ~/.nodenv echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.bashrc ~/.nodenv/bin/nodenv init exec $SHELL -
Node.js-Versionen installieren:
nodenv install 14.17.0 nodenv install 16.13.0 -
Node.js-Version setzen:
- Globale Version:
nodenv global 16.13.0 - Lokale Version (projektbezogen):
nodenv local 14.17.0
- Globale Version:
-
Liste der installierten Versionen anzeigen:
nodenv versions -
Aktuell verwendete Version anzeigen:
nodenv version
Fehlermeldung und Lösung
In der von Dir bereitgestellten Terminalausgabe gibt es den Hinweis:
-chrootsh: nodenv: Kommando nicht gefunden.
Dies bedeutet, dass nodenv auf dem Server, auf den Du Dich verbunden hast, nicht installiert oder nicht im Pfad ist.
Lösungsvorschläge
-
nodenvinstallieren:
Fallsnodenvbenötigt wird, kannst Du es auf dem Server installieren, indem Du den obigen Installationsanweisungen folgst. -
Pfad anpassen:
Sicherstellen, dass der Pfad zunodenvkorrekt gesetzt ist. Füge den Pfad zunodenvin Deine.bashrc,.zshrcoder entsprechende Shell-Konfigurationsdatei ein und lade diese neu. -
Alternative Versionen verwalten:
Fallsnodenvnicht verwendet werden soll, kannst Du alternative Tools wienvm(Node Version Manager) verwenden, die ähnliche Funktionen bieten.
Falls Du weitere Hilfe benötigst oder spezifische Anweisungen zur Installation und Konfiguration von nodenv wünschst, lass es mich wissen!