One, install MySQL 5.1.73 1. Download the MySQL 5.1.73 free of compile [Root@www ~]# CD/USR/LOCAL/SRC
[Root@www src]# wget http://cdn.mysql.com/Downloads/MySQL-5.1/mysql-5.1.73-linux-x86_64-glibc23.tar.gz # #64位
[Root@www src]# wget http://cdn.mysql.com/Downloads/MySQL-5.1/mysql-5.1.73-linux-i686-glibc23.tar.gz # #32位
2. Build MySQL account First log on to the Linux system as root, and then execute the following command to create the MySQL group and the user:
[Root@www ~]# useradd-s/sbin/nologin-m MySQL
After extracting the free-build binary package, move to/usr/local and rename to MySQL, which is now the path in/usr/local/mysql/.
[Root@www ~]# Mv/usr/local/src/mysql-5.1.73-linux-i686-glibc23/usr/local/mysql
3. Create a directory/data/mysql to change the owner group of this directory to MySQL. copy my-huge.cnf to/etc/my.cnf [Root@www mysql]# chown-r Mysql.mysql/data/mysql
4. Copy the Mysql.server to INIT.D and rename it to Mysqld. And give him 755 permissions. [Root@www mysql]# CP Support-files/mysql.server/etc/init.d/mysqld
[Root@www mysql]# chmod 755/etc/init.d/mysqld
[Root@www mysql]# Vim!$
[Root@kevinlinux ~]#/usr/local/nginx/sbin/nginx-t # #检查nginx. conf file is correct, you can specify config file with-c
[Root@kevinlinux ~]#/usr/local/nginx/sbin/nginx-v # #查看nginx版本
[Root@kevinlinux ~]#/usr/local/nginx/sbin/nginx-v # #查看nginx版本及编译参数
[Root@kevinlinux ~]# Cat/usr/local/nginx/logs/nginx.pid # #查看nginx的pid
Nginx is very powerful in process control and can control the process through signal instruction.
QUIT: Indicates that the process is closed after the current request has been processed HUP: Indicates a reload of the configuration, which closes the original process and opens a new worker process. This operation does not interrupt user access requests (smooth restart Nginx) USR1: Used for Nginx log switching, that is, to reopen a log file, such as the daily generation of a new log file, you can use this signal control USR2: For smooth upgrade executable program
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.