mirror of
https://github.com/hukl/freebsd-toolbox.git
synced 2025-11-20 03:08:43 +01:00
Update commands.md
This commit is contained in:
11
commands.md
11
commands.md
@ -127,6 +127,7 @@ netstat -m # display buffer usage
|
|||||||
netstat -Lan # display status of listen queues
|
netstat -Lan # display status of listen queues
|
||||||
netstat -s # display extensive statistics per protocol (use -p tcp to only show tcp)
|
netstat -s # display extensive statistics per protocol (use -p tcp to only show tcp)
|
||||||
sockstat -l # display listening sockets, process names and pids
|
sockstat -l # display listening sockets, process names and pids
|
||||||
|
sockstat -4 # display all IPv4 sockets - good with -l as above
|
||||||
sysctl kern.ipc.numopensockets # display number of open sockets
|
sysctl kern.ipc.numopensockets # display number of open sockets
|
||||||
vmstat -z | egrep "ITEM|tcpcb" # number of hash table buckets to handle incoming tcp connections
|
vmstat -z | egrep "ITEM|tcpcb" # number of hash table buckets to handle incoming tcp connections
|
||||||
increase net.inet.tcp.tcbhashsize if hitting the limit
|
increase net.inet.tcp.tcbhashsize if hitting the limit
|
||||||
@ -177,16 +178,6 @@ ezjail-admin delete -w hostname # delete the jail (in case you use zfs a
|
|||||||
ezjail-admin update -U -s 11.1-RELEASE # update basejail from -s <RELEASE> to current host system
|
ezjail-admin update -U -s 11.1-RELEASE # update basejail from -s <RELEASE> to current host system
|
||||||
```
|
```
|
||||||
|
|
||||||
# Common sysctl's to set
|
|
||||||
|
|
||||||
```
|
|
||||||
hw.usb.no_shutdown_wait=1 # don't wait for USB devices when shutting down (if your system hangs when
|
|
||||||
rebooting)
|
|
||||||
|
|
||||||
kern.maxfiles=204800 # Increase file descriptor limits
|
|
||||||
kern.maxfilesperproc=200000
|
|
||||||
```
|
|
||||||
|
|
||||||
# Boot Environments
|
# Boot Environments
|
||||||
```
|
```
|
||||||
bectl list # List existing boot environments
|
bectl list # List existing boot environments
|
||||||
|
|||||||
Reference in New Issue
Block a user