First, LNMP installation
Linux system with centos 6.4, nginx 1.2.7, mysql5.1.67, php5.3.3. Both are the latest stable versions.
1, add YUM software source and update
#rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8. Noarch.rpm#rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm#yum update
# yum install nginx php-fpm php-mysql mysql-server php-mbstring php-gd php-pear php-mcrypt php-mhash php-eaccelerator php-suhosin php-tidy php- Curl
Second, LNMP settings
1, set mysql, nginx, php-fpm boot automatically start
# chkconfig nginx on# chkconfig mysqld on# chkconfig php-fpm on
2, mysql settings
2.1, set mysql password
#service mysqld start#mysqladmin -u root password 'password'
Log in to mysql as root The command is
#mysql -u root -p
restart mysql:
#service mysql restart
2.2, create a database called wordpress , equipment for the installation of wordpress below.
mysql> create database wordpress;
Authorize the database”wordpress”, make the user name ”wpuser”, the operation permission is localhost, the login password is “wp123456”
mysql> grant all on wordpress.* to wpuser@localhost identified by 'wp123456'
Show Query OK, 0 rows affected (0.00 sec), indicating that the operation was successful.
3, php-fpm settings
centos 6 php-fpm is used by default with apache, need to be changed to nginx.
# vi /etc/php-fpm.d/www.conf
Find the following two lines:
user = apachegroup = apache
will The apache is changed to nginx.
Although Linux systems are more secure than Windows, some simple security configurations are necess
Among the many members of the MCU family, MCS-51 series MCUs occupy industrial measurement and contr
On the linux device model online, there are some discussions, some things I used to use, to modify a
Linux 2.6 device drivers are built on the basis of the device model, therefore, to write device driv
Relationship and difference between CPU usage and machine load under Linux
Nine rules for Linux system security
Rh442-1 use snmp and mrtg to monitor the network traffic of the Linux server
Linux system startup related knowledge
Who is safer with Linux and Windows?
How Linux shrinks the lvm root partition
Detailed loading method of sound card driver under Linux operating system
Linux interview questions Daquan
VPS installation openVPN basic tutorial
Method for adjusting screen refresh rate under Linux system
Win7 system for multi-condition search method
Change the terminal service location in Windows Server 2003 to change
Linux kernel preemption implementation mechanism analysis
Apache opens Gzip and Expires to improve page load speed
Windows 7 Ultimate system Bluetooth driver installation failure how to solve
Windows7's madness: market share soared 22%
The difference between power management and resource management in win7 system
Win10 system download upgrade assistant method
Teach you to use Win7 system various display window mode
Win7 online video watching black screen or white block solution