当前位置:网站首页>Project 1: deploy lamp ECSHOP e-commerce platform
Project 1: deploy lamp ECSHOP e-commerce platform
2022-06-30 00:06:00 【XUPT-BDAL-LAB-ML&OP】
The Internet
vim /etc/sysconfig/network-scripts/ifcfg-ens32
ip mask dns gateway
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
setenfore 0
systemctl disabled firewalld
systemctl stop firewalld
iptables -F
yum Source
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
vim /etc/yum.repos.d/CentOS-Media.repo
mount /dev/sr0 /media
echo "/dev/sr0 /media iso9660 defaults 0 0" >> /etc/fstab
mount -a
Installation dependency
yum install -y gcc*
link :https://pan.baidu.com/s/1xnLWr1GGugu79oL2vyj_tA?pwd=6j5z
Extraction code :6j5z
-- From Baidu network disk super member V3 The share of
[[email protected] software]# ll
total 70364
-rw-r--r--. 1 root root 72049715 Jun 27 07:18 LAMP.zip
unzip LAMP.zip
mv /root/LAMP/ /lamp
[[email protected] lamp]# ll
total 71524
-rw-r--r--. 1 root root 982243 Feb 24 2020 apr-1.4.6.tar.gz
-rw-r--r--. 1 root root 774770 Feb 24 2020 apr-util-1.4.1.tar.gz
-rw-r--r--. 1 root root 1775673 Feb 24 2020 freetype-2.3.5.tar.gz
-rw-r--r--. 1 root root 6747087 Feb 24 2020 httpd-2.4.7.tar.gz
-rw-r--r--. 1 root root 613261 Feb 24 2020 jpegsrc.v6b.tar.gz
-rw-r--r--. 1 root root 1335178 Feb 24 2020 libmcrypt-2.5.8.tar.gz
-rw-r--r--. 1 root root 792139 Feb 24 2020 libpng-1.2.31.tar.gz
-rw-r--r--. 1 root root 5172503 Feb 24 2020 libxml2-2.9.1.tar.gz
-rw-r--r--. 1 root root 471915 Nov 22 2008 mcrypt-2.6.8.tar.gz
-rw-r--r--. 1 root root 326970 Feb 25 2020 memcached-1.4.17.tar.gz
-rw-r--r--. 1 root root 931437 Dec 8 2008 mhash-0.9.9.9.tar.gz
-rw-r--r--. 1 root root 21201193 Feb 24 2020 mysql-5.5.48.tar.gz
-rw-r--r--. 1 root root 2826473 Feb 24 2020 ncurses-5.9.tar.gz
-rw-r--r--. 1 root root 1933734 Feb 24 2020 pcre-8.34.tar.gz
-rw-r--r--. 1 root root 401230 Feb 25 2020 pecl-memcache-php7.zip
-rw-r--r--. 1 root root 18218591 Feb 24 2020 php-7.0.7.tar.gz
-rw-r--r--. 1 root root 8198197 Feb 24 2020 phpMyAdmin-4.1.4-all-languages.tar.gz
-rw-r--r--. 1 root root 242 Feb 24 2020 tar.sh
-rw-r--r--. 1 root root 496597 Feb 24 2020 zlib-1.2.3.tar.gz
sh tar.sh
# Start installing dependencies
yum install -y libxml2-devel python-devel
cd /lamp/libxml2-2.9.1
./configure --prefix=/usr/local/libxml2/ && make -j 4 && make install && echo $?
cd /lamp/libmcrypt-2.5.8
./configure --prefix=/usr/local/libmcrypt/ && make -j 4 && make install && echo $?
cd /lamp/libmcrypt-2.5.8/libltdl
./configure --enable-ltdl-install && make -j 4 && make install && echo $?
cd /lamp/mhash-0.9.9.9
./configure && make -j 4 && make install && echo $?
cd /lamp/mcrypt-2.6.8
export LD_LIBRARY_PATH=/usr/local/libmcrypt/lib:/usr/local/lib
# Variable :LD_LIBRARY_PATH Is used to specify the libmcrypt and mhash The location of the library of
./configure --with-libmcrypt-prefix=/usr/local/libmcrypt && make -j 4 && make install && echo $?
cd /lamp/zlib-1.2.3
./configure
# Then modify the configuration file , Otherwise, the software cannot be installed normally
vim Makefile
CFLAGS=-O3 -DUSE_MMAP -fPIC
# find CFLAGS=-O3 -DUSE_MMAP, Add... To the back -fPIC become ( Be careful : Small f Big PIC, Space )
make -j 4 && make install && echo $?
cd /lamp/libpng-1.2.31
./configure --prefix=/usr/local/libpng && make -j 4 && make install && echo $?
mkdir /usr/local/jpeg6
mkdir /usr/local/jpeg6/bin
mkdir /usr/local/jpeg6/lib
mkdir /usr/local/jpeg6/include
mkdir -p /usr/local/jpeg6/man/man1
yum -y install libtool*
cd /lamp/jpeg-6b
cp -a /usr/share/libtool/config/config.sub ./
cp -a /usr/share/libtool/config/config.guess ./
# Copy libtool Documents in , Cover jpeg-6b Documents in (64 The problem in bit )
./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static && make -j 4 && make install && echo $?
cd /lamp/freetype-2.3.5
./configure --prefix=/usr/local/freetype/ && make -j 4 && make install && echo $?
apache
cp -a /lamp/apr-1.4.6/lamp/httpd-2.4.7/srclib/apr
cp -a /lamp/apr-util-1.4.1/lamp/httpd-2.4.7/srclib/apr-util
cd /lamp/pcre-8.34
./configure && make -j 4 && make install && echo $?
yum -y install openssl-devel
cd /lamp/httpd-2.4.7
./configure \
--prefix=/usr/local/apache2 \
--sysconfdir=/usr/local/apache2/etc \
--with-included-apr \
--enable-so \
--enable-deflate=shared \
--enable-expires=shared \
--enable-rewrite=shared --enable-ssl
make -j 4 && make install && echo $?
/usr/local/apache2/bin/apachectl start
ps aux | grep httpd
netstat -tlun | grep :80
yum -y install ncurses-devel
cd /lamp/ncurses-5.9
./configure --with-shared \
--without-debug --without-ada \
--enable-overwrite && make -j 4 && make install && echo $?
yum -y install cmake bison
mysql
useradd -r -s /sbin/nologin mysql
cd /lamp/mysql-5.5.48
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
-DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1 \
-DMYSQL_USER=mysql -DMYSQL_TCP_PORT=3306 && make && make install && echo $?
cd /usr/local/mysql/
chown -R root .
chown -R mysql data
cp -a /lamp/mysql-5.5.48/support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
./scripts/mysql_install_db --user=mysql
/usr/local/mysql/bin/mysqld_safe --user=mysql &
/usr/local/mysql/bin/mysqladmin -uroot password 123456
/usr/local/mysql/bin/mysql -u root -p
PHP
cd /lamp/php-7.0.7
./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/php/etc/ \
--with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local/libxml2/ \
--with-jpeg-dir=/usr/local/jpeg6/ --with-png-dir=/usr/local/libpng/ \
--with-freetype-dir=/usr/local/freetype/ --with-mcrypt=/usr/local/libmcrypt/ \
--with-mysqli=/usr/local/mysql/bin/mysql_config --enable-soap --enable-mbstring=all \
--enable-sockets --with-pdo-mysql=/usr/local/mysql --with-gd --without-pear && make && make install && echo $?
mkdir /usr/local/php/etc
cp /lamp/php-7.0.7/php.ini-production /usr/local/php/etc/php.ini
vim /usr/local/apache2/etc/httpd.conf
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
/usr/local/apache2/bin/apachectl stop
/usr/local/apache2/bin/apachectl start
vim /usr/local/apache2/htdocs/test.php
<?php
phpinfo();
?>
http://192.168.222.101/test.php
cd /lamp/php-7.0.7/ext/openssl
mv config0.m4 config.m4
/usr/local/php/bin/phpize
./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config && make && make install && echo $?
vi /usr/local/php/etc/php.ini
# Add the last
extension_dir="/usr/local/php/lib/php/extensions/no-debug-zts-20151012/"
extension="openssl.so";
extension="memcache.so";
Add the call of the above two library files
restart apache, Refresh phpinfo page , And see if there are two new modules
cd /lamp
# broken wget ftp://ftp.pbone.net/mirror/ftp.centos.org/7.6.1810/os/x86_64/Packages/libevent-devel-2.0.21-4.el7.x86_64.rpm
yum -y install libevent-devel
cd /lamp/memcached-1.4.17
./configure --prefix=/usr/local/memcache && make && make install && echo $?
useradd -r -s /sbin/nologin memcache
add to memcache user , This user does not have to log in , No password
/usr/local/memcache/bin/memcached -umemcache &
start-up memcache service , And set it to run in the background
netstat -an | grep :11211
Check memcache Whether it starts normally , And monitored 11211 port
phpmyadmin
cp -a /lamp/phpMyAdmin-4.1.4-all-languages /usr/local/apache2/htdocs/phpmyadmin
cd /usr/local/apache2/htdocs/phpmyadmin
cp -a config.sample.inc.php config.inc.php
vim config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['auth_type'] = 'http';
Set up auth_type by http , It is set to HTTP Authentication mode ( Just add )
Enter address through browser :http://Apache Server address /phpmyadmin/index.php
# vi /etc/rc.local
/usr/local/apache2/bin/apachectl start
/usr/local/mysql/bin/mysqld_safe --user=mysql &
/usr/local/memcache/bin/memcached -umemcache &

