etc

fast-dfs

好久不见. 提交于 2020-01-02 18:30:03
安装 安装环境: yum -y install gcc gcc-c++ pcre-devel zlib-devel openssl ; 通过Xshell工具上传文件并解压: tar zxf fastdfs-5.05.tar.gz -C /data/server/; tar zxf libfastcommon-1.0.7.tar.gz -C /data/server/; tar zxf nginx-1.11.5.tar.gz -C /data/server/; unzip fastdfs-nginx-module-master.zip ; mv fastdfs-nginx-module-5e5f3566bbfa57418b5506aaefbe107a42c9fcb1 /data/server/fastdfs-nginx-module-master 编译安装fastdfs 安装libfastcommon cd /data/server/libfastcommon-1.0.7; ./make.sh && ./make.sh install; libfastcommon.so 默认安装到了/usr/lib64/libfastcommon.so,但是FastDFS主程序设置的lib目录是/usr/local/lib,所以创建链接: ln -s /usr/lib64/libfastcommon

[Android 問題] How to Activate Multi-Touch in WebView (for Web Browser, Google Map, etc)?

Deadly 提交于 2020-01-02 07:55:02
Android's native web browser is webkit based. Each front view of web is an object of WebView added by TabControl as the structure illustrated below: Android originally support multi-touch scenerio. In framworks/base/core/java/android/webkit/WebView.java, There is a function showed below checking if current environment support multi-touch. void updateMultiTouchSupport(Context context) { WebSettings settings = getSettings(); mSupportMultiTouch = context.getPackageManager().hasSystemFeature( PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH) && settings.supportZoom() && settings

Redhat6 RPM 软件管理常用命令汇总

ぐ巨炮叔叔 提交于 2020-01-02 05:59:29
  软件的安装时操作系统管理的基础,与Windows不同,Linux的软件管理有很多种方式,Redhat的最常用的是RPM方式,安装集成在光盘中的RPM包。这种方式比Windows平台的软件管理更加便捷(个人感觉,总体感觉Windows程序安装于卸载有点复杂),使用起来也更加的心用手。    1、Redhat中的rpm包的位置 —— 光盘目录中的 Package 目录全部都是。    2、RPM常用命令解读:     a、安装程序: rpm -ivh <软件包的绝对路径> #i为install;v,verbose;h,hash [root@asdf /]# rpm -ivh /media/RHEL_6.1\ i386\ Disc\ 1/Packages/vsftpd-2.2.2-6.el6_0.1.i686.rpm      b、卸载程序: rpm -e <软件名> [root@asdf /]# rpm -e vsftpd  # e => erase 、uninstall [root@asdf /]# rpm -q vsftpd #检测一下是否已卸载 package vsftpd is not installedrpm -aq|grep yum|xargs rpm -e --nodeps #卸载所有yum相关包      c、查询指定软件是否已安装: rpm -q <软件名> /

CentOS7部署NET Core应用程序

故事扮演 提交于 2020-01-02 05:03:06
1 将发布好的.net core 程序ftp上传到/home/netcore 目录 , 执行下面的命令 dotnet WebMVC.dll    2.测试程序是否运行正常 curl http://localhost:5000    3.配置nginx /etc/nginx/nginx.conf user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic modules. See /usr/share/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { worker_connections 1024; } http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on

编译安装LNMP

对着背影说爱祢 提交于 2020-01-01 23:38:32
软件:MySQL-5.7.2、PHP-7.1.5、Nginx-1.14.2 安装mysql: 卸载系统自身mariadb: [root@localhost ~]# rpm -qa |grep mariadb mariadb-libs-5.5.64-1.el7.x86_64 [root@localhost ~]# rpm -e mariadb-libs-5.5.64-1.el7.x86_64 --nodeps 安装依赖包: [root@localhost ~]# yum -y install make gcc-c++ cmake bison-devel ncurses-devel perl-Data-Dumper boost boost-doc boost-devel 创建源码目录: [root@localhost ~]# mkdir /home/tools && cd /home/tools 解压源码包: [root@localhost tools]# mv /root/mysql-boost-5.7.22.tar.gz . [root@localhost tools]# ll total 47840 -rw-r--r--. 1 root root 48985783 Jan 1 02:12 mysql-boost-5.7.22.tar.gz [root@localhost

egrep及文本处理工具

痴心易碎 提交于 2020-01-01 22:52:55
egrep 支持扩展正则表达式 使用方式和选项和grep一样 扩展正则表达式的元字符 字符匹配 次数匹配 位置锚定 分组或匹配 注:以上元字符和grep一样,但是转义字符“\”都没有了,除了:\<,\b,\>,\1以外 或:匹配整个左边或者整个右边 a|b:匹配a或者b C|cat:匹配C或者cat (C|c)at:匹配Cat或者cat 练习: 1,找出/proc/meminfo文件中,所有大写或小写s开头的行,至少三种方式 答案: grep -i "^s" /proc/meminfo grep "^[sS]" /proc/meminfo grep -E "^(s|S)" 2,显示当前系统上,root,centos和user1用户的默认shell 答案:grep -E "^(root|centos|user1)\>" /etc/passwd 3,找出/etc/rc.d/init.d/functions文件中某个单词后面跟一个小括号的行 答案:grep -E "[_[:alnum:]]+\(\)" /etc/rc.d/init.d/functions。注:这里括号前面加“\”表示括号本身。如果不加“_”,会把“_”左右当成两个单词。 4,使用echo命令输出一个绝对路径,使用egrep取出基名 答案:echo "/etc/sysconfig" | egrep -o "[^/]+/?$

