מערכת הפעלה - Ubuntu, Linux או משהו אחר?

אני חדש ב-Discourse ומנסה להקים פורום משלי. יש לי שרת ווב שרץ על Linux ו- WHM/Cpanel, שזה עבד בסדר עבור אתרי ה-Wordpress שלי.

הפעלתי שרת חדש שהיה מיועד לארח את האתר החדש והתקנת Discourse על בסיס אותו אתר (יהיה אתר ראשי למותג, עם תוסף WordPress של Discourse מותקן וקישור לפורום באתר). נראה שהכל הלך טוב עד שנושא התעודות וה-Auto SSL (לא הצלחתי למצוא את מפתחות הפרטי בקלות). קראתי שלא כדאי להריץ את certbot ואת Auto SSL של WHM על אותו מכשיר. אז העברתי את האתר לשרת WHM אחר והתחלתי מחדש עם Alma Linux חדש עם WHM, והכל עבד עם Discourse רץ. אחר כך הבנתי ש-WHM לא ממש נדרש.

הבעיה שלי היא שאני לא מנוסה ב-Linux; אני חושב שאוכל להתקין את זה על המחשב הבלעדי (ללא WHM), אבל אני לא בטוח שאני מספיק מיומן ב-Linux כדי לאבטח את המכשיר ולבצע תחזוקה שוטפת כמו גיבוי, מעקב אחר שימוש בדיסק ועוד. אני מאוד צריך ממשק גרפי ומרגיש קצת מפוחד ללכת בלי.

סיפור ארוך, אבל רציתי לתת רקע ולשאול באילו כלים אחרים משתמשים להריץ Docker ו-Discourse. מחיפוש באינטרנט, נראה שזה בדרך כלל ב-Ubuntu, אבל יכול שגוי.

אני רוצה שיהיה לי ממשק גרפי, תוכנה לגיבוי ויכולת לשחזור במהירות וקלים במקרי אסון, לבדוק את השימוש בדיסק, מעקב וכדומה.

האם Ubuntu הוא הפתרון וכי הוא יספיק להריץ אתר Discourse גדול? אני יודע שהחומרה תמשחק תפקיד גדול בזה, אבל רציתי לבדוק. למשל, אם בסבירות גבוהה אגיע ל-100,000 משתמשים או יותר, האם Ubuntu יהיה יציב?

כל עצה תתקבל בברכה.

I would go with Ubuntu. This is what Discourse recommends. The standard install guide (discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub) says that:

The default of the current supported LTS release of Ubuntu Server works fine. At minimum, a 64-bit Linux OS with a modern kernel version is required.

If you don’t feel comfortable doing it yourself, you can go with a Discourse hosted plan or with another Discourse host (e.g. Communiteq).

2 לייקים

Thanks very much NateDhaliwal. I will go with Ubuntu.

Unfortunately, I want to have the forum with my own domain name and as it is a new website, I don’t want to have to spend the money on the hosted tier that allows for that. If the website and forum go well I will definately change over.

Just as a side note I wonder if you know if it is possible to go from self hosted discourse to hosted. Would it be as simple as backing up the file on the self hosted and restoring to hosted?

I think so. On the Pricing page, that question is in their FAQ.

Great thank you! Thanks for your help again. :slight_smile:

לייק 1

A long time ago, I felt the same way. Eventually, you begin to feel differently. You begin to feel the control a Linux OS gives you as far as what you want to load on the system, how you want it to work and the freedom from closed source software. You learn to use command line tools intuitively and you begin to feel like you can ‘see’ the system much better then any GUI will afford.
No hard evidence, no tips or advise. Just a story about my own experiences

3 לייקים

Thanks Andrew. Actually the thing that I am most freaked out about is backup and restore in a disaster situation. The server is virtual so I can’t do an ISO image. I’m not really sure the best way to backup and then restore from scratch. I’m used to GUI style backups and restores. I was looking at rclone and restic but they seemed complicated.

I want to test the whole disaster situation with a server running discourse, break it and test the plan works before I start configuring discourse for my forum.

2 לייקים

You can usually take snapshots, but it depends on what the hosting offers. It’s easy to backup and restore in Discourse. See Create, download, and restore a backup of your Discourse database. You can reinstall Discourse anytime and restore a backup.

Also worth to read: Best Practices for Backups.

5 לייקים

Hi Arkshine,

Thanks so much for the best practises link.

I don’t think my hosting offers snapshots. I will ask them. I would really like to cut down the time having to reinstall the entire server with all the settings again, in the event of a disaster.

All you need is the yml file and to have backups on s3, configured in the yml file.

Spin up a new server, clone discourse, copy the yml file, rebuild, and then restore the backup from s3.