孙勇峰的部落格

Keep it simple, stupid


  • 首页

  • 标签

  • 分类

  • 归档

  • 公益 404

  • 关于

  • 搜索

屏幕太“亮”看不清灰色部分

发表于 2019-07-23 更新于 2019-08-13 分类于 misc 评论数:
屏幕太“亮” 看不清灰色部分。
阅读全文 »

elementary OS 使用记录

发表于 2019-03-25 更新于 2019-04-17 分类于 linux 评论数:
elementary OS 使用记录。
阅读全文 »

一些常见的 git 命令备忘

发表于 2019-01-31 更新于 2019-04-17 分类于 tools 评论数:
本文描述常见 git 命令备忘。
阅读全文 »

图解 rpc rpc_poll 和 rpc_streaming 的差异

发表于 2019-01-24 更新于 2019-04-17 分类于 networks 评论数:
图解 rpc rpc_poll 和 rpc_streaming 的差异
阅读全文 »

kconfig-frontends 简介

发表于 2018-11-01 更新于 2019-04-17 分类于 programmer 评论数:
Kconfig-frontends - “官方” standalone kconfig 工具,使用简介。
阅读全文 »

SecureCRT 使用记录

发表于 2018-11-01 更新于 2019-04-17 分类于 programmer 评论数:
SecureCRT 使用记录
阅读全文 »

Linux telnet 服务器调研

发表于 2018-10-26 更新于 2019-04-17 分类于 networks 评论数:
Linux telnet 服务器调研、验证与分析。
阅读全文 »

Linux shell 字符串处理

发表于 2018-10-24 更新于 2019-04-17 分类于 shell 评论数:
Linux shell 脚本字符串处理笔记
阅读全文 »

Redhat 系发行版本使用笔记

发表于 2018-10-24 更新于 2019-04-17 分类于 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 更新于 2019-04-17 分类于 administrator 评论数:
使用 nginx 作为简单文件服务器。
阅读全文 »
12…15
sunnogo

sunnogo

148 日志
22 分类
110 标签
GitHub E-Mail StackOverflow
© 2015 – 2019 sunnogo
由 Hexo 强力驱动 v3.8.0
|
主题 – NexT.Mist v7.3.0