日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯網營銷解決方案
詳解FreeBSD中的常用操作

FreeBSD 是一個適用于現代服務器、桌面與嵌入式平臺的先進操作系統(tǒng)。由一個龐大的開發(fā)人員團隊持續(xù)開發(fā)超過三十年。FreeBSD先進的網絡、安全性和存儲方面的特色使得它成為許多大型網站以及最普遍的嵌入式網絡與存儲設備的平臺選擇,本篇文章重點為大家講解一下FreeBSD中的常用操作。

1. 網絡

重啟網絡的命令:

/etc/rc.d/netif restart , /etc/netstart restart

網絡配置文件:

root@mhxy-compile02:~ # cat /etc/rc.conf
ifconfig_em0="DHCP"
sshd_enable="NO"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
puppet_enable="YES"
ipv6_enable="NO"

hostname="mhxy-compile02.i.nease.net"

nfs_client_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"

2. SSH

命令:

/etc/rc.d/sshd start , /etc/rc.d/sshd restart

SSH配置文件:

root@mhxy-compile02:~ # cat /etc/ssh/sshd_config
# THIS FILE IS AUTOMATICALLY GENERATED BY PUPPET.
# DO NOT EDIT THIS FILE.

# 1. Basic
Port 32200
Protocol 2


# 2. Authentication
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

KeyRegenerationInterval 3600
ServerKeyBits 768
UsePrivilegeSeparation yes
LoginGraceTime 120

PermitRootLogin no
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
PermitEmptyPasswords no
ChallengeResponseAuthentication no
PasswordAuthentication no

IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no


# 3. Features
UseDNS no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*


# 4. Logging
SyslogFacility AUTH
LogLevel INFO


# 5. x509
Subsystem sftp /usr/libexec/sftp-server
#CACertificateFile /etc/ssh/ca/ca.cer

3. 防火墻

1)停止ipfw防火墻:
ipfw disable firewall  
/etc/rc.d/ipfw stop

2)開啟ipfw防火墻:

ipfw enable firewall  
/etc/rc.d/ipfw start

3)清防火墻
ipf -Fa

4.賦予用戶root權限

1)pw groupmod wheel -m
2)pw user mod  -g wheel

5.查看CPU和內存

1)sysctl kern.smp.cpus或dmesg |grep cpu  #查看CPU個數
2)dmesg|more或top   #查看內存

網頁名稱:詳解FreeBSD中的常用操作
網頁地址:http://m.5511xx.com/article/dpicsho.html