- Reading speed cache/buffer:
hdparm
- Check cache reading speed:
hdparm
- Sequential write speed:
dd
- Check iops when random read/write (block 4K):
fio
- Command
grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /var/log/nginx/access.log
- Unique IPs
grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /var/log/nginx/access.log | sort | uniq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include 'simple_html_dom.php'; | |
function crawlDetail($url) | |
{ | |
$html = file_get_contents($url); | |
$html = str_get_html($html); | |
$info = []; |
Firstly, install the dev tools you’re doing to need.
yum -y groupinstall "Development Tools" yum -y install libev libev-devel zlib zlib-devel openssl openssl-devel git Next, we’re going to store a few things in /var/tmp and install the new version of openssl into /opt/openssl
mkdir /var/tmp cd /var/tmp wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz tar -zxf openssl-1.0.2-latest.tar.gz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version="3.4.1" | |
echo "Installing OpenCV" $version | |
mkdir OpenCV | |
cd OpenCV | |
echo "Removing any pre-installed ffmpeg and x264" | |
sudo apt-get -qq remove ffmpeg x264 libx264-dev | |
echo "Installing Dependenices" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop MySQL | |
```bash | |
sudo /etc/init.d/mysql start | |
``` | |
# Make MySQL service directory & give MySQL user permission to write to the service directory. | |
```bash | |
sudo mkdir /var/run/mysqld && sudo chown mysql: /var/run/mysqld | |
``` | |
# Start MySQL manually, without permission checks or networking. | |
```bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diskutil partitionDisk /dev/disk2 1 MBRFormat "MS-DOS FAT32" EDISON 805.30M` |
travis encrypt DOCKER_USER=<username> --add env.matrix
travis encrypt DOCKER_PASS=<password> --add env.matrix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -p "Type name config file vpn: " name_file | |
function getStatus () { | |
ifconfig | grep $1 && return 1 | |
return 0 | |
} | |
while [[ 1 ]]; do |
- Install Dev Tools, PHP, Nginx
sudo yum install nginx php php-fpm php-common gcc glibc glibc-common gd gd-devel make net-snmp unzip -y
sudo yum groupinstall 'Development Tools' -y
- Nginx – Nagios Configuration
cd /etc/nginx/conf.d
sudo vi nagios.conf
NewerOlder