如何在CentOS 7上安装Mailtrain新闻通讯应用程序
使用其他系统?Mailtrain是一个基于Node.js和MySQL / MariaDB构建的开源自托管新闻通讯应用程序。
LiteSpeed是一种流行的Web服务器,它是Apache的分支。它经过优化,通常速度更快。我们将假设您安装了干净的CentOS。
在本指南中,我们将安装LiteSpeed Standard。这是LiteSpeed的免费版本,是OpenLiteSpeed的替代版本(LiteSpeed的开源版本也是免费的)。
我们需要确保我们的服务器是最新的。通过更新来确保是这种情况yum
:
yum update -y
这将更新服务器上安装的所有软件。升级后,我们可以继续并安装LiteSpeed。
LiteSpeed将需要安装开发人员工具。用安装它们yum
:
sudo yum groupinstall 'Development Tools'
sudo yum install libxml2-devel.x86_64 openssl-devel.x86_64 bzip2-devel.x86_64 libcurl-devel.x86_64 db4-devel.x86_64 \
libjpeg-devel.x86_64 libpng-devel.x86_64 libXpm-devel.x86_64 freetype-devel.x86_64 gmp-devel.x86_64 \
libc-client-devel.x86_64 openldap-devel.x86_64 libmcrypt-devel.x86_64 mhash-devel.x86_64 freetds-devel.x86_64 \
zlib-devel.x86_64 mysql-devel.x86_64 ncurses-devel.x86_64 pcre-devel.x86_64 unixODBC-devel.x86_64 postgresql-devel.x86_64 \
sqlite-devel.x86_64 aspell-devel.x86_64 readline-devel.x86_64 recode-devel.x86_64 net-snmp-devel.x86_64 \
libtidy-devel.x86_64 libxslt-devel.x86_64 t1lib-devel.x86_64
此命令完成后,将安装开发人员工具,我们可以下载LiteSpeed。
在本指南中,我们将安装LiteSpeed Standard。您可以从LiteSpeed网站下载此文件。向下滚动并查找适用于Linux(x86)的LiteSpeed标准版。右键单击下载按钮,然后复制链接,这样您将获得一个类似的链接http://www.litespeedtech.com/packages/4.0/lsws-4.2.24-std-i386-linux.tar.gz
。在您的服务器中,执行:
wget URL
例如:
wget http://www.litespeedtech.com/packages/4.0/lsws-4.2.24-std-i386-linux.tar.gz
现在打开LiteSpeed的包装.tar.gz
。为此,请执行:
tar -zxvf lsws*
下载LiteSpeed之后,cd
进入LiteSpeed文件夹并执行install.sh
文件:
./install.sh
您现在将看到条款。如果您同意,请按几次空格键向下滚动。多次执行此操作后,您将看到:
IMPORTANT: In order to continue installation you must agree with above
license terms by typing "Yes" with capital "Y"!
Do you agree with above license?
Y
如果您同意,请用大写字母键入“是” 。
现在将询问您将LiteSpeed安装在哪里。如果要将其安装在默认目录中,只需按Enter。
Please specify the destination directory. You must have permissions to
create and manage the directory. It is recommended to install the web server
at /opt/lsws, /usr/local/lsws or in your home directory like '~/lsws'.
ATTENTION: The user 'nobody' must be able to access the destination
directory.
Destination [/usr/local/lsws]:
现在将要求您输入管理员的用户名,以便您可以登录Web界面。
Please specify the user name of the administrator.
This is the user name required to log into the administration web interface.
User name [admin]:
如果要使用名称“ admin”,只需按Enter。但是出于安全原因,建议更改名称,因此,如果要使用其他名称,请输入该名称,然后按Enter键。
现在将要求您输入管理员密码。您将需要使用此密码来访问Web界面。
Please specify the administrator's password.
This is the password required to log into the administration web interface.
Password:
确保该密码是安全密码,因为任何可以与您的管理员用户一起访问的人都可以管理您的服务器。
现在将要求您输入电子邮件地址(如果需要,请输入更多)。如果您需要收到有关服务器/ LiteSpeed安装的任何信息的通知,该软件将向此处列出的电子邮件地址发送一封电子邮件,以通知您。
Please specify administrators' email addresses.
It is recommended to specify a real email address,
Multiple email addresses can be set by a comma
delimited list of email addresses. Whenever something
abnormal happened, a notificiation will be sent to
emails listed here.
Email addresses [root@localhost]:
例如:
Email addresses [root@localhost]: [email protected]
另外,如果您要使用多个电子邮件地址,请使用逗号分隔的列表,如下所示:
Email addresses [root@localhost]: [email protected], [email protected]
现在将要求您输入将以其身份运行Web服务器的用户。确保这是一个非root用户,因为使用具有root特权的用户是非常不安全的!
As you are the root user, you must choose the user and group
whom the web server will be running as. For security reason, you should choose
a non-system user who does not have login shell and home directory such as
'nobody'.
User [nobody]:
如果您不确定在此处输入什么,只需将其保留为“ nobody”即可。
对下一个问题执行相同的操作。
Please choose the group that the web server running as.
User 'nobody' is the member of following group(s): nobody
Group [nobody]:
现在将询问您Web服务器侦听的端口。通常,您希望将此端口设置为端口80,因为访问者无需在URL后输入端口。在特定情况下,您可能需要更改此设置,但是如果没有明显的理由,只需在此处输入80。
Please specify the port for normal HTTP service.
Port 80 is the standard HTTP port, only 'root' user is allowed to use
port 80, if you have another web server running on port 80, you need to
specify another port or stop the other web server before starting LiteSpeed
Web Server.
You can access the normal web page at http://<YOUR_HOST>:<HTTP_PORT>/
HTTP port [8088]: 80
有一个管理Web界面可用于管理LiteSpeed Web服务器。该Web界面将需要在另一个端口上运行,例如7080(默认)。您可以将其保留为默认值,除非您希望它在另一个端口上侦听。然后,您可以通过键入进入管理Web界面http://domain.com:port
。
Please specify the HTTP port for the administration web interface,
which can be accessed through http://<YOUR_HOST>:<ADMIN_PORT>/
Admin HTTP port [7080]:
现在将询问您是否要使用PHP。如果您需要使用CMS(例如Joomla!或WordPress),则需要启用它。键入Y
以启用PHP或n
不使用它。
You can setup a global script handler for PHP with the pre-built PHP engine
shipped with this package now. The PHP engine runs as Fast CGI which
outperforms Apache's mod_php.
You can always replace the pre-built PHP engine with your customized PHP
engine.
Setup up PHP [Y/n]: Y
对于下一个问题,除非您是高级用户并且知道您在做什么,否则只需按Enter键。
Suffix for PHP script(comma separated list) [php]:
现在将询问您是否要使用AWStats。AWStats是一个生成统计信息的程序,因此您可以查看有关访问者的详细信息。键入y
是否要使用AWStats,或者N
不希望使用此命令。
AWStats is a popular log analyzer that generates advanced web server
statistics. LiteSpeed web server seamlessly integrates AWStats into
its Web Admin Interface. AWStats configuration and statistics update
have been taken care of by LiteSpeed web server.
Note: If AWStats has been installed already, you do not need to
install again unless a new version of AWStats is available.
Would you like to install AWStats Add-on module [y/N]? N
接下来,将询问您是否希望LiteSpeed在服务器重新启动时自动启动。为避免停机,您可能需要这样做,因此请键入Y
。
Would you like to have LiteSpeed Web Server started automatically
when the server restarts [Y/n]? Y
如果要立即启动LiteSpeed,请键入Y
。如果要稍后手动启动,请键入n
。
[OK] The startup script has been successfully installed!
Would you like to start it right now [Y/n]? Y
如果一切顺利,您应该看到以下消息:
LiteSpeed Web Server started successfully! Have fun!
现在访问服务器IP或域名时,将看到一个默认页面。您现在可以开始创建网站!
为了允许流量流向我们的LiteSpeed Web服务器,我们需要打开Web服务器(80)和管理Web界面(7080)的端口:
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
iptables -I INPUT -p tcp --dport 7080 -j ACCEPT
service iptables save
如果在安装过程中更改了这些端口,请确保同时在iptables
规则中进行更改。
恭喜,您现在拥有功能齐全的LiteSpeed Web服务器。如果您有任何疑问或问题,请参考文档或LiteSpeed支持论坛。
使用其他系统?Mailtrain是一个基于Node.js和MySQL / MariaDB构建的开源自托管新闻通讯应用程序。
Oxwall是一个开源社交网络软件平台,可用于免费构建自定义社交网站(SNS)。在这篇文章中,
FTP是用于通过Internet传输文件的有用协议,本指南将向您展示如何设置vsFTPd(非常安全的文件传输协议守护程序)o
在本教程中,我们将介绍在CentOS 6x x64上安装和使用nethogs的过程。nethogs是一种网络监视工具,它允许Networ
使用其他系统?简介BoltWire是一个用PHP编写的免费,轻量级的内容管理系统。与大多数其他内容管理人员相比
欢迎来到另一个Vultr教程。在这里,您将学习如何安装和运行SAMP服务器。本指南是为CentOS 6编写的。先决条件
简介/ etc /目录在Linux系统运行中起着至关重要的作用。其原因是因为几乎每个系统配置
使用其他系统?Microweber是一个开放源代码的拖放式CMS和在线商店。Microweber源代码托管在GitHub上。本指南将向您展示
使用其他系统?SonarQube是用于质量系统开发的开源工具。它是用Java编写的,并且支持多个数据库。它提供
使用其他系统?Mosh是Mobile Shell的缩写,是一种新兴的远程终端应用程序,旨在提供更好的连接和使用
MoinMoin是一个使用Python编写的基于文件系统的开源Wiki引擎。如今,MoinMoin已广泛用于开源社区。许多供应商
H2O是新一代HTTP服务器,它对所有当前使用的Web服务器都具有出色的,功能齐全的HTTP / 2实现。使用H2O作为您的Web服务器
在Linux和Unix系统管理员中,使用sudo用户访问服务器并在root级执行命令是一种非常普遍的做法。使用泡沫
使用其他系统?Countly是一个开源Web /移动分析和营销平台。它具有许多用于从Web收集数据的功能
MODX是一个用PHP编写的免费开放源内容管理系统。它使用MySQL或MariaDB来存储其数据库。MODX专为满足以下条件的企业而设计:
使用其他系统?Lychee 3.1相册是一种简单,灵活,免费和开源的照片管理工具,可在VPS服务器上运行。安装
使用其他系统?ERP或企业资源计划是用于管理核心业务流程的企业应用程序套件。ERPNext是免费的
使用其他系统?Paste 2.1是一个简单,灵活,免费和开源的pastebin应用程序,用于存储代码,文本等。最初是
使用其他系统?Seafile(社区版本)是一个免费和开源的文件同步和共享解决方案,类似于ownCloud。机智
使用其他系统?Kolab Groupware是一个免费的基于Web的开源组件软件。它的功能包括电子邮件通信,事件
在Arch Linux上使用Makepkg可以避免系统污染,确保仅安装必要的依赖关系。
快速学习如何在Ubuntu 16.04上安装OpenSIPS控制面板,为VoIP提供商提供支持的功能。
学习如何在Fedora 28上安装Akaunting,一款适合小型企业和自由职业者的开源会计软件。
使用其他系统?Mailtrain是一个基于Node.js和MySQL / MariaDB构建的开源自托管新闻通讯应用程序。
了解導致Minecraft延遲的原因和解決方案,包括優化伺服器性能和減少滯後的步驟。
勒索軟件攻擊呈上升趨勢,但人工智能能否幫助應對最新的計算機病毒?AI 是答案嗎?在這裡閱讀知道是 AI 布恩還是禍根
ReactOS,一個開源和免費的操作系統,這裡有最新版本。它能否滿足現代 Windows 用戶的需求並打倒微軟?讓我們更多地了解這種老式但更新的操作系統體驗。
Whatsapp 終於為 Mac 和 Windows 用戶推出了桌面應用程序。現在您可以輕鬆地從 Windows 或 Mac 訪問 Whatsapp。適用於 Windows 8+ 和 Mac OS 10.9+
閱讀本文以了解人工智能如何在小型公司中變得流行,以及它如何增加使它們成長並為競爭對手提供優勢的可能性。
最近,Apple 發布了 macOS Catalina 10.15.4 補充更新以修復問題,但似乎該更新引起了更多問題,導致 mac 機器變磚。閱讀這篇文章以了解更多信息