孙勇峰的部落格

Keep it simple, stupid


  • 首页

  • 标签

  • 分类

  • 归档

  • 公益404

  • 关于

  • 搜索

kconfig-frontends 简介

发表于 2018-11-01 | 分类于 programmer |
Kconfig-frontends - “官方” standalone kconfig 工具,使用简介。
阅读全文 »

SecureCRT 使用记录

发表于 2018-11-01 | 分类于 programmer |
SecureCRT 使用记录
阅读全文 »

Linux telnet 服务器调研

发表于 2018-10-26 | 分类于 networks |
Linux telnet 服务器调研、验证与分析。
阅读全文 »

Linux shell 字符串处理

发表于 2018-10-24 | 分类于 shell |
Linux shell 脚本字符串处理笔记
阅读全文 »

Redhat 系发行版本使用笔记

发表于 2018-10-24 | 分类于 linux |

包管理

  • 安装本地包,rpm -i xxx.rpm

网络相关

配置文件,/etc/sysconfig/network-scripts

1
2
3
4
5
6
[root@TENCENT64 /etc/sysconfig/network-scripts]# ls
eth1 ifcfg-eth4 ifdown-eth ifdown-ppp ifup-aliases ifup-isdn ifup-routes network-functions
ifcfg-eth0 ifcfg-eth5 ifdown-ippp ifdown-routes ifup-bnep ifup-plip ifup-sit network-functions-ipv6
ifcfg-eth1 ifcfg-lo ifdown-ipv6 ifdown-sit ifup-eth ifup-plusb ifup-tunnel route-eth1
ifcfg-eth2 ifdown ifdown-isdn ifdown-tunnel ifup-ippp ifup-post ifup-wireless setdefaultgw-tlinux
ifcfg-eth3 ifdown-bnep ifdown-post ifup ifup-ipv6 ifup-ppp init.ipv6-global

重启网络服务,# service network restart

网卡配置,

1
2
3
4
5
6
7
8
9
[root@TENCENT64 /etc/sysconfig/network-scripts]# cat ifcfg-eth0
#IP Config for eth0:
DEVICE='eth0'
HWADDR=6c:92:bf:85:4c:ee
NM_CONTROLLED='yes'
ONBOOT='yes'
IPADDR='10.6.188.99'
NETMASK='255.255.255.0'
GATEWAY='10.6.188.1'

Misc

  • sudo 组不存在,添加 sudo 组,groupadd sudo,否则提示 useradd: group 'sudo' does not exist
  • 添加用户,useradd -G sudo,docker jeromesun -m -s /bin/bash
  • 添加用户到 sudoers file,在 root 用户下,visudo,添加一行 jeromesun ALL=(ALL) ALL。否则出现 jeromesun is not in the sudoers file. This incident will be reported.。

nginx 简单文件服务器

发表于 2018-10-23 | 分类于 administrator |
使用 nginx 作为简单文件服务器。
阅读全文 »

ARP 代理

发表于 2018-10-23 | 分类于 networks |
ARP 代理
阅读全文 »

pip 使用记录

发表于 2018-10-18 | 分类于 python |
pip 使用记录。
阅读全文 »

windows 串口共享工具 comfoolery 简介

发表于 2018-09-26 | 分类于 tools |
windows 串口共享工具 comfoolery 简介, 串口转 telnet 共享。
阅读全文 »

sshd 配置

发表于 2018-07-18 | 分类于 linux |
sshd 相关配置,no-op 超时断开会话,限制会话数
阅读全文 »
12…15
sunnogo

sunnogo

145 日志
22 分类
108 标签
RSS
Creative Commons
© 2015 — 2018 sunnogo
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.3