配置Linux-Ubuntu

用户名: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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容