This provides H2O RPM spec file and required files e.g. SysVinit, systemd service etc. to build RPM for Fedora, RHEL/CentOS 6/7 and OpenSUSE.
If you search Debian package, please see h2o-deb
This has Bintray RPM repository so if
you'd like to just install such a prebuilt package, please put following into a
bintray-tatsushid-h2o-rpm.repo
in /etc/yum.repos.d
#bintray-tatsushid-h2o-rpm - packages by tatsushid from Bintray
[bintray-tatsushid-h2o-rpm]
name=bintray-tatsushid-h2o-rpm
#If your system is CentOS
baseurl=https://dl.bintray.com/tatsushid/h2o-rpm/centos/$releasever/$basearch/
#If your system is Fedora
#baseurl=https://dl.bintray.com/tatsushid/h2o-rpm/fedora/$releasever/$basearch/
gpgcheck=0
repo_gpgcheck=0
enabled=1
Once the file is correctly saved, you can install packages in the repository by
yum install h2o
or if you use Fedora
dnf install h2o
If you have a docker environment, you can build RPMs by just running
make
If you'd like to build RPM for specific distribution, please run a command like following
make centos6
Now this understands
- centos6
- centos7
- centos8
- fedora
- opensuse-leap
build options.
To build RPM in your server without docker, please copy files under
rpmbuild
to your
build system
After building, please copy RPM under *.build
directory to your system and
run
yum install h2o-2.2.6-1.el6.x86_64.rpm
or if you use Fedora 22 or later
dnf install h2o-2.2.6-1.fc31.x86_64.rpm
or if you use OpenSUSE
zypper install h2o-2.2.6-1.x86_64.rpm
Once the installation finishes successfully, you can see a configuration file
at /etc/h2o/h2o.conf
.
To start h2o, please run
service h2o start
or
systemctl enable h2o.service
systemctl start h2o.service
This is under MIT License. Please see the LICENSE file for details.