• 随堂笔记


    1.####重置密码

    第1步:开机后在内核上敲击“e”。
    第2步:在linux16这行的后面输入“rd.break”并敲击“ctrl+x“。
    第3步:进入到了系统的紧急求援模式。
    第4步:依次输入以下命令。
    mount -o remount,rw /sysroot
    chroot /sysroot
    echo "linuxprobe" | passwd --stdin root
    touch /.autorelabel
    exit
    reboot   重启

    这样密码就重置为 linuxprobe了

    2.####修改yumIP

    命令: cd /etc/sysconfig/network-scripts

        vi ifcfg-ens33

    3.###配置vnc

    [root@linuxprobe ~]# yum install tigervnc-server    下载

    rm -rf /etc/systemd/system/vncserver@:1.service //删除文件夹

    cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service //复制
    vi /etc/systemd/system/vncserver@:1.service
    vncpasswd //修改密码
    systemctl start vncserver@:1.service //开启服务
    systemctl enable vncserver@:1.service
    netstat -an|grep 590 //查询端口

    如果您出现了这样的报错:

    xauth: (stdin):1:  bad display name "linuxprobe.com:1" in "add" command

    代表您的主机名(hostname)不能被ping通,请执行这行命令:

    echo "127.0.0.1 linuxprobe.com" > /etc/hosts

    4.###

     

  • 相关阅读:
    关于内存数据与 JSON
    高亮 TRichEdit 当前行
    使用 IntraWeb (45)
    使用 IntraWeb (44)
    使用 IntraWeb (43)
    使用 IntraWeb (42)
    使用 IntraWeb (41)
    使用 IntraWeb (40)
    使用 IntraWeb (39)
    使用 IntraWeb (38)
  • 原文地址:https://www.cnblogs.com/hjt123/p/11701198.html
Copyright © 2020-2023  润新知