一 基础环境
安装源ISO
CentOS-7-x86_64-DVD-1810
最小化安装系统后先更新
[root@Server ~]# yum update -y
[root@Server ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@Server ~]# uname -r
3.10.0-957.21.3.el7.x86_64
关闭防火墙
systemctl stop firewalld.service
关闭防火墙开机启动
systemctl disable firewalld.service
关闭SELINUX (重启生效)
sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
二 安装jdk1.8环境
看看有没有安装包
yum list java*
安装jdk1.8
yum install -y java-1.8.0-openjdk-devel.x86_64
安装完成后,试试在任何路径下执行
java -version
如正常显示,表示安装成功,环境变量也不用去配置
[root@localhost ~]# java -version
openjdk version "1.8.0_262"
OpenJDK Runtime Environment (build 1.8.0_262-b10)
OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)
三 安装kiftd 青阳网络传输系统
将文件上传至服务器
解压文件
解压至root目录下,如我解压至 /root/kiftd
[root@localhost kiftd]# ls
conf filesystem fonts kiftd-1.0.35-RELEASE.jar kiftd说明文档.pdf libs logs mybatisResource nohup.out README.md webContext 使用许可
在当前文件夹下,执行后台启动命令
[root@localhost kiftd]# nohup java -jar kiftd-1.0.35-RELEASE.jar -start & echo $!
四 访问服务器IP
完成搭建. 默认用户名admin 密码000000
centos8临时记录
开放防火墙
firewall-cmd --add-service=samba --zone=public --permanent
firewall-cmd --reload
systemctl start firewalld
源配置
dnf clean all
dnf makecache
SELinux
状态查询
sestatus
临时禁用
setenforce 0
sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config 替换内容 重启生效
systemctl list-unit-files | grep enabled
[root@localhost ~]# systemctl status | grep service
│ │ └─10372 grep --color=auto service
│ └─user@0.service
├─rngd.service
├─irqbalance.service
├─systemd-udevd.service
├─vgauthd.service
├─polkit.service
├─auditd.service
├─tuned.service
├─systemd-journald.service
├─sshd.service
├─crond.service
├─NetworkManager.service
├─rsyslog.service
├─firewalld.service
├─vmtoolsd.service
├─sssd.service
├─smb.service
├─dbus.service
│ └─getty@tty1.service
└─systemd-logind.service
最小化安装后,初始状态
[root@localpc ~]# systemctl list-unit-files | grep enabled
auditd.service enabled
autovt@.service enabled
chronyd.service enabled
crond.service enabled
dbus-org.freedesktop.nm-dispatcher.service enabled
getty@.service enabled
irqbalance.service enabled
kdump.service enabled
lvm2-monitor.service enabled
microcode.service enabled
NetworkManager-dispatcher.service enabled
NetworkManager-wait-online.service enabled
NetworkManager.service enabled
postfix.service enabled
rhel-autorelabel-mark.service enabled
rhel-autorelabel.service enabled
rhel-configure.service enabled
rhel-dmesg.service enabled
rhel-domainname.service enabled
rhel-import-state.service enabled
rhel-loadmodules.service enabled
rhel-readonly.service enabled
rsyslog.service enabled
sshd.service enabled
systemd-readahead-collect.service enabled
systemd-readahead-drop.service enabled
systemd-readahead-replay.service enabled
tuned.service enabled
vgauthd.service enabled
vmtoolsd-init.service enabled
vmtoolsd.service enabled
dm-event.socket enabled
lvm2-lvmetad.socket enabled
lvm2-lvmpolld.socket enabled
default.target enabled
multi-user.target enabled
remote-fs.target enabled
runlevel2.target enabled
runlevel3.target enabled
runlevel4.target enabled
[root@localpc ~]# systemctl status | grep service
│ └─1446 grep --color=auto service
├─tuned.service
├─sshd.service
├─postfix.service
├─rsyslog.service
├─crond.service
├─systemd-logind.service
├─vmtoolsd.service
├─vgauthd.service
├─NetworkManager.service
├─dbus.service
├─polkit.service
├─chronyd.service
├─irqbalance.service
├─auditd.service
├─lvm2-lvmetad.service
├─systemd-udevd.service
│ └─getty@tty1.service
└─systemd-journald.service