标题:WP站 MYSQL 经常挂 my.cnf 怎么设置合适
作者:呆子
原帖:https://hostloc.com/thread-864173-1-1.html
摘要:210704 19:48:56 [Note] Plugin 'FEDERATED' is disabled. 210704 19:48:56 InnoDB: The InnoDB memory heap is disabled 210704 19:48:56 InnoDB: Mutexes and rw_locks use GCC atomic builtins 210704 19:48:56 InnoDB: Compressed tables use zlib 1.2.7 210704 19:48:56 InnoDB: Using Linux native AIO 210704 19:48:56 InnoDB: Initializing buffer pool, size = 4.0G InnoDB: mmap(4395630592 bytes) failed; errno 12 210704 19:48:56 InnoDB: Completed initialization of buffer pool 210704 19:48:56 InnoDB: Fatal error: cannot allocate memory for the buffer pool 210704 19:48:56 [ERROR] Plugin 'InnoDB' init function returned error. 210704 19:48:56 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 210704 19:48:56 [ERROR] Unknown/unsupported storage engine: InnoDB 210704 19:48:56 [ERROR] Aborting 210704 19:48:56 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete 210704 20:01:00 [Note] Plugin 'FEDERATED' is disabled. 210704 20:01:00 InnoDB: The InnoDB memory heap is disabled 210704 20:01:00 InnoDB: Mutexes and rw_locks use GCC atomic builtins 210704 20:01:00 InnoDB: Compressed tables use zlib 1.2.7 210704 20:01:00 InnoDB: Using Linux native AIO 210704 20:01:00 InnoDB: Initializing buffer pool, size = 4.0G 210704 20:01:00 InnoDB: Completed initialization of buffer pool 210704 20:01:00 InnoDB: highest supported file format is Barracuda. InnoDB: Log scan progressed past the checkpoint lsn 5049713926 210704 20:01:00 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... InnoDB: Doing recovery: scanned up to log sequence number 5049732334 InnoDB: 1 transaction(s) which must be rolled back or cleaned up InnoDB: in total 0 row operations to undo InnoDB: Trx id counter is 6161600 210704 20:01:00 InnoDB: Starting an apply batch of log records to the database... InnoDB: Progress in percents: 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 InnoDB: Apply batch completed InnoDB: Last MySQL binlog file position 0 27237979, file name ./mysql-bin.000025 InnoDB: Starting in background the rollback of uncommitted transactions 210704 20:01:01 InnoDB: Rolling back trx with id 616149B, 0 rows to undo 210704 20:01:01 InnoDB: Waiting for the background threads to start复制代码
以上是错误日志 后面手动重启的
配置为 E3-1270 v3 32G内存 SWAP分了32G
下面是my.cnf的设置 [client] #password = your_password port = 3306 socket = /tmp/mysql.sock [mysqld] port = 3306 socket = /tmp/mysql.sock datadir = /usr/local/mysql/var skip-external-locking key_buffer_size = 512M max_allowed_packet = 1M table_open_cache = 2048 sort_buffer_size = 8M net_buffer_length = 8K read_buffer_size = 8M read_rnd_buffer_size = 512K myisam_sort_buffer_size = 128M thread_cache_size = 256 query_cache_size = 256M tmp_table_size = 256M #skip-networking max_connections = 1000 max_connect_errors = 100 open_files_limit = 65535 log-bin=mysql-bin binlog_format=mixed server-id = 1 expire_logs_days = 7 default_storage_engine = InnoDB innodb_file_per_table = 1 innodb_data_home_dir = /usr/local/mysql/var innodb_data_file_path = ibdata1:10M:autoextend innodb_log_group_home_dir = /usr/local/mysql/var innodb_buffer_pool_size = 4096M innodb_additional_mem_pool_size = 2M innodb_log_file_size = 512M innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash [myisamchk] key_buffer_size = 4096M sort_buffer_size = 8M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout 复制代码
作者:呆子
原帖:https://hostloc.com/thread-864173-1-1.html
摘要:210704 19:48:56 [Note] Plugin 'FEDERATED' is disabled. 210704 19:48:56 InnoDB: The InnoDB memory heap is disabled 210704 19:48:56 InnoDB: Mutexes and rw_locks use GCC atomic builtins 210704 19:48:56 InnoDB: Compressed tables use zlib 1.2.7 210704 19:48:56 InnoDB: Using Linux native AIO 210704 19:48:56 InnoDB: Initializing buffer pool, size = 4.0G InnoDB: mmap(4395630592 bytes) failed; errno 12 210704 19:48:56 InnoDB: Completed initialization of buffer pool 210704 19:48:56 InnoDB: Fatal error: cannot allocate memory for the buffer pool 210704 19:48:56 [ERROR] Plugin 'InnoDB' init function returned error. 210704 19:48:56 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 210704 19:48:56 [ERROR] Unknown/unsupported storage engine: InnoDB 210704 19:48:56 [ERROR] Aborting 210704 19:48:56 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete 210704 20:01:00 [Note] Plugin 'FEDERATED' is disabled. 210704 20:01:00 InnoDB: The InnoDB memory heap is disabled 210704 20:01:00 InnoDB: Mutexes and rw_locks use GCC atomic builtins 210704 20:01:00 InnoDB: Compressed tables use zlib 1.2.7 210704 20:01:00 InnoDB: Using Linux native AIO 210704 20:01:00 InnoDB: Initializing buffer pool, size = 4.0G 210704 20:01:00 InnoDB: Completed initialization of buffer pool 210704 20:01:00 InnoDB: highest supported file format is Barracuda. InnoDB: Log scan progressed past the checkpoint lsn 5049713926 210704 20:01:00 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... InnoDB: Doing recovery: scanned up to log sequence number 5049732334 InnoDB: 1 transaction(s) which must be rolled back or cleaned up InnoDB: in total 0 row operations to undo InnoDB: Trx id counter is 6161600 210704 20:01:00 InnoDB: Starting an apply batch of log records to the database... InnoDB: Progress in percents: 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 InnoDB: Apply batch completed InnoDB: Last MySQL binlog file position 0 27237979, file name ./mysql-bin.000025 InnoDB: Starting in background the rollback of uncommitted transactions 210704 20:01:01 InnoDB: Rolling back trx with id 616149B, 0 rows to undo 210704 20:01:01 InnoDB: Waiting for the background threads to start复制代码
以上是错误日志 后面手动重启的
配置为 E3-1270 v3 32G内存 SWAP分了32G
下面是my.cnf的设置 [client] #password = your_password port = 3306 socket = /tmp/mysql.sock [mysqld] port = 3306 socket = /tmp/mysql.sock datadir = /usr/local/mysql/var skip-external-locking key_buffer_size = 512M max_allowed_packet = 1M table_open_cache = 2048 sort_buffer_size = 8M net_buffer_length = 8K read_buffer_size = 8M read_rnd_buffer_size = 512K myisam_sort_buffer_size = 128M thread_cache_size = 256 query_cache_size = 256M tmp_table_size = 256M #skip-networking max_connections = 1000 max_connect_errors = 100 open_files_limit = 65535 log-bin=mysql-bin binlog_format=mixed server-id = 1 expire_logs_days = 7 default_storage_engine = InnoDB innodb_file_per_table = 1 innodb_data_home_dir = /usr/local/mysql/var innodb_data_file_path = ibdata1:10M:autoextend innodb_log_group_home_dir = /usr/local/mysql/var innodb_buffer_pool_size = 4096M innodb_additional_mem_pool_size = 2M innodb_log_file_size = 512M innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash [myisamchk] key_buffer_size = 4096M sort_buffer_size = 8M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout 复制代码
标题:有时候就挺恨 现实中只是个小学生
作者:白嫖怪
原帖:https://hostloc.com/thread-864176-1-1.html
摘要:有时候就挺恨
现实中只是个小学生
只能看着有钱有权的逍遥快活
啥都没有能力改变
只好到loc刷刷贴
消磨时间
时不时喷喷人
刷刷存在感
秀秀优越感
作者:白嫖怪
原帖:https://hostloc.com/thread-864176-1-1.html
摘要:有时候就挺恨
现实中只是个小学生
只能看着有钱有权的逍遥快活
啥都没有能力改变
只好到loc刷刷贴
消磨时间
时不时喷喷人
刷刷存在感
秀秀优越感
标题:分享一下正在实施的X站站群建设规划
作者:netkool
原帖:https://hostloc.com/thread-864180-1-1.html
摘要:准备100套模板,建100个站,这100个站定为一组。
每个站用10个1刀的域名,半年换一次。每个站每年20个。每组计2000个。
网页处理时间优化到0.000x秒,对服务器性能要求不高,暂定40刀的VPS。
最终开销是域名2000刀/年=14000R/年。
机器480刀/年=3500/年。
每组成本计1.8万/年。
预计保底能拿到10万IP/日,收益约30万/月,360万/年。
收益支出比为200倍,很可观。
即使退一万步,每组只拿到1万IP/日,收益支出比仍然能到20倍。
不过我还是有把握拿到10万IP的。
目前正在以每天3套的速度扒模板,先扒到100套。
不出意外的话,至少会建起几十组。
几乎所有的流程都由脚本自动化维护。
每个组内的站之间互相导量,最大限度的把流量留在自己的站群里。
最终能达到多少流量规模很大程度上取决于入口流量,路子需要广一些。
欢迎肉身在外的大佬们一起交流~
作者:netkool
原帖:https://hostloc.com/thread-864180-1-1.html
摘要:准备100套模板,建100个站,这100个站定为一组。
每个站用10个1刀的域名,半年换一次。每个站每年20个。每组计2000个。
网页处理时间优化到0.000x秒,对服务器性能要求不高,暂定40刀的VPS。
最终开销是域名2000刀/年=14000R/年。
机器480刀/年=3500/年。
每组成本计1.8万/年。
预计保底能拿到10万IP/日,收益约30万/月,360万/年。
收益支出比为200倍,很可观。
即使退一万步,每组只拿到1万IP/日,收益支出比仍然能到20倍。
不过我还是有把握拿到10万IP的。
目前正在以每天3套的速度扒模板,先扒到100套。
不出意外的话,至少会建起几十组。
几乎所有的流程都由脚本自动化维护。
每个组内的站之间互相导量,最大限度的把流量留在自己的站群里。
最终能达到多少流量规模很大程度上取决于入口流量,路子需要广一些。
欢迎肉身在外的大佬们一起交流~
标题:终于知道国内破解开心为什么那么多了
作者:会翻车吗
原帖:https://hostloc.com/thread-864182-1-1.html
摘要:有些正版作者就是贱的不行,一个功能拆好几份卖,搞的很复杂乱七八糟,花的钱还用不了,还要继续花很多钱,先花的钱也退不了。我以前一直很反感开心版,经过今天这么一折腾我就想说某些不良正版开发者说,活该被开心
作者:会翻车吗
原帖:https://hostloc.com/thread-864182-1-1.html
摘要:有些正版作者就是贱的不行,一个功能拆好几份卖,搞的很复杂乱七八糟,花的钱还用不了,还要继续花很多钱,先花的钱也退不了。我以前一直很反感开心版,经过今天这么一折腾我就想说某些不良正版开发者说,活该被开心
标题:关于滴滴的事情,为啥有那么多的人越俎代庖....
作者:乌溜溜的黑眼猪
原帖:https://hostloc.com/thread-864183-1-1.html
摘要:滴滴究竟犯了什么法规,官方有定性,有处理办法。
目前发出来的信息是:经检测核实,“滴滴出行”App存在严重违法违规收集使用个人信息问题。”
我看好多人再传滴滴泄露机密数据给美国!
究竟泄露没泄露,官方会查
是罚酒三杯还是高层大换血亦是直接封杀,请问你真的有话语权吗?
这可是涉及机密的事情哦,倘若真要涉及机密信息,你觉得你有机会知道?
你也配姓那个姓?别太把自己当阿Q了,老老实实的关心院士被打就好了....
作者:乌溜溜的黑眼猪
原帖:https://hostloc.com/thread-864183-1-1.html
摘要:滴滴究竟犯了什么法规,官方有定性,有处理办法。
目前发出来的信息是:经检测核实,“滴滴出行”App存在严重违法违规收集使用个人信息问题。”
我看好多人再传滴滴泄露机密数据给美国!
究竟泄露没泄露,官方会查
是罚酒三杯还是高层大换血亦是直接封杀,请问你真的有话语权吗?
这可是涉及机密的事情哦,倘若真要涉及机密信息,你觉得你有机会知道?
你也配姓那个姓?别太把自己当阿Q了,老老实实的关心院士被打就好了....
标题:作为全球主机论坛为啥论坛利全是笨蛋国人,,老外呢
作者:安浩哟捏碎
原帖:https://hostloc.com/thread-864188-1-1.html
摘要:论坛都十几年了至今都没看见过一个老外,,,????,,太假了吧
作者:安浩哟捏碎
原帖:https://hostloc.com/thread-864188-1-1.html
摘要:论坛都十几年了至今都没看见过一个老外,,,????,,太假了吧
标题:真实经历告诉你“滴滴”过度收集隐私的案例
作者:乌溜溜的黑眼猪
原帖:https://hostloc.com/thread-864191-1-1.html
摘要:发帖立场声明:狗与ID:白**怪,请勿回帖,谢谢配合!请做一个说到做到的“人”,既然发帖加黑名单了,那就实实在在的加上去。
滴滴新出企业版,个人中心已完成实名认证,自费打车却还要再次人脸,且无论如何总是失败
然后让上传个人实人照片,审核后依旧失败
如此反复,找到客服处理了好几次,依旧不行。
直到最后一次,客服才说是设置问题,只要更新下设置里相关功能就行了
这不是就是过度采集个人信息吗?
作者:乌溜溜的黑眼猪
原帖:https://hostloc.com/thread-864191-1-1.html
摘要:发帖立场声明:狗与ID:白**怪,请勿回帖,谢谢配合!请做一个说到做到的“人”,既然发帖加黑名单了,那就实实在在的加上去。
滴滴新出企业版,个人中心已完成实名认证,自费打车却还要再次人脸,且无论如何总是失败
然后让上传个人实人照片,审核后依旧失败
如此反复,找到客服处理了好几次,依旧不行。
直到最后一次,客服才说是设置问题,只要更新下设置里相关功能就行了
这不是就是过度采集个人信息吗?
标题:为什么那么多卖aws账号的?
作者:张无忌
原帖:https://hostloc.com/thread-864194-1-1.html
摘要:免费的貌似就15G ec2可以挂个探针玩玩?
其他的没啥好玩的了吧
作者:张无忌
原帖:https://hostloc.com/thread-864194-1-1.html
摘要:免费的貌似就15G ec2可以挂个探针玩玩?
其他的没啥好玩的了吧
标题:哔哩哔哩周年大会员活动,我的才多送105天,有必要上么?
作者:mymyhope
原帖:https://hostloc.com/thread-864196-1-1.html
摘要:我的才多送105天,有必要上么?
https://www.bilibili.com/blackboard/activity-YHpJu7nSgp.html?msource=dhypc&spm_id_from=333.33.b_6163636f756e7456697042616e6e6572.1
作者:mymyhope
原帖:https://hostloc.com/thread-864196-1-1.html
摘要:我的才多送105天,有必要上么?
https://www.bilibili.com/blackboard/activity-YHpJu7nSgp.html?msource=dhypc&spm_id_from=333.33.b_6163636f756e7456697042616e6e6572.1
标题:明盘255,出RN3C5G新年20.21款
作者:撞破南墙
原帖:https://hostloc.com/thread-864195-1-1.html
摘要:年初的时候接触vps,本来是买来练手的,后来把家里的旧电脑改成了服务器,也还能用。这个机子就没意思了,想出了。
具体配置如下:
2021 RackNerd新年 - 闪售第一波
3 个核心
60 GB SSD 硬盘
5 GB 内存
7,000 GB 月流量
1Gbps 带宽
1 个IPv4
可选机房:圣何塞,洛杉矶DC-02 (DC-02为SSD Cached硬盘)
闪售价格: $20.21 /年,续费同价
另外:机房洛杉矶DC-02、流量已翻倍14T
明盘255。
联系方式:VX:zyanjunnn
作者:撞破南墙
原帖:https://hostloc.com/thread-864195-1-1.html
摘要:年初的时候接触vps,本来是买来练手的,后来把家里的旧电脑改成了服务器,也还能用。这个机子就没意思了,想出了。
具体配置如下:
2021 RackNerd新年 - 闪售第一波
3 个核心
60 GB SSD 硬盘
5 GB 内存
7,000 GB 月流量
1Gbps 带宽
1 个IPv4
可选机房:圣何塞,洛杉矶DC-02 (DC-02为SSD Cached硬盘)
闪售价格: $20.21 /年,续费同价
另外:机房洛杉矶DC-02、流量已翻倍14T
明盘255。
联系方式:VX:zyanjunnn
标题:卖玉米咯 看上联系哟
作者:博弈
原帖:https://hostloc.com/thread-864197-1-1.html
摘要:tzdr.com 投资达人
xycz.com
fpfn.com
osbz.com 系统帮助
ytmk.com
gmmm.cn 国漫美眉
dzms.cn 电子门锁 大众美食
sxwg.cn 数学王国
nsqy.cn
yunyu.com.cn 孕育
ehr.cc e人力
pinyun.net 品云
1466.com.cn 数字米 88块起
看上的可以联系
作者:博弈
原帖:https://hostloc.com/thread-864197-1-1.html
摘要:tzdr.com 投资达人
xycz.com
fpfn.com
osbz.com 系统帮助
ytmk.com
gmmm.cn 国漫美眉
dzms.cn 电子门锁 大众美食
sxwg.cn 数学王国
nsqy.cn
yunyu.com.cn 孕育
ehr.cc e人力
pinyun.net 品云
1466.com.cn 数字米 88块起
看上的可以联系
标题:我发现贴吧很有意思,里面很多司机,没有检查玩,好后...
作者:ZhènJīngBù
原帖:https://hostloc.com/thread-864199-1-1.html
摘要:我是新注册的一个号,然后一打开就给我推荐那种老司机的帖子,看一半反手就是关注这个吧,请问下mjj你们有没有更多有意思的吧啊?
作者:ZhènJīngBù
原帖:https://hostloc.com/thread-864199-1-1.html
摘要:我是新注册的一个号,然后一打开就给我推荐那种老司机的帖子,看一半反手就是关注这个吧,请问下mjj你们有没有更多有意思的吧啊?