In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "what are the common operations in FreeBSD", the content is simple and clear, and I hope it can help you solve your doubts. Let me lead you to study and learn this article "what are the common operations in FreeBSD?"
FreeBSD is an advanced operating system suitable for modern servers, desktops and embedded platforms. It has been developed continuously for more than 30 years by a large team of developers. FreeBSD's advanced networking, security and storage features make it the platform of choice for many large websites as well as the most common embedded network and storage devices.
1. The network
Command to restart the network:
/ etc/rc.d/netif restart, / etc/netstart restart
Network profile:
Root@mhxy-compile02:~ # cat / etc/rc.confifconfig_em0= "DHCP" sshd_enable= "NO" ntpd_enable= "YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disabledumpdev= "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
Command:
/ etc/rc.d/sshd start, / etc/rc.d/sshd restart
SSH profile:
Root@mhxy-compile02:~ # cat / etc/ssh/sshd_config# THIS FILE IS AUTOMATICALLY GENERATED BY PUPPET.# DO NOT EDIT THIS FILE.# 1. BasicPort 32200Protocol 2# 2. AuthenticationHostKey / etc/ssh/ssh_host_rsa_keyHostKey / etc/ssh/ssh_host_dsa_keyKeyRegenerationInterval 3600ServerKeyBits 768UsePrivilegeSeparation yesLoginGraceTime 120PermitRootLogin noStrictModes yesRSAAuthentication yesPubkeyAuthentication yesPermitEmptyPasswords noChallengeResponseAuthentication noPasswordAuthentication noIgnoreRhosts yesRhostsRSAAuthentication noHostbasedAuthentication no# 3. FeaturesUseDNS noX11Forwarding yesX11DisplayOffset 10PrintMotd noPrintLastLog yesTCPKeepAlive yesAcceptEnv LANG LC_*# 4. LoggingSyslogFacility AUTHLogLevel INFO# 5. X509Subsystem sftp / usr/libexec/sftp-server#CACertificateFile / etc/ssh/ca/ca.cer3. Firewall 1) stop ipfw firewall: ipfw disable firewall / etc/rc.d/ipfw stop2) turn on ipfw firewall: ipfw enable firewall / etc/rc.d/ipfw start3) clear firewall ipf-Fa4. Give users root permissions: 1) pw groupmod wheel-m2) pw user mod-g wheel5. Check CPU and memory 1) sysctl kern.smp.cpus or dmesg | grep cpu # View the number of CPU 2) dmesg | more or top # check all the contents of the article "what are the common operations in FreeBSD" above memory? thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.