<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Centos 7 on IT 紀錄網站</title><link>https://lovesharepc.github.io/en/categories/centos-7.html</link><description>Recent content in Centos 7 on IT 紀錄網站</description><generator>Hugo -- gohugo.io</generator><language>zh-tw</language><lastBuildDate>Thu, 07 May 2020 01:37:16 +0000</lastBuildDate><atom:link href="https://lovesharepc.github.io/en/categories/centos-7/index.xml" rel="self" type="application/rss+xml"/><item><title>linux 新增硬碟、multipath 指令</title><link>https://lovesharepc.github.io/2020/05/07/linux-%E6%96%B0%E5%A2%9E%E7%A1%AC%E7%A2%9F%E3%80%81multipath-%E6%8C%87%E4%BB%A4/</link><pubDate>Thu, 07 May 2020 01:37:16 +0000</pubDate><guid>https://lovesharepc.github.io/2020/05/07/linux-%E6%96%B0%E5%A2%9E%E7%A1%AC%E7%A2%9F%E3%80%81multipath-%E6%8C%87%E4%BB%A4/</guid><description/></item><item><title>centos 校時設定 chrony</title><link>https://lovesharepc.github.io/2020/05/06/centos-%E6%A0%A1%E6%99%82%E8%A8%AD%E5%AE%9A-chrony/</link><pubDate>Tue, 05 May 2020 16:11:51 +0000</pubDate><guid>https://lovesharepc.github.io/2020/05/06/centos-%E6%A0%A1%E6%99%82%E8%A8%AD%E5%AE%9A-chrony/</guid><description>&lt;p>centos 手動及自動校時&lt;/p></description></item><item><title>linux 系統壓力測試</title><link>https://lovesharepc.github.io/2020/05/03/linux-%E7%B3%BB%E7%B5%B1%E5%A3%93%E5%8A%9B%E6%B8%AC%E8%A9%A6/</link><pubDate>Sun, 03 May 2020 05:42:45 +0000</pubDate><guid>https://lovesharepc.github.io/2020/05/03/linux-%E7%B3%BB%E7%B5%B1%E5%A3%93%E5%8A%9B%E6%B8%AC%E8%A9%A6/</guid><description>&lt;p>壓力測試&lt;/p>
&lt;p>用來測試系統效能及好壞&lt;/p></description></item><item><title>CVE-2019-14899 漏洞</title><link>https://lovesharepc.github.io/2019/12/09/cve-2019-14899-%E6%BC%8F%E6%B4%9E/</link><pubDate>Mon, 09 Dec 2019 02:39:27 +0000</pubDate><guid>https://lovesharepc.github.io/2019/12/09/cve-2019-14899-%E6%BC%8F%E6%B4%9E/</guid><description>查詢方法 sysctl -ar '.rp_filter' 或 cat /usr/lib/sysctl.d/50-default.conf | grep net.ipv4.conf kernel 說明 https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt rp_filter - INTEGER 0 - No source validation. 1 - Strict mode as defined in RFC3704 Strict Reverse Path Each incoming packet is tested against the FIB and if the interface is not the best reverse path the packet check will fail. By default failed packets are discarded. 2 - Loose mode as</description></item><item><title>linux fdisk 工具</title><link>https://lovesharepc.github.io/2019/11/09/linux-fdisk-%E5%B7%A5%E5%85%B7/</link><pubDate>Sat, 09 Nov 2019 12:20:38 +0000</pubDate><guid>https://lovesharepc.github.io/2019/11/09/linux-fdisk-%E5%B7%A5%E5%85%B7/</guid><description>fdisk 用來建立硬碟的分割表 我使用的 fdisk 版本為 2.33.1 有支援 GPT、MBR 分割表 顯示目前有哪些硬碟 fdisk -l 把硬碟初始化，因為我的硬碟有使用過 所以先做 partition pable 重建 GPT</description></item><item><title>centos 7 安裝 wordpress</title><link>https://lovesharepc.github.io/2019/10/12/centos7-%E5%AE%89%E8%A3%9D-wordpress/</link><pubDate>Sat, 12 Oct 2019 01:45:00 +0000</pubDate><guid>https://lovesharepc.github.io/2019/10/12/centos7-%E5%AE%89%E8%A3%9D-wordpress/</guid><description>事先準備 centos 7 PHP 7.3 apache mariadb 安裝工具 yum install -y nano wget unzip 指定 php 版本 yum install -y epel-release yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum install -y yum-utils yum-config-manager --disable remi-php54 yum-config-manager --enable remi-php73 新版 mariadb curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash 新版 apache cd /etc/yum.repos.d &amp;&amp; wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo 安裝套</description></item><item><title>centos 7 環境設定</title><link>https://lovesharepc.github.io/2019/10/12/centos7-%E5%88%9D%E5%A7%8B%E5%8C%96/</link><pubDate>Sat, 12 Oct 2019 00:02:00 +0000</pubDate><guid>https://lovesharepc.github.io/2019/10/12/centos7-%E5%88%9D%E5%A7%8B%E5%8C%96/</guid><description>更改時區 timedatectl set-timezone Asia/Taipei 重新檢測 fastmirror yum clean all yum makecache 安裝常用工具 yum install -y nano wget unzip 更新套件 yum update -y 安裝字體 yum groupinstall -y font 關閉 selinux (重開機生效) sed -e ‘s/SELINUX=enf</description></item><item><title>CENTOS YUM 相關指令</title><link>https://lovesharepc.github.io/2019/09/29/centos-yum-%E7%9B%B8%E9%97%9C%E6%8C%87%E4%BB%A4/</link><pubDate>Sun, 29 Sep 2019 03:27:00 +0000</pubDate><guid>https://lovesharepc.github.io/2019/09/29/centos-yum-%E7%9B%B8%E9%97%9C%E6%8C%87%E4%BB%A4/</guid><description>安裝套件 yum install 套件名 移除套件，config 也會清掉 yum remove 套件名 重新偵測 fastestmirror yum clean all yum makecache 查看套件可用版本 yum info 套件名 對套件升版或降板 yum downgrade 套件名 yum upgrade-to 套件名</description></item><item><title>Centos 7 安裝 Tiki Wiki CMS Groupware</title><link>https://lovesharepc.github.io/2019/09/07/tiki-wiki-cms-groupware/</link><pubDate>Sat, 07 Sep 2019 02:32:00 +0000</pubDate><guid>https://lovesharepc.github.io/2019/09/07/tiki-wiki-cms-groupware/</guid><description>Tiki Wiki CMS Groupware Tiki Wiki CMS Groupware 集合非常多功能在單一系統 以下是官網所列主要功能 Wiki pages Database Tracking System Blogs Forums RSS Syndication WYSIWYG Editing Calendars and Events File and Image Galleries User and Group Management Surveys, Quizes, and Polls 事先準備 事先準備 centos 7 PHP 7.2 apache</description></item><item><title>centos7 更新 mariadb</title><link>https://lovesharepc.github.io/2019/04/08/centos7-%E6%9B%B4%E6%96%B0-mariadb/</link><pubDate>Mon, 08 Apr 2019 12:43:00 +0000</pubDate><guid>https://lovesharepc.github.io/2019/04/08/centos7-%E6%9B%B4%E6%96%B0-mariadb/</guid><description>執行 curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash</description></item><item><title>CentOS 7 更新 apache httpd 、 NGINX</title><link>https://lovesharepc.github.io/2019/04/07/centos-7-%E6%9B%B4%E6%96%B0-apache-httpd-%E3%80%81-nginx/</link><pubDate>Sun, 07 Apr 2019 02:17:00 +0000</pubDate><guid>https://lovesharepc.github.io/2019/04/07/centos-7-%E6%9B%B4%E6%96%B0-apache-httpd-%E3%80%81-nginx/</guid><description>Centos 7 官方套件庫的 apache 非常舊 時至今日 2019 年 他的套件庫還是 2013 的 早就漏洞滿天飛了 而要自己編譯則是非常麻煩一件事 幸好 國外有人有將自己打包好的 rpm 包以 repo 方式</description></item><item><title>Centos 7 安裝 iscsi server 、client</title><link>https://lovesharepc.github.io/2019/02/09/centos-7-%E5%AE%89%E8%A3%9D-iscsi-server-%E3%80%81client/</link><pubDate>Sat, 09 Feb 2019 03:17:00 +0000</pubDate><guid>https://lovesharepc.github.io/2019/02/09/centos-7-%E5%AE%89%E8%A3%9D-iscsi-server-%E3%80%81client/</guid><description>iscsi server 端叫 target (目標端) iscsi client 端叫 initiator (發起端) 我個人覺得就直接 server、client 這樣叫就好 反而用 initiator 、 target 很容易搞混 在 centos 搭配 webmin 有兩個套件可以使</description></item><item><title>Centos 7 Firewalld 阻擋 IP 指令</title><link>https://lovesharepc.github.io/2019/01/07/centos-7-firewalld-%E9%98%BB%E6%93%8B-ip-%E6%8C%87%E4%BB%A4/</link><pubDate>Mon, 07 Jan 2019 01:46:00 +0000</pubDate><guid>https://lovesharepc.github.io/2019/01/07/centos-7-firewalld-%E9%98%BB%E6%93%8B-ip-%E6%8C%87%E4%BB%A4/</guid><description>firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='192.168.0.11' reject"</description></item><item><title>Centos 7 查詢 web 主機使用軟體及版本</title><link>https://lovesharepc.github.io/2019/01/04/centos-7-%E6%9F%A5%E8%A9%A2-web-%E4%B8%BB%E6%A9%9F%E4%BD%BF%E7%94%A8%E8%BB%9F%E9%AB%94%E5%8F%8A%E7%89%88%E6%9C%AC/</link><pubDate>Fri, 04 Jan 2019 12:09:00 +0000</pubDate><guid>https://lovesharepc.github.io/2019/01/04/centos-7-%E6%9F%A5%E8%A9%A2-web-%E4%B8%BB%E6%A9%9F%E4%BD%BF%E7%94%A8%E8%BB%9F%E9%AB%94%E5%8F%8A%E7%89%88%E6%9C%AC/</guid><description>curl --head http://your.webserver.com/</description></item><item><title>syslog-ng config 範例</title><link>https://lovesharepc.github.io/2018/10/13/syslog-ng-config-%E7%AF%84%E4%BE%8B/</link><pubDate>Sat, 13 Oct 2018 08:35:00 +0000</pubDate><guid>https://lovesharepc.github.io/2018/10/13/syslog-ng-config-%E7%AF%84%E4%BE%8B/</guid><description>[root@localhost syslog-ng]# cat syslog-ng.conf @version:3.5 @include “scl.conf” # syslog-ng configuration file. # This should behave pretty much like the original syslog on RedHat. But # it could be configured a lot smarter. # See syslog-ng(8) and syslog-ng.conf(5) for more information. # Note: it also sources additional configuration files (*.conf) # located in /etc/syslog-ng/conf.d/ options { flush_lines (2000); #time_reopen (10); log_fifo_size (1000);</description></item><item><title>centos 排程 遠端指令</title><link>https://lovesharepc.github.io/2018/09/01/centos-%E6%8E%92%E7%A8%8B-%E9%81%A0%E7%AB%AF%E6%8C%87%E4%BB%A4/</link><pubDate>Sat, 01 Sep 2018 12:56:00 +0000</pubDate><guid>https://lovesharepc.github.io/2018/09/01/centos-%E6%8E%92%E7%A8%8B-%E9%81%A0%E7%AB%AF%E6%8C%87%E4%BB%A4/</guid><description>yum -y install expect switchBK.sh chmod 775 switch.sh 建立 shell #!/usr/bin/expect ## TomDV ## http://blog.penumbra.be/2010/02/expect-scripts-backup-cisco-config/ set timeout 600 # —————- configuration device —————- # ## device 1 set device1 set tftp set device1_user set device1_pass # ————– run command ————– # ## device 1 spawn ssh -l $user $device expect “</description></item><item><title>centos 7 設定 tftp server</title><link>https://lovesharepc.github.io/2018/08/31/centos-7-%E8%A8%AD%E5%AE%9A-tftp-server/</link><pubDate>Fri, 31 Aug 2018 13:14:00 +0000</pubDate><guid>https://lovesharepc.github.io/2018/08/31/centos-7-%E8%A8%AD%E5%AE%9A-tftp-server/</guid><description>TFTP server can be installed using following command, where xinetd is necessary. #安裝 tftp server yum install xinetd tftp-server #編輯設定檔 nano /etc/xinetd.d/tftp # default: off # description: The tftp server serves files using the trivial file transfer # protocol. The tftp protocol is often used to boot diskless # workstations, download configuration files to network-aware printers, # and to start the installation process</description></item><item><title>centos 7 安裝 vsftpd</title><link>https://lovesharepc.github.io/2018/08/27/centos-7-%E5%AE%89%E8%A3%9D-vsftpd/</link><pubDate>Mon, 27 Aug 2018 07:13:00 +0000</pubDate><guid>https://lovesharepc.github.io/2018/08/27/centos-7-%E5%AE%89%E8%A3%9D-vsftpd/</guid><description>vsftpd 算是相當老牌的 FTP server 簡單好用 安裝很簡單 yum install vsftpd systemctl enable vsftpd systemctl start vsftpd 要注意的是要將 centos 7 的 selinux 加入對應的規則 或是就直接關了吧 哈哈</description></item><item><title>CentOS7 安裝 librenms</title><link>https://lovesharepc.github.io/2018/08/11/centos7-%E5%AE%89%E8%A3%9D-librenms/</link><pubDate>Sat, 11 Aug 2018 12:57:00 +0000</pubDate><guid>https://lovesharepc.github.io/2018/08/11/centos7-%E5%AE%89%E8%A3%9D-librenms/</guid><description>其實 librenms 官方 doc 已經寫得很詳細了 照做只有幾個點要注意而已 官方手冊 https://docs.librenms.org/#Installation/Installation-CentOS-7-Apache/ 在 Install Required Packages 建議順便裝 3 個套件 wget nano python-ipaddress 該動作為每天凌晨執行 scan 動作 建議不要太常執行，因</description></item><item><title>移除市集</title><link>https://lovesharepc.github.io/2018/08/07/%E7%A7%BB%E9%99%A4%E5%B8%82%E9%9B%86/</link><pubDate>Tue, 07 Aug 2018 12:02:00 +0000</pubDate><guid>https://lovesharepc.github.io/2018/08/07/%E7%A7%BB%E9%99%A4%E5%B8%82%E9%9B%86/</guid><description>移除市集 用power shell Get-AppxPackage -AllUsers &amp;raquo; C:test.txt 搜尋找到 Microsoft.WindowsStore…… Remove-AppxPackage DISM /Online /Get-ProvisionedAppxPackages 找到 Microsoft.WindowsStor</description></item><item><title>CentOS 7 安裝 cacti 1.2.3</title><link>https://lovesharepc.github.io/2018/07/02/centos-7-%E5%AE%89%E8%A3%9D-cacti-1-2-3/</link><pubDate>Mon, 02 Jul 2018 15:45:00 +0000</pubDate><guid>https://lovesharepc.github.io/2018/07/02/centos-7-%E5%AE%89%E8%A3%9D-cacti-1-2-3/</guid><description>cacti 為一套免費的 SNMP monitoring soft 由 MRTG 演化而來 主要差別在於比 MRTG 簡易好上手許多 (不過其實也是挺麻煩的) 在我接觸 cacti 之前，我是使用 PRTG 的 如果你只是要小範圍的監控，</description></item><item><title>VMWare ovf 匯入失敗 (line 1) is invalid: SHA256</title><link>https://lovesharepc.github.io/2018/06/05/vmware-ovf-%E5%8C%AF%E5%85%A5%E5%A4%B1%E6%95%97-line-1-is-invalid-sha256/</link><pubDate>Tue, 05 Jun 2018 11:48:00 +0000</pubDate><guid>https://lovesharepc.github.io/2018/06/05/vmware-ovf-%E5%8C%AF%E5%85%A5%E5%A4%B1%E6%95%97-line-1-is-invalid-sha256/</guid><description>該原因為 vsphere client 不支援 (那就讓它支援阿!!!!) 必須用 OVF Tool 轉換 下載 OVF TOOL 用指令進行轉換動作(記得去 OVF tool 目錄執行) ovftool.exe --shaAlgorithm=SHA1 /path/to/the/original/ova_file.ova /path/to/the/new/ova/file-SHA1.ova</description></item><item><title>CentOS 7 安裝 webmin</title><link>https://lovesharepc.github.io/2018/01/02/centos-7-%E5%AE%89%E8%A3%9D-webmin/</link><pubDate>Tue, 02 Jan 2018 14:00:00 +0000</pubDate><guid>https://lovesharepc.github.io/2018/01/02/centos-7-%E5%AE%89%E8%A3%9D-webmin/</guid><description>CentOS 7 設定網路連線 以 nmtui 文字UI設定 yum update 更新 Install WebMin 執行nano /etc/yum.repos.d/webmin.repo 建立內容如下 [Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1 執行 wget http://www.webmin.com/jcameron-key.asc sudo rpm --import jcameron-key.asc sudo yum install webmin perl-Digest-MD5 Add FirewallD firewall-cmd --zone=public --add-port=10000/tcp --permanent systemctl restart firewalld</description></item></channel></rss>