• notice
  • Congratulations on the launch of the Sought Tech site

The new server sets up the complete shell command of the nginx+php+mysql environment, saves the complete parameters of the -php configure

    A set of servers has been installed recently, and the commands used are recorded here, the latest version of nginx 1.11, MySQL uses 5.7, php uses php7.1.The more important thing is the configure parameter of php.If this parameter is missing something, you will encounter some trouble when installing the extension later.In addition, the underlying environment is also very important to support installation, otherwise, when installing some software, there will always be problems with pcre, libconv and other libraries.It’s better to install them all at once without worry.Write it here as a record.

    The command I used when the installation was successful is as follows:

#Underlying environment support yum -y install yum-fastestmirror yum -a0uOFEj+ #start mysql bin/mysqld_safe --user=mysql & < /span>#Log in to mysql: use the password generated temporarily above, and set the password after entering bin/mysql -u root -p >set password =< span class="pln"> password(\'000000 span>\'); sudo cp my-default.cnf /etc/my.cnf < /span>#Modify basedir, datadir to the set path --basedir=/opt/modules/mysql57 --datadir=/opt/modules/mysql57/data sudo cp bin/mysqld_safe / usr/local/mysql/bin/mysqld #After performing the above step You can use service mysql {start,restart,stop} to operate. sudo cp bin/mysql /usr/ local/sbin/mysql #The above steps can be executed directly mysql -u root -p login #install php7---------------- ------------------------- cd  /opt/download sudo wget -c http://ftp.gnu.org /pub/gnu/libiconv/libiconv-1.14.tar.gz sudo tar zxvf libiconv-1.14.tar.gz cd libiconv- span>1.14 ./configure && make &&< span class="pln"> make install cd /opt/download sudo wget http ://cn2.php.net/distributions/php-< span class="lit">7.1.3.tar.gz sudo tar zxvf php-7.1.3.tar< span class="pun">.gz cd php-7.1< /span>.3 ./configure --prefix=/opt/modules/php7/ --with-config-file< span class="pun">-path=/opt/modules< /span>/php7/ etc --with-mysql=mysqlnd --with-mysqli=mysqlnd -- span>with-freetype- dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --disable-rpath --enable-enable-bcmath --enable -shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --< span class="pln">enable-mbstring -- span>with-mcrypt --enable-ftp --with< span class="pun">-gd --enable span>-gd-native -ttf --with-openssl --with-mhash --enable-pcntl --enable- sockets --with-xmlrpc --enable-zip < span class="pun">--enable-soap --with- pear --with-gettext --enable-sysvshm --enable-exif --enable-fpm -- with-fpm-user=www --with-fpm-group =www --with< /span>-pdo-mysql= mysqlnd --with-zend-vm=GOTO --enable- opcache --with-pdo -mysql make ZEND_EXTRA_LIBS=\'-liconv\' make install #Install redis extension cd /opt/download sudo wget https://codeload.github.com/phpredis/phpredis/zip /php7 sudo mv php7 php7redis.zip sudo /opt/modules/php7/bin/< /span>phpize sudo ./configure --with-php-config=/opt/modules< /span>/php7/ bin/php-config sudo make && sudo make install #Installing shared extensions:/opt/modules/php7/lib/php/extensions/no-debug-non-zts-20160303/ #install msgpack Extension sudo wget http://pecl.php.net /get/msgpack span>-2.0.2.tgz sudo tar zxvf msgpack-2.0.2.tgz cd msgpack-2.0. 2 sudo /opt span>/modules/php7/ bin/phpize sudo ./configure --with-< span class="pln">php-config=/opt/modules/php7 /bin/php-config sudo make && sudo make install< /span>

pln">bin/php-config sudo make && sudo make install

pln">bin/php-config sudo make && sudo make install

Tags

Technical otaku

Sought technology together

Related Topic

1 Comments

author

purchase atorvastatin generic & lt;a href="https://lipiws.top/"& gt;lipitor 20mg drug& lt;/a& gt; atorvastatin 10mg usa

Qkargm

2024-03-08

Leave a Reply

+