本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
 
0
一、安装前环境Centos 7 最小化安装 | 4G内存 | 100GB硬盘注:Ansible-Tower目前支持7.4+的版本,可以使用yum update -y命令更新同时机器一定要联网,因为执行./setup的时候会联网安装很多的依赖包,安装速度和你的网速有关二、安装Ansible1.安装Ansible的epel源yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmyum update -y2.清空缓存,安装Ansibleyum clean allyum install -y ansible至此Ansible安装成功注意,将centos的yum源,更换成国内的比如163,阿里源。不然会出现软件不能下载问题。三、安装Ansible-Tower1.下载解压所需的安装包cd /homeyum install -y wgetwget http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gztar zxvf ansible-tower-setup-latest.tar.gz2.移动安装包到/usr/local下mv ansible-tower-setup-3.6.3/ /opt/ansible-tower3.配置inventory文件  进入/opt/ansible-tower目录下, 更改配置如下:# cat inventory [tower]localhost ansible_connection=local[database][all:vars]admin_password='admin' #增加,默认无pg_host=''pg_port=''pg_database='awx'pg_usernam...
  Ansible实现zookeeper集群安装 1.软件准备[root@node1 soft]# ll total 37535744 -rw-r--r-- 1 root root 255201772 Sep 19 10:15 flink-1.9.0-bin-scala_2.11.tgz -rw-r--r-- 1 root root 195094741 Jul 6 00:09 jdk-8u221-linux-x64.tar.gz -rw-r--r-- 1 root root 37535744 Sep 20 14:49 zookeeper-3.4.14.tar.gz 2.hosts配置[jdk] 172.17.16.4 172.17.16.12 172.17.16.13 #此处的index最终会写入到myid [zookeeper] 172.17.16.4 ansible_index=0 172.17.16.12 ansible_index=1 172.17.16.13 ansible_index=2 3.JDK安装见Ansible实现JDK批量安装4.yaml编写 - hosts: zookeeper   remote_user: root   vars:      name: "zookeeper"      install_path: /data/cloud      work_path: /data/work   tasks:    - name: "1.初始化工作目录"      shell: mkdir -p&n...
Centos6系统下tomcat7 jdk7 JSP网站连接oracle12c PDB数据库提示ORA-28040,ORA-01017解决方法oracle18c 数据库已经发布,在安装Oracle 18c数据库之后,客户端目前一般还是停留在10G、11G,如果客户端工具的版本是toad、plsql在连接12c、18c就会报如下两个错误:ORA-28040: No matching authentication protocolORA-01017: invalid username/password; logon denied如果是JAVA或是JSP程序,可以查看lib中的文件,将oracle中的ojdbc.jar(有可能修改了名称)替换下就行了。有些是java spring 需要将ojdbc.jar放到JDK或是tomcat对应目录下。一、ORA-28040报错解析:按照官方说法在服务端sqlnet.ora下需要添加如下参数。SQLNET.ALLOWED_LOGON_VERSION_CLIENTSQLNET.ALLOWED_LOGON_VERSION_SERVE注意:参数和等号之间不要有空格,否则有可能参数不生效。SQLNET.ALLOWED_LOGON_VERSION=8SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8SQLNET.ALLOWED_LOGON_VERSION_SERVE=10这里的n默认为11. 第一个参数是客户端连接到服务器的时候启作用,第二个是做为客户端去连接其它数据库的时候启作用。修改后使用reload 监听程序。# 修改该文件即可解决vi $ORACLE_HOME/network/admin/sqlnet.oraSQLNET...
1. Tomcat 7 配置MySQL JDBCStep1:修改apache-tomcat-7.0.75 conf/ server.xml 放入  <GlobalNamingResources> 标签中:    <Resource name="jdbc/Demo"      auth="Container"      type="javax.sql.DataSource"      factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"      testWhileIdle="true"      testOnBorrow="true"      testOnReturn="false"      validationInterval="30000"      timeBetweenEvictionRunsMillis="30000"      maxActive="100"      minIdle="10"      maxWait="10000"      initialSize="10"      removeAbandonedTim...
为什么要屏蔽版本?防止他人恶意扫描已知版本的漏洞,从而利用漏洞进行×××,造成不必要的损失。一、源码文件屏蔽版本1.修改源文件[root@localhost httpd-2.4.20]# vim include/ap_release.h修改以下内容:#define AP_SERVER_BASEVENDOR"Apache Software Foundation"#define AP_SERVER_BASEPROJECT "ApacheHTTP Server"#define AP_SERVER_BASEPRODUCT"Apache"#define AP_SERVER_MAJORVERSION_NUMBER 2#define AP_SERVER_MINORVERSION_NUMBER 2#define AP_SERVER_PATCHLEVEL_NUMBER 25#define AP_SERVER_DEVBUILD_BOOLEAN 0改为:#define AP_SERVER_BASEVENDOR"Kry" #服务器供应商名称#define AP_SERVER_BASEPROJECT "Web Server" #服务的项目名称#define AP_SERVER_BASEPRODUCT"Kry Web Server" #服务的产品名称#define AP_SERVER_MAJORVERSION_NUMBER 8 #主板本号#define AP_SERVER_MINORVERSION_NUMBER 8 #小版本号#define AP_SERVER_PATCHLEVEL_NUMBER 8 #补丁版本号#define AP_SERVER_DEVBUILD_BOOLEAN 02.测试效果[root@localhost httpd-2.4.20]# curl -I 192.168.0.146HTTP/1.1 200 OKDa...
Weblogic10.3.6反序列化漏洞补丁(3L3H)升级方案weblogic 补丁 20191015 ,p30109677_1036_Generic.zipweblogic 补丁 20191015 ,p30386660_122130_Generic.zip这是补丁包解压后的内容,3L3H是PATCH_ID,可以阅读readme,里面有介绍怎么安装卸载等在这里插入图片描述卸载补丁    Navigate to the {MW_HOME}/utils/bsu directory.    Execute bsu.sh -remove -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}$cd /home/weblogic/Oracle/Middleware/utils/bsu$./bsu.sh -remove -patchlist=MXLE -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3解压补丁unzip p30109677_1036_Generic.zip to {MW_HOME}/utils/bsu/cache_dirunzip p30109677_1036_Generic.zip to /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir报错(Archive: p30109677_1036_Generic.zipcaution: filename not matched: tocaution: filename not matched: /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir)执行命令,正确解压到指定目录$unzip p30109677_1036_Generic.zip -d /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir查看补丁$cd pwd /...
How to install NextCloud 16 server on CentOS 7.xNextCloud is a Dropbox-like solution for self-hosted file sharing and syncing. Installing NextCloud 16 on CentOS is quite simple. Whether you want to backup, have file-syncing or just have a Google Calendar alternative, this guide is for you.What is NextCloud? Is it like a “cloud”?If you stumbled here by chance and don’t know what NextCloud is, here is an article explaining its principal features and advantages/disadvantages. In this other article you can find NextCloud 16 new features. To tell you the truth, NextCloud is a SaaS cloud, if you want to know more about cloud types you can read this article.In this article we will cover the installation of the server (not the client).What’s the newest version?The newest version of this tutorial is the following:How to install NextCloud 17 server on CentOS 7.xLooking for an earlier version of this tutorial?How to install NextCloud 16 server on CentOS 7.xHow to install NextCloud 15 server ...
centos7/centos8安装owncloud10.3与onlyoffice在线文档编辑内部共享文档可以使用owncloud,但是要编辑文档的话,可以使用onlyoffice加ONLYOFFICE Desktop Editors。具体安装owncloud可以看这里 https://www.92cto.com/blog/2169.html . [root@k8s-master]#   cd /var/www/html/owncloud/ [root@k8s-master]#   cd apps/  [root@k8s-master]#   yum install git [root@k8s-master]#   git clone https://github.com/ONLYOFFICE/onlyoffice-owncloud.git onlyoffice [root@k8s-master]#   chown -R apache:apache onlyoffice我这里安装onlyoffice文档服务器,就直接使用阿里云的镜像服务,公开的镜像,可以自行搜索,或是直接使用官网的镜像。 [root@k8s ~]# podman run -i -t -d -p 7808:80 -p 7843:443 --name office-doc registry.cn-hangzhou.aliyuncs.com/thundersdata-public/onlyoffice-documentserver-chinese-fonts:5.4.0.214d22f593580a8814a3bd5171b7ddd47a53b4db89ff986daf0c0a9cabaa97f0ab[root@k8s ~]# [root@k8s ~]# podman psCONTAINER ID  IMAGE        &n...
 
