Step 1. First let’s start by ensuring your system is up-to-date.
yum –y update
Step 2. Installing Composer.
Download and install Composer by executing the following command:
- 列表項目 #3
kjlskf
sdfsdf
sdfsdf
sfsdf
sdf
sdf
Step 1. First let’s start by ensuring your system is up-to-date.
Step 2. Installing Composer.
Download and install Composer by executing the following command:
1.sudo yum -y install epel-release
2.sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
yum install yum-utilsyum-config-manager –enable remi-php71
3.sudo vi /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
4.sudo yum -y update
5.sudo yum -y install nginx mariadb-server git libpng12
7.sudo firewall-cmd –permanent –zone=public –add-service=http
8.sudo firewall-cmd –permanent –zone=public –add-service=https
9.sudo firewall-cmd –permanent –zone=public –add-service=ftp
10.sudo firewall-cmd –reload
11.sudo systemctl restart nginx
12.sudo systemctl enable nginx
13.sudo vi /etc/nginx/conf.d/lab.conf
14.sudo vi /etc/opt/remi/php71/php.ini
cgi.fix_pathinfo=0
15.sudo vi /etc /php-fpm.d/www.conf
user = nginx
group = nginx
listen.owner = nobody
listen.group = nobody
16.sudo systemctl restart php-fpm
17.sudo systemctl enable php-fpm
17-1 install composer
17-2 install nodejs
17-3 install yarn
18.
cd ~/.ssh
ssh-keygen -t rsa
git clone git@github.com:Alter-Studio/aopen.git
mkdir /usr/share/nginx/lab.web.aopen.com
19.copy alter source code to /usr/share/nginx/lab.web.aopen.com
19-1.yum install tomcat
19-2 run ‘composer install’ in folder /usr/share/nginx/lab.web.aopen.com/web
19-3 run ‘composer install’ in folder /usr/share/nginx/lab.web.aopen.com/web
19-4 run ‘yarn” in folder /usr/share/nginx/lab.web.aopen.com/web
19-5 run ‘yarn build:production” in folder /usr/share/nginx/lab.web.aopen.com/web
19-6 chown -R nginx:nginx /usr/share/nginx/lab.web.aopen.com/
20.sudo systemctl restart nginx
23. mysql_secure_installation24.mysql –u root –p25. create database alter_DB;26. grant all on alter_DB.* to ‘alter’@’localhost’ identified by ‘Aopen@1122’;27. flush privileges;28.exit
一 | 二 | 三 | 四 | 五 | 六 | 日 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |