10月 152018
 

47.52.163.213

VERSION=2.1.47 /bin/bash -c “$(curl -s https://cms-agent-cn-hongkong.oss-cn-hongkong-internal.aliyuncs.com/cms-go-agent/cms_go_agent_install.sh)”

[root@iZj6cd9flzbx5kd084fw97Z ~]# yum -y update

[root@iZj6cd9flzbx5kd084fw97Z ~]# hostnamectl set-hostname pms
[root@iZj6cd9flzbx5kd084fw97Z ~]# init 6

[root@pms ~]# yum -y install https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
[root@pms ~]# vi /etc/yum.repos.d/mysql-community.repo

[mysql56-community]
enabled=1

[mysql80-community]
enabled=0

[root@pms ~]# yum makecache

[root@pms ~]# yum install httpd php php-gd php-mbstring php-pdo php-mysql mysql-community-server mysql-community-client

[root@pms ~]# curl -O http://dl.cnezsoft.com/zentao/10.5/ZenTaoPMS.10.5.stable.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6718k 100 6718k 0 0 2854k 0 0:00:02 0:00:02 –:–:– 2855k
[root@pms ~]#

[root@pms ~]# yum -y install unzip

[root@pms ~]# unzip ZenTaoPMS.10.5.stable.zip
[root@pms ~]# mv zentaopms/ /usr/local/

[root@pms ~]# vi /etc/httpd/conf/httpd.conf
ServerName 127.0.0.1

[root@pms ~]# vi /etc/httpd/conf.d/zentaopms.conf
#<VirtualHost *:80>
# ServerName 149.28.192.83
# RewriteEngine On
# RewriteRule ^(.*)$ http://www.domain.com$1 [R,L]
#</VirtualHost>

<VirtualHost *:80>
ServerName 10.172.100.222
DocumentRoot “/usr/local/zentaopms/www”

ErrorLog “logs/zentaopms-error_log”
CustomLog “logs/zentaopms-access_log” combined

<Directory “/usr/local/zentaopms”>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

# RewriteEngine On
# RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L]
</VirtualHost>

#<VirtualHost *:80>
# ServerName 149.28.192.83
# RewriteEngine On
# RewriteRule ^(.*)$ http://www.domain.com$1 [R,L]
#</VirtualHost>

#<VirtualHost *:80>
# ServerName cn.paycpro.io
# DocumentRoot “/usr/local/www.domain.com”
#
# ErrorLog “logs/www.domain.com-error_log”
# CustomLog “logs/www.domain.com-access_log” combined
#
# <Directory “/usr/local/www.domain.com”>
# Options Indexes FollowSymLinks
# AllowOverride All
# Require all granted
# </Directory>

# RewriteEngine On
# RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L]
#</VirtualHost>

[root@pms ~]# vi /etc/php.ini
date.timezone = Asia/Shanghai

[root@pms ~]# apachectl -t
Syntax OK
[root@pms ~]#

[root@pms ~]# systemctl status httpd
● httpd.service – The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:httpd(8)
man:apachectl(8)
[root@pms ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@pms ~]# systemctl start httpd
[root@pms ~]#

[root@pms ~]# vi /etc/my.cnf
#
bind-address = 0.0.0.0
character-set-server = utf8mb4
log_bin = mysql-bin
binlog_format = mixed
expire_logs_days = 7

[root@pms ~]# systemctl status mysqld
● mysqld.service – MySQL Community Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: inactive (dead)
[root@pms ~]# systemctl start mysqld
[root@pms ~]#

[root@pms ~]# mysql -uroot -p

mysql> create database zentaopms;
Query OK, 1 row affected (0.00 sec)

mysql> grant all on zentaopms.* to zentaopms@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> set password for zentaopms@localhost=password(‘#sk3832EsoeqA’);
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye

[root@pms ~]# systemctl enable firewalld
Created symlink from /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service to /usr/lib/systemd/system/firewalld.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/firewalld.service to /usr/lib/systemd/system/firewalld.service.
[root@pms ~]# systemctl start firewalld
[root@pms ~]# firewall-cmd –list-all
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: ssh dhcpv6-client
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:

[root@pms ~]#

[root@pms ~]# firewall-cmd –permanent –add-service=http
success
[root@pms ~]# firewall-cmd –reload
success
[root@pms ~]# firewall-cmd –list-all
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: ssh dhcpv6-client http
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:

[root@pms ~]#

http://47.52.163.213/install.php

[root@pms ~]# cd /usr/local/zentaopms/www/
[root@pms www]# rm -rf index.php
[root@pms www]#

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据