0

ownCloud 基础优化

发表者:admin分类:应用服务2019-11-12 15:45:04 阅读[196]
ownCloud 基础优化 文章目录前言准备工作配置Redis配置 CRON配置HTTPS配置HSTS配置MemCache配置SMBClient前言安装完成之后发现点击管理后有几个小问题。事务文件锁定应配置为使用基于内存的锁定,而不是默认的基于慢速数据库的锁定。有关详细信息,请参阅 文档。我们建议启用系统 cron,任何其他 cron 方法可能对性能和可靠性有影响。您正在通过 HTTP 访问该站点,我们强烈建议您按照安全提示配置服务器强制使用 HTTPS。HTTP 严格传输安全(Strict-Transport-Security)报头未配置到至少“15552000”秒。处于增强安全性考虑,我们推荐按照安全提示启用 HSTS内存缓存未配置。如果可用,请配置 memcache 来增强性能。更多信息请查看我们的文档。更多安装信息请移步ownCloud 部署准备工作CA颁发的证书,我这里使用的是腾讯云的证书,也是用的亚洲诚信的证书。配置Redis1 2 3 4 #yum install php70w-pecl-redis -y //安装支持组件 #yum install redis-server -y //安装Redis #systemctl enable redis #systemctl start redis 1 #vim /var/www/html/owncloud/config/config.php //编辑ownCldou配置文件 加入 Redis Configure 字段中的内容1 2 3 4 5 6 7 8 ...
centos7.6安装配置owncloud10.3云网盘。注意系统最低centos7.5,最新本最好了。apache2.4,php7.2,mariadb. 下面最具体安装步骤。[root@k8s-master ~]#   cd /etc/yum.repos.d/[root@k8s-master ~]#   wget https://mirrors.aliyun.com/ius/ius-7.repo[root@k8s-master ~]#   wget https://mirrors.aliyun.com/ius/ius-archive-7.repo[root@k8s-master ~]#   yum install php72u-cli php72u-common php72u-devel php72u-mysql php72u-xml php72u-odbc php72u php72u-mysqlnd mariadb-server mariadb sqlite php72u-dom php72u-mbstring php72u-gd php72u-pdo httpd24u php72u-pecl-redis[root@k8s-master ~]#   systemctl enable httpd[root@k8s-master ~]#   systemctl start httpd [root@k8s-master ~]#   cd /var/www/html/[root@k8s-master ~]#   wget https://download.owncloud.org/community/owncloud-10.3.0.zip[root@k8s-master ~]#   yum install unzip[root@k8s-master ~]#   unzip owncloud-10.3.0.zip [root@k8s-master ~]#   chown -R a...
    总共36页,当前第1页 | 页数:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11