In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you what the six services under the Linux operating system are like, the content is very detailed, interested friends can refer to, hope to be helpful to you.
I. SMB service
1.SMB service function: sharing files, printers and other resources between different system hosts
2.SMB service master profile path: / etc/samba/smb.conf/
3.SMB service start (restart, stop) method: # service smb start (restart, stop)
4. Fragment of SMB main configuration file:
Security = user (share) security mode [BDDY] share name comment = BDDY share comment path = / root/bddy share path public = no anonymous access writable = yes allow write permission valid users = bob,tom,@bddy access restriction
5. When the server security mode is set to user, what are the criteria for users to successfully access the SMB server?
Answer: there is a user, and the user is effective. Set the smb password for the user.
# useradd XXX # passwd XXX # smbpasswd-a XXX
6. How does the client access the SMB server?
Answer:\ samba server IP address
II. DHCP services
1.DHCP service function: dynamic host configuration protocol automatically distributes TCP/IP parameters
The path to the 2.DHCP service master profile: / etc / dhcpd.conf. A template will be generated after the file is successfully built and installed, which can be copied over: # cp / usr/share/doc/dhcp*/dhcpd.conf.sample / etc/dhcpd.conf
3.DHCP service start (restart, stop) method: # service dhcpd start (restart, stop)
4. Fragment of DHCP main configuration file:
Subnet 192.168.100.0 netmask 255.255.255.0 {subnet option routers 192.168.100.1; gateway option subnet-mask 255.255.255.0; subnet mask option domain-name-servers 192.168.100.2; DNS address range … 192.168.100.100 192.168.100.250; address pool range default-lease-time 21600; default lease time max-lease-time 43200; * * lease time
5. Client verifies the function of DHCP service: first modify the client address to automatically obtain IP
Ipconfig / all automatically get the IP address ipconfig / release release IP address ipconfig / renew get the new IP address
6. If the client has special requirements and requires the DHCP server to bind the MAC-IP address, how should it be implemented? Host ns {
Hardware ethernet 00VO50VOV 56VOUR 000R01The physical address of the client fixed-address 192.168.100.100; the address to be given to the client
III. DNS service
1.DNS service function: name resolution
2.DNS service master profile and forward and backward zone file paths:
/ etc/named.conf main configuration file / var/named/wl.com.bd forward zone file / var/named/192.168.100.bd reverse zone file
3.DNS service start (restart, stop) method: # service named start (restart, stop)
4. Forward area file fragment: name = > address
NS 192.168.100.1. Www IN 1H A 192.168.100.2 ftp IN 1H A 192.168.100.3
5. Reverse area file fragment: address = > name
NS 192.168.100.1. 2 PTR www.wl.com. 3 PTR ftp.wl.com.
6.Linux client authentication DNS service: host
Windows client authentication DNS service: nslookup
IV. FTP service
1.FTP service function: realize file upload and download
2.FTP service master profile and user rights limit file path?
/ etc/vsftpd/vsftpd.conf main configuration file / etc/vsftpd/ftpusers restriction file 1: if the user is not in this file, you can succeed / etc/vsftpd/user_list restriction file 2: if the userlist=yes in the vsftpd.conf file, the user is not in this file, you can succeed; if the userlist=no in the vsftpd.conf file, the user in this file can be successful
3.FTP service start (restart, stop) method: # service vsftpd start (restart, stop)
4. Two anonymous users in the FTP service are: ftp and anonymous
5.FTP service anonymously accesses the default shared location: the root directory of anonymous users is / var / ftp
6. Which statements in the configuration file need to be followed and modified to realize the upload and download of anonymous users? How to modify the permissions for uploading directories by default?
Anonymous_enable = YES allows users to log in anonymously anon_upload_enable = YES allows anonymous users to upload files # chmod odeciw / var/ftp/pub modify permissions
7. Implement the snippet of the main profile for a specific user to access the FTP server:
Anonymous_enable = NO turn off anonymous user access local_root = / home describe the share path in the file system chroot_local_user = YES locks the user in the above directory and cannot access anywhere else
8. Client access to FTP server: ftp:// username: password @ server IP
5. MAIL service
1. Install the sendmail mail sending component: # rpm-ivh sendmail-cf-*
Install the dovecot mail receiving components in the same order:
# rpm-ivh perl-* # rpm-ivh mysql-5.0.45-* # rpm-ivh postgresql-libs-* # rpm-ivh dovecot-1.07-*
two。 Configure DNS: adding MX records and A records to the area file
Reverse zone file add MX record and PTR record
3. Configure the mail service
(1) / etc / dovecot.conf opens the dovecot.conf configuration file, / protocols looks for protocols in command mode, and removes "#"
Start the dovecot service
(2) sendmail backs up the file first, opens the sendmail.mc configuration file, and makes the following modifications:
/ DAEMON_OPTIONS lookup in command mode, change the loopback address to the server address
/ TRUST_AUTH_MECH search in command mode, remove the comments on this line and the next line, "dnl"
Search / LOCAL_DOMAIN in command mode and change it to your own domain name
Use the M4 tool to redirect the edited sendmail.mc file contents to the sendmail.cf file
Mail # M4 sendmail.mc > sendmail.cf
3. Verify the DNS service command snippet:
# nslookup Verification Command
> set type = MX to query the mail server name in the local domain
> set type = A query the IP address corresponding to the name
4.。 How to send mail in groups in the same domain?
# vi / etc / aliases
Aliases: user 1, user 2, user 3
5. The method of verifying Mail service on Linux client
# telnet mail server 25 helo * mail from: send mailbox account rcpt to: receive mailbox account data: edit email # Su-user name $mail
6. The method of verifying Mail service on Windows client
Outlook
VI. WEB service
The path to the 1.Apache main configuration file: / etc / httpd / conf / httpd.conf
2. The default publishing path of Apache: / var/www/html
User publishing path: / home / username / public_html
3. Profile snippet:
StartServers 8 default number of processes MinSpareServers 5 default minimum number of processes MaxSpareServers 20 default * * number of processes DirectoryIndex 1.html index.html can be recognized home file # UserDir disable enables ordinary users to publish web pages
What is the role of configuring virtual hosts in 4.Web services?
Realize the publication of multiple sites in the same Web server
5. Profile snippet:
NameVirtualHost 192.168.100.1 80 enablement statement
Head
DocumentRoot / var/www/html release path
ServerName www.wl.com corresponding name
Tail part
6. Method for client to verify Web service: http:// IP
About how the six services under the Linux operating system are shared here, I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.