Compile and install MySQL
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/83/wKiom1ScGyugs6f2AAIyu1EMINI544.jpg "title=" Picture 1.png "alt=" wkiom1scgyugs6f2aaiyu1emini544.jpg "/>
Target: Compile and install mariadb on mysqlm , and install wordpress Blog program. MYSQLS is temporarily not configured.
Operating system CentOS6.6 x32_64
version of mariadb used
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/80/wKioL1ScG_HAAVr5AADym16fxrU110.jpg "title=" Picture 2.png "alt=" wkiol1scg_haavr5aadym16fxru110.jpg "/>
Native IP settings
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/83/wKiom1ScG02hOO5NAAGJMKO69PQ266.jpg "title=" Picture 3.png "alt=" wkiom1scg02hoo5naagjmko69pq266.jpg "/>
Compiling the installation mariadb 's script
#!/bin/bash#datadir=/mydata/dataetcdir=/etc/mysqlfilepath=/usr/localfile=mariadb-5.5.36-linux-x86_64 id mysql | | useradd -r mysql[ ! -d $datadir ] && mkdir -p $datadir [ ! -d $etcdir ] && mkdir $etcdirchown -r mysql: mysql $datadirtar xf /root/$file .tar.gz -c $filepath [ -d $filepath/ mysql ] | | ln -s $filepath/$file $filepath/mysqlcp $filepath/mysql/support-files/my-large.cnf /etc/mysql/my.cnf# using the InnoDB storage engine sed -i "[email protected]_concurrency = [ Email protected]_concurrency = 2\ndatadir= ' echo $datadir ' \ninnodb_file_per_table = [email protected] " /etc/mysql/my.cnf cp $filepath/mysql/support-files/mysql.server /etc/rc.d/init.d/mysqldecho ' Export path=/usr/local/mysql/bin: $PATH ' > /etc/profile.d/mysqld.shcd $filepath/mysql./scripts/mysql_install_db --datadir= $datadir -- User=mysql chkconfig --add mysqldservice mysqld start
The database is working correctly.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/57/80/wKioL1ScHAyAmiSmAAClMZdpvO0802.jpg "title=" Picture 4.png "alt=" wkiol1schayamismaaclmzdpvo0802.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/80/wKioL1ScHBSyZ2M5AAJF_migJqg079.jpg "title=" Picture 5.png "alt=" wkiol1schbsyz2m5aajf_migjqg079.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/80/wKioL1ScHCqAy6Z9AAGLp1oYhAc967.jpg "title=" Picture 6.png "alt=" wkiol1schcqay6z9aaglp1oyhac967.jpg "/>
Create a only allowed PHP Host login using the user wpadmin, password is also wpadmin.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/83/wKiom1ScG96jGrOVAADgm9uzAOQ543.jpg "title=" Picture 7.png "alt=" wkiom1scg96jgrovaadgm9uzaoq543.jpg "/>
Review the authorization status.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/83/wKiom1ScG_XitkgIAANM-vJzPss469.jpg "title=" Picture 8.png "alt=" wkiom1scg_xitkgiaanm-vjzpss469.jpg "/>
Moved to the PHP host, unzip WordPress
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/80/wKioL1ScHL2AtQkWAAMpbBFx5hs445.jpg "title=" Picture 9.png "alt=" wkiol1schl2atqkwaampbbfx5hs445.jpg "/>
Modify wp-config-sample.php file in wordpress directory , coexisting as wp-config.php
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/57/83/wKiom1ScHCCQVD88AAHvwRgSid4042.jpg "title=" Picture 10.png "alt=" wkiom1schccqvd88aahvwrgsid4042.jpg "/>
Create a new directory and copy the files.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/57/80/wKioL1ScHNzB8DagAACdV4RD9S0073.jpg "title=" Picture 11.png "alt=" wkiol1schnzb8dagaacdv4rd9s0073.jpg "/>
Browser Access http://vul.test.com/wp/index.php
Ok. the foundation of the Basic Network experiment environment has been built.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/57/83/wKiom1ScHDviO4-GAAJZkGH7zOM046.jpg "title=" Picture 12.png "alt=" wkiom1schdvio4-gaajzkgh7zom046.jpg "/>
This article is from the "TTQQ" blog, make sure to keep this source http://473008.blog.51cto.com/463008/1596087
My Linux Learning Journey: (4) Build MySQL Database