- 收藏
- 点赞
- 分享
- 举报
临时设置ip地址(重启开发板失效)
ifconfig eth0 192.168.0.100 netmask 255.255.255.0
route add default gw 192.168.0.1
永久设置ip地址
vi /etc/profile,然后把前面临时配置ip地址的两行命令写到里面。
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
if [ “$PS1” ]; then
if [ “id -u
“ -eq 0 ]; then
export PS1=’[\u@\h:\w]# ‘
else
export PS1=’[\u@\h:\w]$ ‘
fi
fi
export PAGER=’/bin/more ‘
export EDITOR=’/bin/vi’
Source configuration files from /etc/profile.d
for i in /etc/profile.d/*.sh ; do
if [ -r “$i” ]; then
. $i
fi
unset i
done
ifconfig eth0 192.168.0.100 netmask 255.255.255.0
route add default gw 192.168.0.1
如果重启不生效,发现修改的东西没了需要检查输入的对不对
-
浏览量:2034次2021-06-18 16:05:42
-
浏览量:1635次2022-11-07 14:06:56
-
浏览量:3142次2022-10-24 14:44:33
-
浏览量:1210次2022-11-07 15:13:05
-
2022-11-07 14:56:46
-
浏览量:1606次2021-06-12 17:32:52
-
2022-11-08 12:06:09
-
浏览量:996次2019-12-03 16:26:29
-
2022-11-10 10:36:09
-
浏览量:173次2023-03-24 16:30:17
-
浏览量:1157次2022-10-09 10:38:23
-
浏览量:108次2023-03-17 17:42:08
-
浏览量:5279次2021-04-01 17:04:01
-
浏览量:21次2023-03-24 22:56:50
-
浏览量:4019次2022-05-31 11:14:16
-
浏览量:933次2022-11-22 09:58:36
-
浏览量:7358次2020-11-17 15:41:28
-
浏览量:1301次2022-10-31 15:07:27
-
浏览量:4928次2022-07-29 18:09:52

tomato
===============

tomato






举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明