美文网首页
业务系统安装

业务系统安装

作者: 名C | 来源:发表于2018-08-01 14:52 被阅读0次

修改/etc/sudoers 添加nginx   ALL=(ALL)       NOPASSWD: ALL

安装源yum install -y

https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm

安装postgresql :  yum install -y postgresql10 postgresql10-server

之后运行/usr/pgsql-10/bin/postgresql-10-setup initdb

systemctl enable postgresql-10

复制pg_hba.conf 到/var/lib/pgsql/10/data  复制postgresql.conf 到/var/lib/pgsql/10/data/复制default.conf到/etc/nginx/conf.d/

复制www.conf到/etc/php-fpm.d/

复制default.conf 到/etc/nginx/conf.d/

www726.tar.gz解压覆盖到 /var

修改ip地址vi /var/www/.env

关闭防火墙

systemctl stop firewalld.service

systemctl disable firewalld.service

运行  systemctl restart nginx

systemctl restart php-fpm       

systemctl restart postgresql-10

chmod 755 /root

su postgres

psql

CREATE DATABASE was;              [注意结尾输入";"]

将was_726.sql导入到postgres数据库

psql -h $hostip -U postgres -f /root/was_726.sql was

后端部分:

yum -y install wget

安装python3.6

安装psycopg2(python3 连接postgres组件)

安装tcpdump

安装libpcap

复制window上的python后端文件夹ywsj_py内文件到/centos7的/root文件夹下

修改http_capture内的tcpdump文件夹地址

重启crondtcp添加定时任务:

crontab -e

SHELL=/bin/bash

*/1 * * * * nohup/root/http_capture.sh >/dev/null 2>&1

*/1 * * * * nohup/root/ywsj_http.sh >/dev/null 2>&1 &

*/1 * * * * nohup/root/txtosql.sh >/dev/null 2>&1 &

*/1 * * * * nohup/root/ywsj_user.sh >/dev/null 2>&1 &

*/1 * * * * nohup/root/ywsj_study.sh >/dev/null 2>&1 &

*/1 * * * * nohup/root/ywsj_stragey_handle.sh >/dev/null 2>&1 &

*/1 * * * * nohup/root/ywsj_stragey_custom.sh >/dev/null 2>&1 &

*/1 * * * * nohup/root/ywsj_stragey_power.sh >/dev/null 2>&1 &

*/1 * * * * nohup/root/ywsj_stragey_frequency.sh >/dev/null 2>&1 &

*/1 * * * * nohup/root/ywsj_stragey_websafe.sh >/dev/null 2>&1 &

0 * * * * nohup/root/keepromsic.sh >/dev/null 2>&1

*/1 * * * * nohup /root/netkeep.sh >/dev/null 2>&1 &

运行  systemctl restart nginx

systemctl restart php-fpm       

systemctl restart postgresql-10

相关文章

  • 业务系统安装

    修改/etc/sudoers 添加nginx ALL=(ALL) NOPASSWD: ALL 安装源yum ins...

  • 04 服务器上层软件架构

    1.服务器的系统安装和业务部署 服务器之上首先要做安装OS操作系统 Unix服务器操作系统系统有AIX、Solar...

  • appium 弹窗处理

    测试过程中遇到两类弹窗: 系统权限弹窗 具体业务弹窗 系统权限弹窗 Android 系统权限弹窗一般出现在安装 a...

  • 业务系统

  • 三大场景,让你快速“入坑”DevOps

    场景一 大型企业运维“攻城狮”,负责操作系统配置、中间件与业务系统的安装和升级。日常系统升级问题不断,即使按照文档...

  • 迭代系统——业务系统

    我们要有系统思维,要让系统运作,要设定控制点监控运转情况,要持续迭代系统。这个思想的本质是:掌控,寻求确定性。这是...

  • Win10/Ubuntu双系统安装/卸载及问题记录

    前言:因业务需要,在Win10的基础上安装Ubuntu16.04操作系统,后期因为系统版本问题不兼容的问题,卸载U...

  • 项目3.1

    安装部署文档的具体要求 1.安装部署工程师的具体职责 1.1 负责执行公司业务系统各环境版本发布相关工作;1.2 ...

  • 业务监控运维体系架构

    业务大盘 业务指标和系统指标、服务指标不同,需要业务方根据不同的业务自行上报监控数据。业务大盘作为业务运维系统的使...

  • 全新离线安装Laravel Homestead 记录

    之前安装的homestead系统版本为Ubuntu14.04,现业务需要,需升级为16.04,在虚拟机中直接升级完...

网友评论

      本文标题:业务系统安装

      本文链接:https://www.haomeiwen.com/subject/icfrvftx.html