查看端口:
donald_draper@rain:~$ netstat -ntlp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -
查看ipv6状态:
#显示0说明ipv6开启,1说明关闭
donald_draper@rain:~$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
0
在 /etc/sysctl.conf 增加下面几行
#disable IPv6
donald_draper@rain:~$ sudo vim /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
donald_draper@rain:~$ tail -n 3 /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
将文件中的 GRUB_CMDLINE_LINUX_DEFAULT="quiet spalsh" 修改为
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
donald_draper@rain:~$ sudo vim /etc/default/grub
donald_draper@rain:~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
GRUB_CMDLINE_LINUX=""
运行sudo update-grub更新
donald_draper@rain:~$ sudo update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.2.0-16-generic
Found initrd image: /boot/initrd.img-4.2.0-16-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
重启网络服务,禁用ipv6成功
donald_draper@rain:~$ netstat -ntup
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:47154 127.0.0.1:631 ESTABLISHED -
tcp 0 0 127.0.0.1:47156 127.0.0.1:631 ESTABLISHED -
tcp 0 0 127.0.0.1:631 127.0.0.1:47156 ESTABLISHED -
tcp 0 0 127.0.0.1:631 127.0.0.1:47154 ESTABLISHED -
donald_draper@rain:~$ ifconfig
eno16777736 Link encap:Ethernet HWaddr 00:0c:29:39:44:61
inet addr:192.168.126.135 Bcast:192.168.126.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:104 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8278 (8.2 KB) TX bytes:5534 (5.5 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:213 errors:0 dropped:0 overruns:0 frame:0
TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18820 (18.8 KB) TX bytes:18820 (18.8 KB)
关于SSH IP6关闭,参见:
https://www.jb51.net/LINUXjishu/335724.html
还有一个cups的打印服务关闭:
参见:
https://unix.stackexchange.com/questions/177458/remove-cupsd-completly
分享到:
相关推荐
NULL 博文链接:https://wutheringsea.iteye.com/blog/777851
ubuntu网络配置ubuntu网络配置ubuntu网络配置
ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9 ubuntu安装python3.9
把radius通过更改配置文件使其开启ipv6服务,并进行访问。
ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料ubuntu C++资料
简单介绍IPv6报文结构,NDP协议结构,报文,功能;dhcpv6报文结构及功能;无状态有状态地址分配;状态有状态服务器搭建
在ubuntu14.04中使用apt-get install得到的deb,包含: openjdk-8-jdk_8u91-b14-0ubuntu4~14.04_amd64.deb openjdk-8-jre_8u91-b14-0ubuntu4~14.04_amd64.deb openjdk-8-jdk-headless_8u91-b14-0ubuntu4~14.04_amd64...
ubuntu的秘密 ubuntu口袋书 ubuntu的秘密 ubuntu口袋书 ubuntu的秘密 ubuntu口袋书 很有意思的新书
Ubuntu20.04离线安装openssh-server 安装步骤: sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb sudo dpkg -i openssh-client_8.4p1-6ubuntu1_amd64.deb sudo dpkg -i openssh-sftp-server_8.4p1-6ubuntu1_...
当您使用触摸屏时,阻止 caribou(屏幕键盘)弹出。即使它在无障碍服务菜单中被禁用。
Ubuntu20.04和Ubuntu16.04等其他Ubuntu离线安装openssh-server 安装步骤: sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb sudo dpkg -i openssh-client_8.4p1-6ubuntu1_amd64.deb sudo dpkg -i openssh-...
适用于ubuntu live server18.04.5版本,食用方法: 1. sudo dpkg -i libnfsidmap2_0.25-5.1_amd64.deb 2. sudo dpkg -i libtirpc1_0.2.5-1.2ubuntu0.1_amd64.deb 3. sudo dpkg -i rpcbind_0.2.3-0.6ubuntu0.18.04.1_...
ubuntu 解包打包 img
Ubuntu20.04是自带ssh客户端的,可以主动连接别的机器,但并没有服务端,所以无法被连接,在断网情况下,包内资源可助你成功离线安装openssh。安装步骤: sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.6_amd64.deb ...
Ubuntu20.04离线安装openssh-server 安装步骤: sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb sudo dpkg -i openssh-client_8.4p1-6ubuntu1_amd64.deb sudo dpkg -i openssh-sftp-server_8.4p1-6ubuntu1...
这个安装包是专门给ubuntu16和ubuntu18时间同步ntp离线安装包。 使用方法: 1.下载后解压; 2.上传到ubuntu指定目录下; 3.直接运行命令安装; 4.可以参考我的博文设置。
Kubernetes 仅支持 IPv6(在 Ubuntu 上) 仅使用 IPv6 配置 kubernetes 集群。 仅 IPv6 的基础设施部署允许比双栈更简单的管理和维护,通过前端反向代理或内容分发网络 (CDN) 提供 IPv4 访问。 仅在 Ubuntu 20.04 ...
一、重装xp后恢复Ubuntu启动项(用wubi安装的Ubuntu) 把安装ubuntu->winboot文件夹下wubidr和wubidr.mbr两个文件拷到C盘根目录下,然后用记事本打开c盘下的boot.ini,在最后一行加入c:\wubildr.mbr="Ubuntu"就可以...
1、ubuntu16.04、ubuntu18.04 或更高版本 安装openjdk7,此jdk7部署后,亲测有效,可正常编译android5.1/android6.0 等。 2、有详细的部署操作说明。
ubuntu 16.04 可以方便使用的清理工具 ubuntu-tweak ubuntu 16.04 LTS