Live data from Hacker News

CentOS 7 released on x86_64

lists.centos.org

1–10 of 123 posts

Re: CentOS 7 released on x86_64

#4
Woo. Have been using the RHEL 7 Amazon AMI images, and it's nice not to worry about shell scripts / custom supervisord stuff for your web services anymore.

My node app is deployed with a single `myapp.service` file thanks to systemd:

    [Service]
    ExecStart=/usr/local/bin/node --harmony /var/www/myapp/server.js
    Restart=always
    User=nobody
    Group=nobody
    Environment=PATH=/usr/bin:/usr/local/bin
    Environment=NODE_ENV=production

    [Install]
    WantedBy=multi-user.target
Then:

  iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000
(since I run my app on a low port so it can run as nobody, and 3000 isn't visible to the outside)

  cp myapp.service /etc/systemd/system

  systemctl enable myapp.service

  systemctl start myapp.service
This has all the stuff you expect:

- Not restarting repeatedly if the app is bouncing up and down.

- I can see how it goes with `journalctl` which reads journald messages, and those messages come from a source called `myapp` rather than the old ancient syslog facilities (local0, uucp, lpd) which everyone just ignored in favour of grepping.

Re: CentOS 7 released on x86_64

#5

Is there something notable about this beyond just a new version?

RHEL 7 was released on June 10[1], but many people (myself included) don't have a RedHat subscription and run CentOS, the 'community' edition of RedHat.

Up until today, CentOS 6.5 was the latest release... so I can start using CentOS 7 now and enjoy the benefits that RedHat introduced in RHEL 7. You can see that the delay before CentOS releases a community version of RHEL has been much improved in recent years in this Wikipedia chart[2].

Also, iirc, this is the first major CentOS release with the CentOS project more or less under RedHat's wing[3].

[1] http://www.redhat.com/about/news/press-archive/2014/6/red-ha...

[2] http://en.wikipedia.org/wiki/CentOS#Versioning_and_releases

[3] http://www.infoworld.com/t/linux/red-hat-stamps-its-influenc...

Re: CentOS 7 released on x86_64

#6
post #3

You can go to https://git.centos.org which is hosting all the sources used to build the system. Of course for RPM packages that is only metadata, not the actual upstream software source.

Just out of curiosity, since it sounds like you might know: on ubuntu I can do something like sudo apt-get source packagename and the system will just download the associated source code if a source repo is setup in the system's sources list. Does RHEL/CentOS have a similar capability?

Re: CentOS 7 released on x86_64

#7
post #6
post #3

You can go to https://git.centos.org which is hosting all the sources used to build the system. Of course for RPM packages that is only metadata, not the actual upstream software source.

Just out of curiosity, since it sounds like you might know: on ubuntu I can do something like sudo apt-get source packagename and the system will just download the associated source code if a source repo is setup in the system's sources list. Does RHEL/CentOS have a similar capability?

Yes it does. "yumdownloader --source package_name" will download the source RPM. yumdownloader is part of the yum-utils package.

Re: CentOS 7 released on x86_64

#9

Is there something notable about this beyond just a new version?

CentOS/RHEL 7 uses systemd. That's a notable change. Also, LXC and docker should work out of the box. And xfs now instead of ext4 by default.

Release notes: http://wiki.centos.org/Manuals/ReleaseNotes/CentOS7

Re: CentOS 7 released on x86_64

#10
"CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by Red Hat." ?

It used to be from a "Prominent North American Enterprise Linux Vendor". Something changed at some point.

Post reply on HN