HEXO
边栏推荐
- Ingenious application of golang generics to prevent null pointer errors of variables and structural fields
- @Scheduled注解的坑,我替你踩了
- AI首席架构师9-胡晓光 《飞桨模型库与行业应用》
- Leetcode (76) -- Minimum Covering substring
- 數莓派 4怎麼樣?可能的玩法有哪些?
- shell-运算符
- [Shangshui Shuo series] day 8
- Solr基础操作8
- Copy linked list with random pointer [space for time --hash record]
- What is flush software? Is it safe to open an account online?
猜你喜欢

Cartoon security HIDS, EDR, NDR, XDR

How to write controller layer code gracefully?
![克隆无向图[bfs访问每条边而不止节点]](/img/34/2a1b737b6095293f868ec6aec0ceeb.png)
克隆无向图[bfs访问每条边而不止节点]

Leetcode (680) -- verifying palindrome string II

Exploration and Practice on the future direction of byte cloud database

架构实战营模块5作业

Unity splashimage scaling problem

代码分析平台 SonarQube 实战

Inspiration collection · evaluation of creative writing software: flomo, obsidian memo, napkin, flowus

Leetcode (76) -- Minimum Covering substring
随机推荐
Leetcode (680) -- verifying palindrome string II
Leetcode (633) -- sum of squares
The role of VMware virtual machine
AI首席架构师9-胡晓光 《飞桨模型库与行业应用》
koa2学习和使用
西门子低代码平台通过Database Connector 连接Mysql 实现增删改查
西门子低代码 9.14版本: 满足不同需求
6.28日刷题题解
Ingenious application of golang generics to prevent null pointer errors of variables and structural fields
QT learning 07 coordinate system in QT
This PMP Exam (June 25), some people are happy and others are worried. That's why
【一起上水硕系列】Day 8
Is China Merchants Securities reliable? Is it safe to open a stock account?
shell-运算符
Sword finger offer 14- ii Cutting rope II
How to write controller layer code gracefully?
QT learning 03 birth and essence of QT
QPainter的使用入门:绘制象棋界面
What is flush software? Is it safe to open an account online?
Sword finger offer 13 Range of motion of robot