售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
CentOS 7 Linux Server Cookbook Second Edition
Table of Contents
CentOS 7 Linux Server Cookbook Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Installing CentOS
Introduction
Downloading CentOS and confirming the checksum on Windows or OS X
Getting ready
How to do it...
How it works…
Creating USB installation media on Windows or OS X
Getting ready
How to do it...
How it works...
Performing an installation of CentOS using the graphical installer
Getting ready
How to do it...
How it works…
Running a netinstall over HTTP
Getting ready
How to do it...
How it works...
Installing CentOS 7 using a kickstart file
Getting ready
How to do it...
How it works...
Getting started and customising the boot loader
Getting ready
How to do it...
How it works...
Troubleshooting the system in rescue mode
Getting ready
How to do it...
Reaching rescue mode
Accessing the filesystem
Accessing the filesystem
Re-install the CentOS boot loader
How it works...
Updating the installation and enhancing the minimal install with additional administration and development tools
Getting ready
How to do it...
How it works...
2. Configuring the System
Introduction
Navigating text files with less
Getting ready
How to do it...
How it works...
Introduction to Vim
Getting ready
How to do it...
How it works...
Speaking the right language
Getting ready
How to do it...
How it works...
There's more…
Synchronizing the system clock with NTP and the chrony suite
Getting ready
How to do it...
How it works...
There's more...
Setting your hostname and resolving the network
Getting ready
How to do it...
How it works...
There's more...
Building a static network connection
Getting ready
How to do it...
How it works...
Becoming a superuser
Getting ready
How to do it...
How it works...
Customizing your system banners and messages
Getting ready
How to do it...
How it works...
There's more...
Priming the kernel
Getting ready
How to do it...
How it works...
There's more...
3. Managing the System
Introduction
Knowing and managing your background services
Getting ready
How to do it...
How it works...
There's more...
Troubleshooting background services
Getting ready
How to do it...
How it works...
Tracking system resources with journald
Getting ready
How to do it...
How it works...
Configuring journald to make it persistent
Getting ready
How to do it...
How it works...
Managing users and their groups
Getting ready
How to do it...
How it works...
Scheduling tasks with cron
Getting ready
How to do it...
How it works...
There's more...
Synchronizing files and doing more with rsync
Getting ready
How to do it...
How it works...
Maintaining backups and taking snapshots
Getting ready
How to do it...
How it works...
Monitoring important server infrastructure
Getting ready
How to do it...
How it works...
Taking control with GIT and Subversion
Getting ready
How to do it...
How it works
There's more...
4. Managing Packages with YUM
Introduction
Using YUM to update the system
Getting ready
How to do it...
How it works...
There's more...
Using YUM to search for packages
Getting ready
How to do it...
How it works...
There's more...
Using YUM to install packages
Getting ready
How to do it...
How it works...
There's more...
Using YUM to remove packages
Getting ready
How to do it...
How it works...
Keeping YUM clean and tidy
Getting ready
How to do it...
How it works...
There's more...
Knowing your priorities
Getting ready
How to do it...
How it works...
Using a third-party repository
Getting ready
How to do it...
How it works...
There's more...
Creating a YUM repository
Getting ready
How to do it...
How it works...
There's more...
Working with the RPM package manager
Getting ready
How to do it...
How it works...
There's more...
5. Administering the Filesystem
Introduction
Creating a virtual block device
Getting ready
How to do it...
How it works...
There's more...
Formatting and mounting a filesystem
Getting ready
How to do it...
How it works…
There's more...
Using disk quotas
Getting ready
How to do it...
Enabling user and group quotas
Enabling project (directory) quotas
How it works...
There's more...
Maintaining a filesystem
Getting ready
How to do it...
How it works...
There's more...
Extending the capacity of the filesystem
Getting ready
How to do it...
How it works...
6. Providing Security
Introduction
Locking down remote access and hardening SSH
Getting ready
How to do it...
How it works...
There's more...
Changing the SSH port number of your server
Limiting SSH access by user or group
Installing and configuring fail2ban
Getting ready
How to do it...
How it works...
Working with a firewall
Getting ready
How to do it...
How it works...
There's more...
Forging the firewall rules by example
Getting ready
How to do it...
To change an existing firewalld service (ssh)
To create your own new service
How it works...
There's more...
Generating self-signed certificates
Getting ready
How to do it...
How it works...
There's more...
Using secure alternatives to FTP
Getting ready
How to do it...
Securing your vsftpd server with SSL–FTPS
Securing your vsftpd server using SSH – SFTP
How it works...
There's more...
7. Building a Network
Introduction
Printing with CUPS
Getting ready
How to do it...
How it works...
There's more...
How to add a network printer to the CUPS server
How to share a local printer to the CUPS server
Running a DHCP server
Getting ready
How to do it...
How it works...
There's more...
Using WebDAV for file sharing
Getting ready
How to do it…
How it works…
Installing and configuring NFS
Getting ready
How to do it...
Installing and configuring the NFS server
Creating an export share
How it works...
Working with NFS
Getting ready
How to do it...
How it works...
Securely sharing resources with Samba
Getting ready
How to do it...
How it works...
There's more...
8. Working with FTP
Introduction
Installing and configuring the FTP service
Getting ready
How to do it...
How it works...
There's more...
Working with virtual FTP users
Getting ready
How to do it...
How it works...
Customizing the FTP service
Getting ready
How to do it...
How it works...
Troubleshooting users and file transfers
Getting ready
How to do it...
How it works...
9. Working with Domains
Introduction
Installing and configuring a caching-only nameserver
Getting ready
How to do it...
Configuring a caching-only Unbound DNS server
Configuring a forwarding only DNS server
How it works...
There's more...
Setting up an authoritative-only DNS server
Getting ready
How to do it...
How it works...
There's more...
Creating an integrated nameserver solution
Getting ready
How to do it...
How it works
There's more...
Populating the domain
Getting ready
How to do it...
How it works…
Building a secondary (slave) DNS server
Getting ready
How to do it...
Changes to the primary DNS server
Changes to the secondary DNS server(s)
How it works...
10. Working with Databases
Introduction
Installing a MariaDB database server
Getting ready
How to do it...
How it works...
Managing a MariaDB database
Getting ready
How to do it...
How it works...
There's more...
Reviewing and revoking permissions or dropping a user
Allowing remote access to a MariaDB server
Getting ready
How to do it...
How it works...
Installing a PostgreSQL server and managing a database
Getting ready
How to do it...
How it works...
There's more...
Configuring remote access to PostgreSQL
Getting ready
How to do it...
How it works...
Installing phpMyAdmin and phpPgAdmin
Getting ready
How to do it...
Installing and configuring phpMyAdmin
Installing and configuring phpPgAdmin
How it works...
11. Providing Mail Services
Introduction
Configuring a domain-wide mail service with Postfix
Getting ready
How to do it...
How it works...
There's more...
Changing an e-mail's appearing domain name
Using TLS- (SSL) encryption for SMTP communication
Configure BIND to use your new mailserver
Working with Postfix
How to do it...
Connecting mailx to a remote MTA
Reading your local mails from the mailbox
How it works...
Delivering the mail with Dovecot
Getting ready
How to do it...
How it works...
There's more...
Setting up e-mail software
Using Fetchmail
Getting ready
How to do it...
How it works...
There's more...
Configuring Fetchmail with gmail.com and outlook.com e-mail accounts
Automating Fetchmail
12. Providing Web Services
Introduction
Installing Apache and serving web pages
Getting ready
How to do it...
How it works...
Enabling system users and building publishing directories
Getting ready
How to do it...
How it works...
Implementing name-based hosting
Getting ready
How to do it...
How it works...
Implementing CGI with Perl and Ruby
Getting ready
How to do it...
Creating your first Perl CGI script
Creating your first Ruby CGI script
How it works...
There's more...
Installing, configuring, and testing PHP
Getting ready
How to do it...
How to do it...
Securing Apache
Getting ready
How to do it...
Configuring httpd.conf to provide better security
Removing unneeded httpd modules
Protecting your Apache files
How it works...
Setting up HTTPS with Secure Sockets Layer (SSL)
Getting ready
How to do it...
How it works...
There's more...
13. Operating System-Level Virtualization
Introduction
Installing and configuring Docker
Getting ready
How to do it...
How it works...
Downloading an image and running a container
Getting ready
How to do it...
How it works...
There's more...
Stopping and starting a container
Attaching and interacting with your container
Creating your own images from Dockerfiles and uploading to Docker Hub
Getting ready
How to do it...
Uploading your image to the Docker Hub
How it works...
Setting up and working with a private Docker registry
Getting ready
How to do it...
Steps to be done on our Docker registry server (192.168.1.100)
Steps to be done on every client needing access to our registry
How it works...
14. Working with SELinux
Introduction
Installing and configuring important SELinux tools
Getting ready
How to do it...
How it works...
There's more...
Working with SELinux security contexts
Getting ready
How to do it...
How it works...
Working with policies
Getting ready
How to do it...
How it works...
There's more...
Troubleshooting SELinux
Getting ready
How to do it...
How it works...
15. Monitoring IT Infrastructure
Introduction
Installing and configuring Nagios Core
Getting ready
How to do it...
How it works...
Setting up NRPE on remote client hosts
Getting ready
How to do it...
How it works...
Monitoring important remote system metrics
Getting ready
How to do it...
How it works...
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