(itstool) path: step/para
Connect to the host serving new image and execute <filename>updatep1</filename> script:
Context English Chinese (Simplified) (zh_CN) State
If all goes well, the upgrade is finished. 如果一切顺利的话, 升级工作就完成了。
If anything goes wrong, reboot back into the previous partition (which contains the old, working image), to restore system functionality as fast as possible. Fix any problems of the new build, and repeat the process. 如果发生了任何问题, 则可以从先前的分区启动 (其中包含了旧的、 可用的映像), 来尽可能快地恢复系统功能。 接下来可以修正新联编的版本中存在的问题, 并重复前述步骤。
To install new image onto the running <application>NanoBSD</application> system, it is possible to use either the <filename>updatep1</filename> or <filename>updatep2</filename> script located in the <filename>/root</filename> directory, depending from which partition is running the current system. 要在正在运行的 <application>NanoBSD</application> 系统中安装新的映像, 可以使用位于 <filename>/root</filename> 目录的 <filename>updatep1</filename> 或 <filename>updatep2</filename> 脚本, 具体使用哪一个脚本, 取决于正在运行的系统位于那个分区。
According to which services are available on host serving new <application>NanoBSD</application> image and what type of transfer is preferred, it is possible to examine one of these three ways: 随时提供新 <application>NanoBSD</application> 映像所提供的服务, 以及采用的传输方法的不同, 您可以参考并使用下列三种方式之一:
Using <citerefentry><refentrytitle>ftp</refentrytitle><manvolnum>1</manvolnum></citerefentry> 使用 <citerefentry><refentrytitle>ftp</refentrytitle><manvolnum>1</manvolnum></citerefentry>
If the transfer speed is in first place, use this example: 如果传输速度是第一要务, 采用下面的例子:
<prompt>#</prompt> <userinput>ftp myhost
get _.disk.image "| sh updatep1"</userinput>
<prompt>#</prompt> <userinput>ftp myhost
get _.disk.image "| sh updatep1"</userinput>
Using <citerefentry><refentrytitle>ssh</refentrytitle><manvolnum>1</manvolnum></citerefentry> 使用 <citerefentry><refentrytitle>ssh</refentrytitle><manvolnum>1</manvolnum></citerefentry>
If a secure transfer is preferred, consider using this example: 如果更倾向于安全传输, 应参考下面的例子:
<prompt>#</prompt> <userinput>ssh myhost cat _.disk.image.gz | zcat | sh updatep1</userinput> <prompt>#</prompt> <userinput>ssh myhost cat _.disk.image.gz | zcat | sh updatep1</userinput>
Using <citerefentry><refentrytitle>nc</refentrytitle><manvolnum>1</manvolnum></citerefentry> 使用 <citerefentry><refentrytitle>nc</refentrytitle><manvolnum>1</manvolnum></citerefentry>
Try this example if the remote host is not running neither <citerefentry><refentrytitle>ftpd</refentrytitle><manvolnum>8</manvolnum></citerefentry> or <citerefentry><refentrytitle>sshd</refentrytitle><manvolnum>8</manvolnum></citerefentry> service: 如果远程主机既不提供 <citerefentry><refentrytitle>ftp</refentrytitle><manvolnum>1</manvolnum></citerefentry> 服务, 也不提供 <citerefentry><refentrytitle>sshd</refentrytitle><manvolnum>8</manvolnum></citerefentry> 服务:
At first, open a TCP listener on host serving the image and make it send the image to client: 开始时, 在提供映像的主机上开启 TCP 监听, 并令其将映像文件发给客户机:
myhost<prompt>#</prompt> <userinput>nc -l <replaceable>2222</replaceable> &lt; _.disk.image</userinput> myhost<prompt>#</prompt> <userinput>nc -l <replaceable>2222</replaceable> &lt; _.disk.image</userinput>
Make sure that the used port is not blocked to receive incoming connections from <application>NanoBSD</application> host by firewall. 请确认您所使用的端口没有通过防火墙阻止来自 <application>NanoBSD</application> 客户机的联接请求。
Connect to the host serving new image and execute <filename>updatep1</filename> script: 连接到提供新映像服务的主机, 并执行 <filename>updatep1</filename> 脚本:
<prompt>#</prompt> <userinput>nc myhost <replaceable>2222</replaceable> | sh updatep1</userinput> <prompt>#</prompt> <userinput>nc myhost <replaceable>2222</replaceable> | sh updatep1</userinput>


No matching activity found.

Browse all component changes


English Chinese (Simplified) (zh_CN)
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: step/para
Source string location
String age
a year ago
Source string age
a year ago
Translation file
articles/zh_CN/nanobsd.po, string 92