站内公告:

我们的虚拟社区正式开通了

Main Menu

最新帖子

#91
打开"控制面板",
进入控制面板,点击右上角,选择查看方式为大图标,找到设备管理器。
找到网络适配器,选择本地连接的网卡,右键,选择属性。
标题栏上面,切换到电源管理,取消勾选"允许计算机关闭此设备以节约电源"。点击确定。
#92
multipass / 下面是Multipass如何处理主实例的一个演示:
上次发布者 cloud - 2022-1月-06 06:05 下午
下面是Multipass如何处理主实例的一个演示:
multipass set client.primary-name=first
$ multipass start
Launched: first
Mounted '/home/ubuntu' into 'first:Home'
$ multipass stop
$ multipass launch eoan
Launched: calm-chimaera
$ multipass set client.primary-name=calm-chimaera
$ multipass suspend
$ multipass set client.primary-name=chopin
$ multipass start
Launched: chopin
Mounted '/home/ubuntu' into 'chopin:Home'
$ multipass list
Name                    State             IPv4             Image
chopin                  Running           10.122.139.63    Ubuntu 18.04 LTS
calm-chimaera           Suspended         --               Ubuntu 19.04
first                   Stopped           --               Ubuntu 18.04 LTS
#93
multipass / 如何启动LTS实例
上次发布者 cloud - 2022-1月-06 05:18 下午
The first five minutes with Multipass let you know how easy it is to have a lightweight cloud handy. Let's launch a few LTS instances, list them, exec a command, use cloud-init and clean up old instances to start.

Launch an instance (by default you get the current Ubuntu LTS)

multipass launch --name foo
Run commands in that instance, try running bash (logout or ctrl-d to quit)

multipass exec foo -- lsb_release -a
Pass a cloud-init metadata file to an instance on launch. See using cloud-init with multipass for more details

multipass launch -n bar --cloud-init cloud-config.yaml
See your instances

multipass list
Stop and start instances

multipass stop foo bar
multipass start foo
Clean up what you don't need

multipass delete bar
multipass purge
Find alternate images to launch with multipass

multipass find
Get help

multipass help
multipass help <command>
Now don't forget you still have 'foo' running. To learn more about Multipass keep
#94
multipass / 安装Multipass
上次发布者 cloud - 2022-1月-06 05:13 下午
Install Multipass on Linux
sudo snap install multipass
Install Multipass on MacOS
Download Multipass for MacOS

Run the installer in an account with Administrator privileges.

If you'd like to use Multipass with VirtualBox use this terminal command:

sudo multipass set local.driver=virtualbox
Install Multipass on Windows
Download Multipass for Windows
Note: You need Windows 10 Pro/Enterprise/Education v 1803 or later, or any Windows 10 with VirtualBox

Make sure your network is private or Windows prevents Multipass from starting.

Run the installer. You need to allow the installer to gain Administrator privileges.
#95
HTML/CSS开发技术 / bootstrap table中td内容设置不换行
上次发布者 jvip_chen - 2022-1月-05 06:25 下午
bootstrap table中td内容设置不换行

/*表格内容滚动,不换行显示*/

td{
    white-space:nowrap;
    overflow:hidden;
    word-break:keep-all;
}
/*表格宽度不改变,多出的不显示*/


table{
    table-layout:fixed;
}
#96
HTML/CSS开发技术 / Bootstrap table th td 实现文字垂直居中
上次发布者 jvip_chen - 2022-1月-05 06:24 下午
直接复写th、td的样式,样式代码如下(外联):

.table th, .table td {
text-align: center;
vertical-align: middle!important;
}
也可直接写在html的th, .table, td标签的style中,如下:

<th style="vertical-align: middle !important;text-align: center;">xxx</th>
<td style="vertical-align: middle !important;text-align: center;">xxx</td>
这样就能达到水平且垂直居中的效果了