What's New on CentOS 7?

  • Posted on: 7 July 2014
  • By: oon
CentOS Linux

CentOS 7 release on July 7th, 2014 [1].

Here's something that I found quite new related to previous versions:


[root@api ~]# chkconfig --list

Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.

If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.

denyhosts 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iprdump 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iprinit 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iprupdate 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@api ~]# systemctl list-unit-files
UNIT FILE STATE
proc-sys-fs-binfmt_misc.automount static
dev-hugepages.mount static
dev-mqueue.mount static
proc-sys-fs-binfmt_misc.mount static
sys-fs-fuse-connections.mount static
sys-kernel-config.mount static
sys-kernel-debug.mount static
tmp.mount disabled
brandbot.path disabled
systemd-ask-password-console.path static
systemd-ask-password-plymouth.path static
systemd-ask-password-wall.path static
session-1.scope static
session-2.scope static
arp-ethers.service disabled
auditd.service enabled
autovt@.service disabled
avahi-daemon.service enabled
brandbot.service static
console-getty.service disabled
console-shell.service disabled
cpupower.service disabled
crond.service enabled
...

Now the service redirecting to systemctl command:


[root@api ~]# systemctl enable php-fpm
ln -s '/usr/lib/systemd/system/php-fpm.service' '/etc/systemd/system/multi-user.target.wants/php-fpm.service'
[root@api ~]# systemctl enable nginx
ln -s '/usr/lib/systemd/system/nginx.service' '/etc/systemd/system/multi-user.target.wants/nginx.service'
[root@api ~]# vim /etc/php-fpm.d/www.conf
[root@api ~]# service php-fpm start
Redirecting to /bin/systemctl start php-fpm.service
[root@api ~]# systemctl enable mariadb
ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service'
[root@api ~]# systemctl start mariadb

if you install on minimal setting, and you can't use ifconfig, you should install rpm package net-tools or use command:

ip a sh

install EPEL from yum:

yum install epel-release

I install nginx package from epel.

MySQL replaced with MariaDB. so instead of yum install mysql-server now you should do yum install mariadb-server.

denyhosts is not available on EPEL yet, you can find it on rpmfind [3].

yum automatic update via cron:

yum install yum-cron

systemctl status yum-cron.service

you can configure the setting at /etc/yum/yum-cron.conf

[1]http://en.wikipedia.org/wiki/CentOS
[2]http://seven.centos.org/
[3]http://rpmfind.net/linux/RPM/dag/redhat/el7/x86_64/denyhosts-2.6-5.el7.r...
[4]https://mariadb.com/kb/en/mariadb/documentation/sql-commands/account-man...
[5]http://linuxaria.com/howto/enabling-automatic-updates-in-centos-7-and-rh...

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.