ps aux --sort rss | grep php | tail
[www]
user = nginx
group = nginx
listen = /var/run/php-fpm/php-fpm.sock
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
slowlog = /var/log/php-fpm/www-slow.log
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /var/tmp
env[TMPDIR] = /var/tmp
env[TEMP] = /var/tmp
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 128M
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
[--] Skipped version check for MySQLTuner script
Please enter your MySQL administrative login: ;;;_app
Please enter your MySQL administrative password: [!!] failed to execute: SHOW SLAVE STATUS\G
[!!] FAIL Execute SQL / return code: 256
[!!] failed to execute: SHOW SLAVE HOSTS
[!!] FAIL Execute SQL / return code: 256
[OK] Currently running supported MySQL version 5.6.42
[OK] Operating on 64-bit architecture
-------- Log file Recommendations ------------------------------------------------------------------
[--] Log file: /var/log/mysqld.log(259K)
[OK] Log file /var/log/mysqld.log exists
[OK] Log file /var/log/mysqld.log is readable.
[OK] Log file /var/log/mysqld.log is not empty
[OK] Log file /var/log/mysqld.log is smaller than 32 Mb
[!!] /var/log/mysqld.log contains 7 warning(s).
[!!] /var/log/mysqld.log contains 80 error(s).
[--] 50 start(s) detected in /var/log/mysqld.log
[--] 1) 2019-02-28 06:49:23 2067 [Note] /usr/sbin/mysqld: ready for connections.
[--] 2) 2019-02-28 06:16:37 2066 [Note] /usr/sbin/mysqld: ready for connections.
[--] 3) 2019-02-28 06:07:36 2068 [Note] /usr/sbin/mysqld: ready for connections.
[--] 4) 2019-02-28 06:05:43 2889 [Note] /usr/sbin/mysqld: ready for connections.
[--] 5) 2019-02-19 04:24:41 2066 [Note] /usr/sbin/mysqld: ready for connections.
[--] 6) 2019-02-10 03:56:50 2066 [Note] /usr/sbin/mysqld: ready for connections.
[--] 7) 2019-02-06 09:09:50 2127 [Note] /usr/sbin/mysqld: ready for connections.
[--] 8) 2019-02-04 04:32:17 2067 [Note] /usr/sbin/mysqld: ready for connections.
[--] 9) 2019-02-02 03:43:19 2067 [Note] /usr/sbin/mysqld: ready for connections.
[--] 10) 2019-02-02 03:37:14 21984 [Note] /usr/sbin/mysqld: ready for connections.
[--] 46 shutdown(s) detected in /var/log/mysqld.log
[--] 1) 2019-02-28 06:48:40 2066 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 2) 2019-02-28 06:15:54 2068 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 3) 2019-02-28 06:05:51 2944 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 4) 2019-02-19 04:23:53 2066 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 5) 2019-02-10 03:56:06 2127 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 6) 2019-02-04 04:31:32 2067 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 7) 2019-02-02 03:37:19 22024 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 8) 2019-01-20 01:50:51 2066 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 9) 2018-12-31 04:02:53 2064 [Note] /usr/sbin/mysqld: Shutdown complete
[--] 10) 2018-12-30 05:58:28 2066 [Note] /usr/sbin/mysqld: Shutdown complete
-------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
[--] Data in InnoDB tables: 70.8M (Tables: 49)
[OK] Total fragmented tables: 0
-------- Analysis Performance Metrics --------------------------------------------------------------
[--] innodb_stats_on_metadata: OFF
[OK] No stat updates during querying INFORMATION_SCHEMA.
-------- Security Recommendations ------------------------------------------------------------------
[!!] failed to execute: SELECT CONCAT(user, '@', host) FROM mysql.user WHERE TRIM(USER) = '' OR USER IS NULL
[!!] FAIL Execute SQL / return code: 256
[OK] There are no anonymous accounts for any database users
[!!] failed to execute: SELECT CONCAT(user, '@', host) FROM mysql.user WHERE (password = '' OR password IS NULL) AND plugin NOT IN ('unix_socket', 'win_socket', 'auth_pam_compat')
[!!] FAIL Execute SQL / return code: 256
[OK] All database users have passwords assigned
[!!] failed to execute: SELECT CONCAT(user, '@', host) FROM mysql.user WHERE CAST(password as Binary) = PASSWORD(user) OR CAST(password as Binary) = PASSWORD(UPPER(user)) OR CAST(password as Binary) = PASSWORD(CONCAT(UPPER(LEFT(User, 1)), SUBSTRING(User, 2, LENGTH(User))))
[!!] FAIL Execute SQL / return code: 256
[!!] failed to execute: SELECT CONCAT(user, '@', host) FROM mysql.user WHERE HOST='%'
[!!] FAIL Execute SQL / return code: 256
[!!] There is no basic password file list!
-------- CVE Security Recommendations --------------------------------------------------------------
[--] Skipped due to --cvefile option undefined
[!!] failed to execute: SHOW ENGINE PERFORMANCE_SCHEMA STATUS
[!!] FAIL Execute SQL / return code: 256
[!!] failed to execute: SHOW ENGINE PERFORMANCE_SCHEMA STATUS
[!!] FAIL Execute SQL / return code: 256
-------- Performance Metrics -----------------------------------------------------------------------
[--] Up for: 16h 30m 47s (425K q [7.150 qps], 22K conn, TX: 2G, RX: 72M)
[--] Reads / Writes: 95% / 5%
[--] Binary logging is disabled
[--] Physical Memory : 1.8G
[--] Max MySQL memory : 1.2G
[--] Other process memory: 0B
[--] Total buffers: 1.0G global + 1.1M per thread (136 max threads)
[!!] failed to execute: SHOW ENGINE PERFORMANCE_SCHEMA STATUS
[!!] FAIL Execute SQL / return code: 256
[--] P_S Max memory usage: 0B
[!!] failed to execute: SHOW ENGINE PERFORMANCE_SCHEMA STATUS
[!!] FAIL Execute SQL / return code: 256
[!!] failed to execute: SHOW ENGINE PERFORMANCE_SCHEMA STATUS
[!!] FAIL Execute SQL / return code: 256
[--] Galera GCache Max memory usage: 0B
[OK] Maximum reached memory usage: 1.1G (57.84% of installed RAM)
[OK] Maximum possible memory usage: 1.2G (65.27% of installed RAM)
[OK] Overall possible memory usage with other process is compatible with memory available
[OK] Slow queries: 0% (0/425K)
[OK] Highest usage of available connections: 8% (12/136)
[OK] Aborted connections: 0.00% (1/22885)
[!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
[OK] Query cache is disabled by default due to mutex contention on multiprocessor machines.
[OK] Sorts requiring temporary tables: 0% (173 temp sorts / 47K sorts)
[!!] Joins performed without indexes: 11927
[!!] Temporary tables created on disk: 88% (307 on disk / 348 total)
[OK] Thread cache hit rate: 99% (15 created / 22K connections)
[OK] Table cache hit rate: 94% (129 open / 136 opened)
[OK] Open file limit used: 0% (18/5K)
[OK] Table locks acquired immediately: 100% (490K immediate / 490K locks)
-------- Performance schema ------------------------------------------------------------------------
[!!] failed to execute: SHOW ENGINE PERFORMANCE_SCHEMA STATUS
[!!] FAIL Execute SQL / return code: 256
[--] Memory used by P_S: 0B
[--] Sys schema isn't installed.
-------- ThreadPool Metrics ------------------------------------------------------------------------
[--] ThreadPool stat is disabled.
-------- MyISAM Metrics ----------------------------------------------------------------------------
[!!] Key buffer used: 18.2% (3M used / 16M cache)
[!!] Cannot calculate MyISAM index size - re-run script as root user
-------- InnoDB Metrics ----------------------------------------------------------------------------
[--] InnoDB is enabled.
[--] InnoDB Thread Concurrency: 0
[OK] InnoDB File per table is activated
[OK] InnoDB buffer pool / data size: 1.0G/70.8M
[!!] Ratio InnoDB log file size / InnoDB Buffer pool size (9.375 %): 48.0M * 2/1.0G should be equal 25%
[!!] InnoDB buffer pool <= 1G and Innodb_buffer_pool_instances(!=1).
[--] InnoDB Buffer Pool Chunk Size not used or defined in your version
[OK] InnoDB Read buffer efficiency: 100.00% (97403768 hits/ 97407993 total)
[!!] InnoDB Write Log efficiency: 68.35% (5933 hits/ 8680 total)
[OK] InnoDB log waits: 0.00% (0 waits / 14613 writes)
-------- AriaDB Metrics ----------------------------------------------------------------------------
[--] AriaDB is disabled.
-------- TokuDB Metrics ----------------------------------------------------------------------------
[--] TokuDB is disabled.
-------- XtraDB Metrics ----------------------------------------------------------------------------
[--] XtraDB is disabled.
-------- Galera Metrics ----------------------------------------------------------------------------
[--] Galera is disabled.
-------- Replication Metrics -----------------------------------------------------------------------
[--] Galera Synchronous replication: NO
[--] No replication slave(s) for this server.
[--] Binlog format: STATEMENT
[--] XA support enabled: ON
[--] Semi synchronous replication Master: Not Activated
[--] Semi synchronous replication Slave: Not Activated
[--] This is a standalone server
-------- Recommendations ---------------------------------------------------------------------------
General recommendations:
Control warning line(s) into /var/log/mysqld.log file
Control error line(s) into /var/log/mysqld.log file
MySQL was started within the last 24 hours - recommendations may be inaccurate
Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
Adjust your join queries to always utilize indexes
When making adjustments, make tmp_table_size/max_heap_table_size equal
Reduce your SELECT DISTINCT queries which have no LIMIT clause
Consider installing Sys schema from https://github.com/mysql/mysql-sys for MySQL
Consider installing Sys schema from https://github.com/good-dba/mariadb-sys for MariaDB
Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
Variables to adjust:
join_buffer_size (> 256.0K, or always use indexes with JOINs)
tmp_table_size (> 16M)
max_heap_table_size (> 16M)
innodb_log_file_size should be (=128M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
innodb_buffer_pool_instances (=1)
#сейчас
MAILTO=root
0 0 * * * /script/mysqlbackuptos3.sh > /dev/null
0 2 * * * duply /etc/duply/main backup
[telepathy-mod-on]
[/telepathy-mod-on]
Как разоврачивать локалку - к докам денвера/nginx/vagrant box или того что у вас планируется использовать
Как клонить / пушить - https://git-scm.com/book/ru/v2
Как миксовать - к докам ларавель