时间:2023-05-09 08:15:02 | 来源:网站运营
时间:2023-05-09 08:15:02 来源:网站运营
如何永久免费的运行一个网站?:除却域名的年费,我的博客站点是运行在云服务器上,如果没有意外,维护的费用应该是零。永远免费 Always Free
选项的云服务器提供商,其它云服务商应该只提供12个月免费使用选项给新用户。永远免费
选项仅能是使用一个性能超弱的实例:apt-get install mysql-server
之后报错,看/var/log/mysql/error.log
,显示:2018-08-12T17:55:07.393408Z 0 [System] [MY-013170] [Server] /usr/sbin/mysqld (mysqld 8.0.12) initializing of server has completed2018-08-12T17:55:11.130992Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.12) starting as process 31122018-08-12T17:55:11.782754Z 0 [ERROR] [MY-012681] [InnoDB] InnoDB: mmap(137428992 bytes) failed; errno 122018-08-12T17:55:11.782817Z 1 [ERROR] [MY-012956] [InnoDB] InnoDB: Cannot allocate memory for the buffer pool2018-08-12T17:55:11.782832Z 1 [ERROR] [MY-012930] [InnoDB] InnoDB: Plugin initialization aborted with error Generic error.2018-08-12T17:55:11.782886Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine2018-08-12T17:55:11.784009Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.2018-08-12T17:55:11.784055Z 0 [ERROR] [MY-010119] [Server] Aborting2018-08-12T17:55:11.789921Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.12) MySQL Community Server - GPL.2018-08-12T17:56:06.388162Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.12) starting as process 32762018-08-12T17:56:07.253414Z 0 [ERROR] [MY-012681] [InnoDB] InnoDB: mmap(137428992 bytes) failed; errno 122018-08-12T17:56:07.253518Z 1 [ERROR] [MY-012956] [InnoDB] InnoDB: Cannot allocate memory for the buffer pool2018-08-12T17:56:07.253535Z 1 [ERROR] [MY-012930] [InnoDB] InnoDB: Plugin initialization aborted with error Generic error.2018-08-12T17:56:07.253564Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine2018-08-12T17:56:07.255109Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.2018-08-12T17:56:07.255993Z 0 [ERROR] [MY-010119] [Server] Aborting2018-08-12T17:56:07.320087Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.12) MySQL Community Server - GPL.
直接内存不足,mysqld无法启动。/etc/mysql/mysql.conf.d/mysqld.cnf
文件,在结尾增加:performance_schema = off
一行,禁用performance_schema
节省内存占用,mysql才得以正常启动。apt-get install nginx
即可。$ cat /proc/16537/statusName: goblogUmask: 0002State: S (sleeping)Tgid: 16537Ngid: 0Pid: 16537PPid: 16403TracerPid: 0Uid: 1001 1001 1001 1001Gid: 1002 1002 1002 1002FDSize: 256Groups: 4 20 24 25 29 30 44 46 108 114 1000 1001 1002NStgid: 16537NSpid: 16537NSpgid: 16537NSsid: 16403VmPeak: 16820 kBVmSize: 16820 kBVmLck: 0 kBVmPin: 0 kBVmHWM: 13356 kBVmRSS: 9564 kBRssAnon: 5720 kBRssFile: 3844 kBRssShmem: 0 kBVmData: 8920 kBVmStk: 132 kBVmExe: 4320 kBVmLib: 8 kBVmPTE: 80 kBVmSwap: 0 kB$ free -h total used free shared buff/cache availableMem: 581M 352M 66M 900K 162M 135MSwap: 0B 0B 0B
关键词:运行,永久,免费