2018/12/09
I opened this blog around 2016 or 2017 and first rented a rental server with .com name, and then a rental server in Kagoya because it was too heavy. It is a blog that I did not write a big deal, but I have been using a paid rental server for the past 5 years or so, and I wanted to reduce the cost … Before that, I used free Ameblo and FC2. There are sites where WordPress works for free, but it feels like that. I decided to operate a server that was attached 24 hours a day from the head of last year, and when I thought that I would move the blog to a home server by extension, I was told by an employee of the company's server management that if it was WordPress, it would work with Raspberry Pi, so I searched immediately. However, the world is short of semiconductors, and if there is no stock, you can buy it only at a price close to 3 times… So, the Orange Pi that everyone loved at AliExpress is here. It arrived in about a week. The Orange Pi 3 LTS is a product with 2GB of RAM and USB 3.0 support, consumes about 5W (estimated) and consumes about 50 yen in terms of electricity bill per month. Considering that the cheapest plan of a blog rental server is about 2,000 to 3,000 yen per month, it is a cheap maintenance cost.
According to the server management employee of the company, if you read and write to the SD card with Raspberry Pi, the SD card will break in about half a year, so the SD card used in Orange Pi will be refrained from using the OS etc. at a minimum, and the rest will use SSD. This is the worst reputation in the SSD of 2350 yen each bought by Amazon, the reputation in the review w The reason why I bought 2 is that I also have 2 Orange Pis, one for the database server and the other for the blog server. Orange Pi 5800 yen SD card 700 yen SSD 2350 yen USB cable 900 yen Total 9750 yen It is now an era that can be set up if it is a simple server with only this. You can choose the OS that can be used with Orange Pi, Debian's CLI and desktop, Ubuntu's CLI and desktop, and Android, but you don't need it. Cli has lower required specs than desktops, so select CLI. I have never touched on Linux, but this is also a study. The first OS installed Debian. The first start was like this. As I noticed later, I can connect SSH without outputting a monitor from the first time because I can understand the IP of the device connected by the router → the second one connected SSH from the first time. Even so, the CPU temperature is high … ・ Apache installation / Php installation ・ WordPress installation ・ Installation of Prometheus. Various problems came out until all the work was finished, but when I write it on the blog, it becomes very long, so it is overdid. I moved out and started messing up as soon as possible, so I have to put it away …
It is the speed at which the essential blog is displayed, but I think it is not bad for the view from a PC. This is from the smartphone, it needs to be improved. This time, I set up a MySQL server and a WordPress server, but I started studying the front end and the backend a little, so I think that I will add More Orange Pi or Raspberry Pi in the future and operate api servers and websites created with React. As an aside, I put a micra server before putting WordPress in the second Orange Pi. I need JDK 17 or later to run Minecraft's latest 1.18, but Debian only supports JDK 11, so I put Ubuntu in it. The server program is a Better. The result is that MSPT was 37ms with nothing done in the new world…