starting processes systemctl


[root@192 ~]# systemctl status rsyslog
● rsyslog.service - System Logging Service
   Loaded: loaded (/usr/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2017-02-05 16:55:04 EST; 1 months 10 days ago
 Main PID: 1154 (rsyslogd)
   CGroup: /system.slice/rsyslog.service
           └─1154 /usr/sbin/rsyslogd -n

Feb 05 16:55:03 192.168.154.137 systemd[1]: Starting System Logging Service...
Feb 05 16:55:04 192.168.154.137 systemd[1]: Started System Logging Service.

aptitude


[root@192 ~]# yum install vsftpd
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                      | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                      |  22 kB  00:00:00     
epel                                                                      | 4.3 kB  00:00:00     
extras                                                                    | 3.4 kB  00:00:00     
updates                                                                   | 3.4 kB  00:00:00     
(1/4): epel/x86_64/updateinfo                                             | 758 kB  00:00:01     
(2/4): extras/7/x86_64/primary_db                                         | 139 kB  00:00:02     
(3/4): updates/7/x86_64/primary_db                                        | 3.8 MB  00:00:09     
(4/4): epel/x86_64/primary_db                                             | 4.6 MB  00:00:11     
Determining fastest mirrors
 * base: centos.ip-connect.vn.ua
 * epel: ftp.colocall.net
 * extras: ftp.pbone.net
 * updates: ftp.pbone.net
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:3.0.2-21.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


[root@192 ~]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

[root@192 ~]# systemctl start vsftpd
[root@192 ~]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Sat 2017-03-18 15:50:17 EDT; 1s ago
  Process: 1190 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 1192 (vsftpd)
   CGroup: /system.slice/vsftpd.service
           └─1192 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

Mar 18 15:50:17 192.168.154.137 systemd[1]: Starting Vsftpd ftp daemon...
Mar 18 15:50:17 192.168.154.137 systemd[1]: Started Vsftpd ftp daemon.
[root@192 ~]# 

[root@192 ~]# systemctl enable vsftpd 

after reboot process will remain enabled

Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@192 ~]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2017-03-18 15:50:17 EDT; 1min 32s ago
 Main PID: 1192 (vsftpd)
   CGroup: /system.slice/vsftpd.service
           └─1192 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

Mar 18 15:50:17 192.168.154.137 systemd[1]: Starting Vsftpd ftp daemon...
Mar 18 15:50:17 192.168.154.137 systemd[1]: Started Vsftpd ftp daemon.
[root@192 ~]# 



Comments

Popular posts from this blog

HAproxy logging

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all