Linux文本处理三剑客之grep

て烟熏妆下的殇ゞ 提交于 2020-01-01 22:52:22
我们了解到文本处理三剑客是grep,sed.awk。今天我们就来看看第一种grep,它是一种过滤工具,只读,不会改原文。在linux系统中怎么使用grep命令的正则表达式,还有它与egrep有什么区别和联系呢?Linux附有GNU grep命令工具,它支持扩展正则表达式。grep被用于搜索定位存储在您服务器或工作站上的任何信息。 一、grep 用法: 查找文件可以用:grep 关键字 文件 cat 文件 通过管道符| grep 关键字 下面来看一下grep的相关参数: --color=auto 关键字高亮显示(centos6里可以把它变成别名放在~/.bashrc里,centos7里面默认有) -v 关键字 显示不包含关键字的行 grep -v "/bin/bash" /etc/passwd -o 关键字 只显示关键字本身 root@centos6 ~]#grep -o "/bin/bash" /etc/passwd /bin/bash /bin/bash /bin/bash /bin/bash 注意 :如果写-o和 -v 一起,就不会显示东西了 我觉得因为是先显示匹配到的东西,然后再把里面的东西不匹配的显示,因为没有不匹配的,使用就不会显示东西了 [root@centos6 ~]#grep -vo "/bin/bash" /etc/passwd [root@centos6 ~]#

Linux下profile和bashrc区别

纵饮孤独 提交于 2020-01-01 13:57:26
Linux下profile和bashrc区别 1./etc/profile 用来设置系统环境参数,比如$PATH. 这里面的环境变量是对系统内所有用户生效的。 2./etc/bashrc 这个文件设置系统bash shell相关的东西,对系统内所有用户生效。只要用户运行bash命令,那么这里面的东西就在起作用。 3.~/.bash_profile 用来设置一些环境变量,功能和/etc/profile 类似,但是这个是针对用户来设定的,也就是说,你在/home/user1/.bash_profile 中设定了环境变量,那么这个环境变量只针对 user1 这个用户生效. 4.~/.bashrc 作用类似于/etc/bashrc, 只是针对用户自己而言,不对其他用户生效。 另外/etc/profile中设定的变量(全局)的可以作用于任何用户,而~/.bashrc等中设定的变量(局部)只能继承/etc/profile中的变量,他们是”父子”关系. 注! ~/.bash_profile 是交互式、login 方式进入 bash 运行的,意思是只有用户登录时才会生效。 ~/.bashrc 是交互式 non-login 方式进入 bash 运行的,用户不一定登录,只要以该用户身份运行命令行就会读取该文件。 来源: CSDN 作者: Coding Now 链接: https://blog.csdn

Mysql-Percona mysql5.7简单安装

戏子无情 提交于 2020-01-01 12:58:02
一、什么是Percona 单从mysql的角度来讲,可以把Percona理解为mysql的一个分支,因为mysql的源码是开源的,Percona就是在源码基础上对mysql做了一些改进,逐渐发展成了一条分支。其他分支还有mariadb等,都是mysql的分支,作为基础使用者,了解这么多就可以了,后续想深入了解,去看书吧。 二、Mysql5.7安装准备 1.基础信息: (1)可参考官方文档【https://www.percona.com/doc/percona-server/5.7/installation/yum_repo.html】 (2)环境信息 系统:Centos7.3 Mysql:Percona的Mysql5.7 2.安装方式: 这里选择yum安装,原因是没有特殊需求,yum安装比较快 三、部署Mysql5.7 1.关闭selinux及firewalld防火墙 如果不关闭,启动会受到影响!!!别问我为什么知道!!! # sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/sysconfig/selinux # setenforce 0  #关闭Selinux(强烈建议关闭)# systemctl stop firewalld# systemctl disable firewalld  #关闭firewalld防火墙 2

linux lnmp搭建

此生再无相见时 提交于 2020-01-01 05:16:44
文章目录 安装nginx 下载并安装nginx nginx安装后配置 安装mysql 安装php 安装nginx 下载并安装nginx //创建系统用户nginx [root@localhost ~]# useradd -r -M -s /sbin/nologin nginx //安装依赖环境 [root@localhost ~]# yum -y install pcre-devel openssl openssl-devel gd-devel gcc gcc-c++ 安装过程略.... [root@localhost ~]# yum -y groups mark install 'Development Tools' Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. There is no installed groups file. Maybe run: yum groups mark convert (see man yum) Marked install: