TencentOS Server is Tencent's copy cat version of RHEL 8. Compare with Ali's OpenAnolis, TencentOS seems more open, at least the kernel can be found at Github, but same as many China big internet company, the source code is open source once a year. I try to install my familiar Rails web framework on it and here is the log.
OpenAnolis released as alternative distribute linux of CentOS. After got a server at Aliyun double 11 sales, I try to install my familiar Rails web framework on it.
I start installing the Linux server by do a system upgrade:
Update the OpenAnolis system
sudoyumupdate-y&&sudoreboot
But install htop in Anolis linux is not as easy as CentOS, it's require enable epel explicitly.
The official taro document build setting NODE_OPTIONS=--max-old-space-size=5120 in packages.json, but I would link to deploy a TARO documents to my 4 GB memory server, so here is how to.
Change NODE_OPTIONS settings
Change to NODE_OPTIONS=--max-old-space-size=2500 is reasonable in a 4GB memory server, but that's far from enough.
Enable the swap
Enable the swap
sudofallocate-l1G/swapfile
# or sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576