• 新款树莓派4B开箱

    | /

    17640215326961.png
    6 月 24 日,位于英国的教育慈善组织「Raspberry Pi 基金会」推出了它们的新一代产品:树莓派 4(Raspberry Pi 4)
    得益于制程和架构的提升,4 代性能预计可比上代树莓派 3B+提升 2-4 倍。经过两个多月,终于拿到了现货,第一时间与大家分享。

  • 黑苹果教程

    | /

    以下指南是更新或安装新版macOS Mojave的完整演练。所有基本安装和安装工具都可以在tonymacx86.com上找到。本文是对其转载翻译。

    安装之前的准备

    1 登录tonymacx86账户!如果没有请注册一个(ps 下载软件需要登录)
    2 下载最新版本UniBeast MultiBeast
    3 购买一个16GB或更大的USB优盘
    4 对系统进行完整备份。我们强烈建议您使用Carbon Copy Cloner对现有系统执行完整备份。

    UniBeast是一个在mac系统中创建可启动安装程序的工具。 为了重新开始,您需要访问运行OS X Lion 10.7.5或更高版本的mac电脑。 这是一项硬要求,因为您需要访问Mac App Store才能下载macOS并创建安装驱动器。 要从头开始,直接启动10.6 Snow Leopard Retail DVD,请查看iBoot + MultiBeast。

  • Windows10,Version,1903,7月更新,MSDN镜像下载

    | /

    1c7c85002fd6b3b5.jpg
    消费者版(内含家庭版、家庭单语言版、教育版、专业版、专业教育版、专业工作站版):

    64位:

    文件名:cn_windows_10_consumer_editions_version_1903_updated_july_2019_x64_dvd_902aee25.iso
    SHA1:061669c93fe8cd1d37117cdbc9ba6373e9614d5d
    文件大小:4.89GB
    发布时间:2019-07-16

    1
    下载链接:ed2k://|file|cn_windows_10_consumer_editions_version_1903_updated_july_2019_x64_dvd_902aee25.iso|5246640128|BE0F718BD2CD3BED43FA7996F5CC7E7F|/
  • centos7安装zabbix4.0

    | /

    1.LAMP环境搭建
    1.1关闭SELinux

    1
    2
    3
    vi /etc/selinux/config    将SELINUX=enforcing改为SELINUX=disabled 设置后需要重启才能生效
    setenforce 0 临时关闭命令
    getenforce 检测selinux是否关闭,Disabled 为关闭
  • 安装cacti1.1到centos7

    | /

    1.安装LAMP环境
    CentOS 7, Apache 2.4, MariaDB 10.2, and PHP 7.1.

    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
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
     Install Apache 2.4
    sudo yum install httpd -y
    sudo sed -i 's/^/&/g' /etc/httpd/conf.d/welcome.conf
    sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/httpd.conf
    sudo systemctl start httpd.service
    sudo systemctl enable httpd.service
    sudo yum install httpd -y
    sudo sed -i 's/^/&/g' /etc/httpd/conf.d/welcome.conf
    sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/httpd.conf
    sudo systemctl start httpd.service
    sudo systemctl enable httpd.service
    Install MariaDB 10.2
    curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
    sudo yum install MariaDB-server MariaDB-client -y
    sudo systemctl start mariadb.service
    sudo systemctl enable mariadb.service

    Secure MariaDB 10.2
    sudo /usr/bin/mysql_secure_installation
    When prompted, answer questions as below:
    - Enter current password for root (enter for none): Just press the Enter button
    - Set root password? [Y/n]: Y
    - New password: your-MariaDB-root-password
    - Re-enter new password: your-MariaDB-root-password
    - Remove anonymous users? [Y/n]: Y
    - Disallow root login remotely? [Y/n]: Y
    - Remove test database and access to it? [Y/n]: Y
    - Reload privilege tables now? [Y/n]: Y

    Create a MariaDB database for Cacti
    mysql -u root -p
    For security purposes, be sure to replace "cacti", "cactiuser", and "yourpassword" with your own ones.
    CREATE DATABASE cacti;
    CREATE USER 'cactiuser'@'localhost' IDENTIFIED BY 'yourpassword';
    GRANT ALL PRIVILEGES ON cacti.* TO 'cactiuser'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;
    FLUSH PRIVILEGES;
    EXIT;

    Install required PHP 7.1 components for Cacti
    sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
    sudo yum install -y mod_php71w php71w-process php71w-common php71w-pdo php71w-xml php71w-ldap php71w-mbstring php71w-gd php71w-snmp php71w-mysqlnd php71w-cli php71w-mcrypt php71w-opcache php71w-imap php71w-intl
    sudo cp /etc/php.ini /etc/php.ini.bak
    sudo sed -i 's;date.timezone =date.timezone = America/Los_Angeles' /etc/php.ini

    Modify firewall rules
    sudo firewall-cmd --zone=public --permanent --add-service=http
    sudo firewall-cmd --reload
  • elasticsearch踩过的坑解决办法

    | /

    1、Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error=’Cannot allocate memory’ (errno=12)
    由于elasticsearch5.0默认分配jvm空间大小为2g,修改jvm空间分配

    1
    2
    3
    4
    5
    6
    vim config/jvm.options
    -Xms2g
    -Xmx2g
    修改为
    -Xms512m
    -Xmx512m

    2、max number of threads [1024] for user [elasticsearch] is too low, increase to at least [2048] 修改 /etc/security/limits.d/90-nproc.conf

    1
    2
    3
    soft nproc 1024

    soft nproc 2048
  • centos7.2 Elasticsearch 搭建

    | /

    关于Elasticsearch的资料有很多,但我搭建还是走了很多弯路,先记录下来以备遗忘,希望对你也能起到帮助

    Elasticsearch安装
    1.安装java8
    注意安装的是jdk

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    下载地址:http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html
    tar -zxvf jdk-8u161-linux-x64.tar.gz -C /usr/local/java 解压到指定文件夹
    vi /etc/profile 添加环境变量
    JAVA_HOME=/usr/local/java/jdk1.8.0_161
    JRE_HOME=/usr/local/java/jdk1.8.0_161/jre
    CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATHu
    PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
    source /etc/profile 启用设置
    java -version 测试是否成功,出现以下字符则成功
    java version "1.8.0_161"
    Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)