blog-comments's People
blog-comments's Issues
logrotate 的設定翻譯 | 窮得只剩技術
logrotate 的設定翻譯 | 窮得只剩技術
logrotate 是一個自動分割、打包檔案的工具
log檔案會隨著時間日益增大
不止不好查看
大到一個程度寫入Log效能也會變差
所以需要 logrotate 來幫忙分割打包壓縮處理
有鑒於網路上都是分享自己的設定
並沒有一個很全面的說明
所以我就把 man logrotate 的設定翻譯一下
https://blog.iphpo.com/blog/2017/11/logrotate-%E7%9A%84%E8%A8%AD%E5%AE%9A%E7%BF%BB%E8%AD%AF/
MacOS X 下 docker-compose 速度非常慢的解決方法 | 窮得只剩技術
MacOS X 下 docker-compose 速度非常慢的解決方法 | 窮得只剩技術
每次執行 docker-compose up
跟docker-compose down
速度都超級慢
正常來講
幾秒鐘之內就可以關掉好幾個container
但在我家電腦要花最少一分鐘以上
這速度真是無法忍受
搜尋後找到神奇的答案
[Ubuntu] MySQL 5.7 無痛升級到 8.0 |
[Ubuntu] MySQL 5.7 無痛升級到 8.0 |
依照官方建議一步一步來升級吧 檢查是否能升級 首先先檢查是否能升級 mysqlcheck -u root -p --all-databases --check-upgrade 我運氣不錯,全部都是ok 按照官方文件 不能有在不支援partition的engine做partition SELECT TABLE_SCHEMA, TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE ENGINE NOT IN ('innodb', 'ndbcluster') AND CREATE_OPTIONS LIKE '%partitioned%'; 也不能有table名字是8.0的保留字 SELECT TABLE_SCHEMA, TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE LOWER(TABLE_SCHEMA) = 'mysql' and LOWER(TABLE_NAME) IN ( 'catalogs', 'character_sets', 'check_constraints', 'collations', 'column_statistics', 'column_type_elements', 'columns', 'dd_properties', 'events', 'foreign_key_column_usage', 'foreign_keys', 'index_column_usage', 'index_partitions', 'index_stats', 'indexes', 'parameter_type_elements', 'parameters', 'resource_groups', 'routines', 'schemata', 'st_spatial_reference_systems', 'table_partition_values', 'table_partitions', 'table_stats', 'tables', 'tablespace_files', 'tablespaces', 'triggers', 'view_routine_usage', 'view_table_usage' ); 也不能有foreign key名字長度大於64 SELECT TABLE_SCHEMA, TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME IN (SELECT LEFT(SUBSTR(ID,INSTR(ID,'/')+1), INSTR(SUBSTR(ID,INSTR(ID,'/')+1),'ibfk')-1) FROM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.