全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1295|回复: 13

今天享受VIP待遇了,VIRMACH手工帮我配置机器了

[复制链接]
发表于 2020-12-12 21:47:53 | 显示全部楼层 |阅读模式


你们新开几机器,有 shell 命令 历史记录吗

  1.     1  vi /etc/network/interfaces
  2.     2  vi /etc/default/grub
  3.     3  apt-get update
  4.     4  ping 8.8.8.8
  5.     5  ip a
  6.     6  vi /etc/network/interfaces
  7.     7  service networking restart
  8.     8  ip a
  9.     9  grub-mkconfig -o /boot/grub/grub.cfg
  10.    10  mkdir -p /mnt_tmp/usr/lib/virt-sysprep/scripts
  11.    11  vi /mnt_tmp/usr/lib/virt-sysprep/firstboot.sh
  12.    12  vi /mnt_tmp/usr/lib/virt-sysprep/scripts/0001-swapoff--dev-vda2-mkswap--dev-vda2-swapon--dev-vda2-resize2f
  13.    13  rm -rf /mnt_tmp/
  14.    14  mkdir -p /usr/lib/virt-sysprep/scripts
  15.    15  vi /usr/lib/virt-sysprep/firstboot.sh
  16.    16  vi /usr/lib/virt-sysprep/scripts/0001-swapoff--dev-vda2-mkswap--dev-vda2-swapon--dev-vda2-resize2f
  17.    17  vi /usr/lib/systemd/system/guestfs-firstboot.service
  18.    18  chmod +x /usr/lib/virt-sysprep/firstboot.sh
  19.    19  chmod +x /usr/lib/virt-sysprep/scripts/0001-swapoff--dev-vda2-mkswap--dev-vda2-swapon--dev-vda2-resize2f
  20.    20  ls -l /usr/lib/virt-sysprep/scripts/0001-swapoff--dev-vda2-mkswap--dev-vda2-swapon--dev-vda2-resize2f
  21.    21  ls -l /usr/lib/virt-sysprep/firstboot.sh
  22.    22  service apparmor stop
  23.    23  systemctl stop apparmor
  24.    24  vi /etc/fstab
  25.    25  systemctl enable guestfs-firstboot.service
  26.    26  ip a
  27.    27  apt-get update
  28.    28  apt-get upgrade
  29.    29  vi /etc/ssh/sshd_config .
  30.    30  vi /etc/ssh/sshd_config
  31.    31  service sshd restart
复制代码
发表于 2020-12-12 22:29:34 来自手机 | 显示全部楼层
别想太多,模板而已
发表于 2020-12-12 21:51:04 | 显示全部楼层
老板需要这条命令
  1. echo > .bash_history && history -c
复制代码

这条看老板ip
  1. last
复制代码
发表于 2020-12-12 21:49:04 | 显示全部楼层
哈哈,老板手工装系统
发表于 2020-12-12 21:49:04 | 显示全部楼层
本帖最后由 16qf 于 2020-12-12 21:53 编辑

就帮你配置了个网卡而已嘛(看错了不是网卡 忙着水贴呢)
发表于 2020-12-12 21:49:34 | 显示全部楼层
这个去哪里看都不知道。而且说不定是人工智能帮你配的。
发表于 2020-12-12 21:49:35 | 显示全部楼层
享受vip待遇了
发表于 2020-12-12 21:50:39 来自手机 | 显示全部楼层
这难道做模版时候的记录??
 楼主| 发表于 2020-12-12 21:51:49 | 显示全部楼层
16qf 发表于 2020-12-12 21:49
就帮你配置了个网卡而已嘛

帮我配置 硬盘分区了, swap设置 256M
自动脚本是 1G swap的

Device     Boot    Start      End  Sectors  Size Id Type
/dev/vda1  *        2048 30930559 30928512 14.8G 83 Linux
/dev/vda2       30930560 31454847   524288  256M 82 Linux swap / Solaris
 楼主| 发表于 2020-12-12 21:55:06 | 显示全部楼层
蓝瘦香菇 发表于 2020-12-12 21:51
老板需要这条命令

这条看老板ip

好像母鸡上开的

reboot   system boot  4.19.0-6-amd64   Fri Dec 11 22:47   still running
reboot   system boot  4.19.0-6-amd64   Fri Dec 11 22:46 - 22:46  (00:00)
root     pts/0        10.40.1.50       Tue Oct 22 05:36 - down   (00:27)
root     pts/0        10.40.1.50       Tue Oct 22 05:34 - 05:34  (00:00)
root     tty1                          Tue Oct 22 05:33 - down   (00:30)
reboot   system boot  4.19.0-6-amd64   Tue Oct 22 05:32 - 06:03  (00:30)
root     tty1                          Mon Oct 21 14:02 - down   (15:29)
reboot   system boot  4.19.0-6-amd64   Mon Oct 21 13:27 - 05:31  (16:03)
root     tty1                          Mon Oct 21 12:56 - down   (00:29)
reboot   system boot  4.19.0-6-amd64   Mon Oct 21 12:54 - 13:26  (00:31)
发表于 2020-12-12 21:55:35 来自手机 | 显示全部楼层
sRGB 发表于 2020-12-12 21:51
帮我配置 硬盘分区了, swap设置 256M
自动脚本是 1G swap的


都是256
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-12-16 02:08 , Processed in 0.062162 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表