Apache Web:
yum install httpd
systemctl start httpd.service
iptables -I INPUT -p TCP –dport 80 -j ACCEPT
or
firewall-cmd –permanent –zone=public –add-service=http
firewall-cmd –permanent –zone=public –add-service=https
firewall-cmd –reload
systemctl enable httpd.service
Month: June 2018
vlmcsd&kms
vlmcsd-1111-2017-06-17-Hotbird64\binaries\Linux\intel\static\vlmcsd-x64-musl-static
mkdir /usr/local/vlmcsd
cp vlmcsd-x64-musl-static /usr/local/vlmcsd/
mv vlmcsd-x64-musl-static vlmcsd
chmod u+x vlmcsd
./vlmcsd
Choosing an OS
99.ebuild
vsftpd:
cd /usr/src/init-files-1.0.1 # Continue reading “99.ebuild”
Gentoo installation
Mkfs.ext4 –O ^64bit /dev/sda1
Tune2fs –C 0 –i 0 /dev/sda1
Mkswap /dev/sda2
Swapon /dev/sda2
Mount /dev/sda1 /mnt/Gentoo
cd /mnt/Gentoo
Links www.gentoo.org/downloads/mirrors.xml
iptable
yum install iptables-services
/etc/systemd/system/iptables.service
/usr/lib/systemd/system/iptables.service
cat /etc/sysconfig/iptables
Linux下openssl生成签名
x509证书一般会用到三类文,key,csr,crt。
Key 是私用密钥openssl格,通常是rsa算法。
Csr 是证书请求文件,用于申请证书。在制作csr文件的时,必须使用自己的私钥来签署申,还可以设定一个密钥。
crt是CA认证后的证书文,(windows下面的,其实是crt),签署人用自己的key给你签署的凭证。
Continue reading “Linux下openssl生成签名”
ClamAV installation
yum install epel-release
yum repolist (epel/x86_64 Extra Packages for Enterprise Linux 7 – x86_64)
yum –disablerepo=”*” –enablerepo=”epel” list available
yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd -y
[root@server_for_product ~]#sed -i -e ‘s/^Example/#Example/’ /etc/freshclam.conf
[root@server_for_product ~]#sed -i -e ‘s/^Example/#Example/’ /etc/clamd.d/scan.conf
freshclam
/etc/clam.d/scan.conf (LocalSocket /var/run/clamd.scan/clamd.sock)
systemctl enable clamd@scan
ln -s ‘/usr/lib/systemd/system/[email protected]’ ‘/etc/systemd/system/multi-user.target.wants/[email protected]’
systemctl start clamd@scan
systemctl status clamd@scan
clamscan -r root
ip address change
ip addr (ip link)
ens33
cd /etc/sysconfig/network-scripts
vi ifcfg-ens33
ONBOOT=yes
service network restart
yum install net-tools (ifconfig)
Centos7安装tensorflow
1、基础软件安装
yum install gcc
yum install gcc-c++
yum install glibc-headers
yum install -y openssl openssl-devel
yum install python-devel libffi-devel openssl-devel Continue reading “Centos7安装tensorflow”