Linux Server Configuration


Download 493.5 Kb.
bet45/48
Sana16.06.2023
Hajmi493.5 Kb.
#1495871
1   ...   40   41   42   43   44   45   46   47   48
Bog'liq
0501-linux-server-configuration

Chapter 13: MySQL


MySQL is a fast, multi-threaded, multi-user, and robust SQL database server. It is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.

13.1 Installation


To install MySQL, run the following command from a terminal prompt:
$ sudo apt-get install mysql-server
During the installation process you will be prompted to enter a password for the MySQL root user.
Once the installation is complete, the MySQL server should be started automatically. You can run the following command from a terminal prompt to check whether the MySQL server is running:
$ sudo netstat -tap | grep mysql
When you run this command, you should see the following line or something similar:
tcp 0 0 localhost:mysql *:* LISTEN 2556/mysqld
If the server is not running correctly, you can type the following command to start it:
$ sudo /etc/init.d/mysql restart

13.2 Configuration


You can edit the /etc/mysql/my.cnf file to configure the basic settings -- log file, port number, etc. For example, to configure MySQL to listen for connections from network hosts, change the bind_address directive to the server's IP address:
bind-address = 192.168.0.5

Replace 192.168.0.5 with the appropriate address.


After making a change to /etc/mysql/my.cnf the mysql daemon will need to be restarted:
$ sudo /etc/init.d/mysql restart
If you would like to change the MySQL root password, in a terminal enter:
$ sudo dpkg-reconfigure mysql-server-5.0
The mysql daemon will be stopped, and you will be prompted to enter a new password.

Chapter 14: Postfix (Mail server)


Postfix is the default Mail Transfer Agent (MTA) in Ubuntu. It attempts to be fast and easy to administer and secure. It is compatible with the MTA sendmail. This section explains how to install and configure postfix. It also explains how to set it up as an SMTP server using a secure connection (for sending emails securely).


Download 493.5 Kb.

Do'stlaringiz bilan baham:
1   ...   40   41   42   43   44   45   46   47   48




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling