Author: Mo Zhuoying
Recently, due to the need to build a background test system, it is necessary to build mysql, apache, fastcgi, and svn under the centos system. Since the online tutorials are scattered and many are out of date, they are reorganized as follows:
yum install mysql mysql-server mysql-devel
/etc/my.cnf
service mysqld start
chkconfig --add mysqld
mysqladmin -u user name password password
mysql -u user name-p password
service mysqld stop
mysqld_safe --user=root --skip-grant-tables
mysql -u root
use mysql
update user set password=password("new_pass") where user="root";
flush privileges;
rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath php-process php-gd php-common
php -v
/etc/init.d/php-fpm start
chkconfig --add php-fpm
chkconfig php-fpm on
yum install subversion -y
mkdir -p /home/svnrepo/
svnadmin create /home/svnrepo/
Enter the folder conf generated above to configure, there are the following files authz, passwd, svnserve.conf, set passwd
Set the permissions of the above user to the file
anon-access = none #Make it inaccessible to unauthorized users
auth-access = write #Give authorized users write permissions
password-db = password
authz-db = authz #Access control file
realm =/opt/svn/repos #Authentication namespace, subversion will be displayed in the authentication prompt and used as a key for credential cache.
svnserve -d -r set directory
netstat -antp | grep svn
yum install httpd -y
service httpd start
chkconfig --add httpd
chkconfig httpd on
yum install libtool httpd-devel apr-devel apr
wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz
tar -zxvf mod_fastcgi-current.tar.gz
cd mod_fastcgi-2.4.6/
cp Makefile.AP2 Makefile
make top_dir=httpd installation directory
make install top_dir=httpd installation directory
Original link: http://ivweb.io/topic/56096bfbc2317a8c3e0861fd
Recommended Posts