美文网首页
配置Linux-Ubuntu

配置Linux-Ubuntu

作者: 哎呦666 | 来源:发表于2018-09-20 11:37 被阅读0次

    用户名:zd

    密码:1111qqqq

    设置root密码:

    root@localhost:~#sudo passwd root

    切换为root用户:

    root@localhost:~#su - root

    安装vim、ssh、curl:

    root@localhost:~#apt-get install vim

    root@localhost:~#apt-get install ssh

    root@localhost:~#apt install curl

    修改ssh配置文件:

    root@localhost:~#vi /etc/ssh/sshd_config

    修改如下:

    重启ssh服务:

    root@localhost:~#/etc/init.d/ssh restart

    配置网络:

    root@localhost:~#vi /etc/network/interfaces

    adress 192.168.41.182

    netmask 255.255.255.0

    gateway 192.168.41.2

    重启网络:

    root@localhost:~#/etc/init.d/networking restart

    相关文章

      网友评论

          本文标题:配置Linux-Ubuntu

          本文链接:https://www.haomeiwen.com/subject/zlignftx.html