西维蜀黍

【NAS】网卡选择

2.5G 网卡 RJ45

万兆光口 - HBA卡(光纤卡)

TP-LINK - 489 - https://detail.tmall.com/item.htm?spm=a230r.1.14.16.52aa4a49irQvDt&id=560915714875&ns=1&abbucket=7&skuId=4330599017674

SFP+光模块

使用SFP+线

  • 单模(68一个,10Gb,LC接口)和双模
  • 190单口网卡,280双口网卡
  • PCI E X8
  ...


【TrueNAS】虚拟机

Install VM

  ...


【Linux】Segmentation Fault

Segmentation Fault

In computing, a segmentation fault (often shortened to segfault) or access violation is a fault, or failure condition, raised by hardware with memory protection, notifying an operating system (OS) the software has attempted to access a restricted area of memory (a memory access violation). On standard x86 computers, this is a form of general protection fault. The OS kernel will, in response, usually perform some corrective action, generally passing the fault on to the offending process by sending the process a signal. Processes can in some cases install a custom signal handler, allowing them to recover on their own, but otherwise the OS default signal handler is used, generally causing abnormal termination of the process (a program crash), and sometimes a core dump.

  ...


【Linux】用户及用户组管理

Background

查看当前用户

$ whoami

用户和密码

在 linux 系统中,所创建的用户帐号和其相关信息 (密码除外) 均是存放在 /etc/passwd 配置文件中。

由于所有用户对 passwd 文件均有读取的权限,因此密码信息并未保存在该文件中,而是保存在了 /etc/shadow 的配置文件中(将原密码采用 MD5 加密后存储)。

  ...


【Linux】命令 - ps(查看进程信息)

linux上进程有5种状态:

  • 运行(正在运行或在运行队列中等待)
  • 中断(休眠中, 受阻, 在等待某个条件的形成或接受到信号)
  • 不可中断(收到信号不唤醒和不可运行, 进程必须等待直到有中断发生)
  • 僵死(进程已终止, 但进程描述符存在, 直到父进程调用wait4()系统调用后释放)
  • 停止(进程收到SIGSTOP, SIGSTP, SIGTIN, SIGTOU信号后停止运行运行)

ps工具标识进程的5种状态码:

  • D 不可中断 uninterruptible sleep (usually IO)
  • R 运行 runnable (on run queue)
  • S 中断 sleeping
  • T 停止 traced or stopped
  • Z 僵死 a defunct (”zombie”) process

ps

In most Unix and Unix-like operating systems, the ps program (short for “process status”) displays the currently-running processes. A related Unix utility named top provides a real-time view of the running processes.

  ...