2019-06-30から1日間の記事一覧

ファイアウォール

OS

Ubuntu (16)(18) apt install ufw ufw status ufw disable ※OCIの場合、下記も確認必要iptables -L Debian (9) apt install ufw ufw status ufw disable CentOS (7) systemctl disable firewalldsystemctl stop firewalldsystemctl status firewalld firewal…

パッケージマネージャ

OS

Ubuntu (16)(18)apt updateapt upgrade Debian (9) vi /etc/apt/sources.list deb http://ftp.jp.debian.org/debian/ stretch maindeb-src http://ftp.jp.debian.org/debian/ stretch main deb http://security.debian.org/debian-security stretch/updates …

SSH

OS

Ubuntu (16)(18)apt install openssh-server systemctl enable sshsystemctl restart ssh Debian (9)apt install openssh-server systemctl enable sshsystemctl restart ssh CentOS (7) yum install openssh-server systemctl enable sshdsystemctl restart…

ネットワーク設定

OS

Ubuntu (16) ----NetworkManagerを使う場合nmtui ----NetworkManagerを使わない場合 systemctl stop NetworkManagersystemctl disable NetworkManager vi /etc/network/interfaces auto loiface lo inet loopback auto ens33iface ens33 inet staticaddress …