icy20088's recent timeline updates
icy20088

icy20088

V2EX member #145453, joined on 2015-11-02 22:47:45 +08:00
icy20088's recent replies
Nov 20, 2017
Replied to a topic by icy20088 Linux 没有 ROOT 权限,能设置主机名-ip 吗
@tempdban 是的,系统会先去这个文件解析, 然后再去 DNS 问询.
Nov 20, 2017
Replied to a topic by icy20088 Linux 没有 ROOT 权限,能设置主机名-ip 吗
开始想到用 alias, 后来干脆定义一个脚本,把所有的 IP 都赋给主机名的变量, 直接连变量...哈哈,
Nov 20, 2017
Replied to a topic by icy20088 Linux 脚本设置 Alias 失败
找到原因了!

source 命令与 shell scripts 的区别是,source 在当前 bash 环境下执行命令,而 scripts 是启动一个子 shell 来执行命令。这样如果把设置环境变量(或 alias 等等)的命令写进 scripts 中,就只会影响子 shell,无法改变当前的 BASH,所以通过文件(命令列)设置环境变量时,要用 source 命令。
Nov 20, 2017
Replied to a topic by icy20088 Linux 脚本设置 Alias 失败
多谢多谢!真的可以,这是个什么原理
Sep 5, 2016
Replied to a topic by icy20088 Python Python requests 爬虫结果不正确
@binux 哈哈,多谢了! 终于出来了, 你是咋一样看出 data 是 json 格式的呀!
@lxy 我去,见笑了, 我应该用 Post, 多谢了! 哈哈~~
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   993 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 104ms · UTC 22:10 · PVG 06:10 · LAX 15:10 · JFK 18:10
♥ Do have faith in what you're doing.