{"id":60,"date":"2014-10-13T03:19:00","date_gmt":"2014-10-12T18:19:00","guid":{"rendered":"https:\/\/www.picolix.jp\/blog\/2014\/10\/centos7.html\/"},"modified":"2019-04-02T10:27:26","modified_gmt":"2019-04-02T01:27:26","slug":"centos7","status":"publish","type":"post","link":"https:\/\/www.picolix.jp\/blog\/2014\/10\/centos7.html","title":{"rendered":"\u3055\u304f\u3089\uff36\uff30\uff33\u3067\u501f\u308a\u3066\u3044\u308b\u30b5\u30fc\u30d0\u3092CentOS7\u306b\u79fb\u884c\u3057\u307e\u3057\u305f\u3002"},"content":{"rendered":"<p>\u3055\u304f\u3089\uff36\uff30\uff33\u3000CentOS6.5\u306e\u30b5\u30fc\u30d0\u3092\u65b0\u305f\u306bCentOS 7\u3092\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u79fb\u884c\u3057\u307e\u3057\u305f\u3002<br \/>\n\uff086.5\u304b\u30897\u3078UPGRADE\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u4eca\u5f8c\u306e\u3053\u3068\u3082\u8003\u3048\u3066\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\uff09<br \/>\nLAMP\u95a2\u4fc2\u306f\u52d5\u3044\u3066\u5f53\u7136\u306a\u306e\u3067\u6c17\u306b\u3057\u3066\u306a\u3044\u306e\u3067\u3059\u304c\u3001<br \/>\n\u30fbOSGrid opensim\u30b5\u30fc\u30d0<br \/>\n\u30fb\u753b\u50cf\u751f\u6210\u30b5\u30fc\u30d0<br \/>\n\u306e\u70ba\u306b\u30011),2)\u304c\u52d5\u4f5c\u5fc5\u9808\u306e\u30a2\u30d7\u30ea\uff06\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\n1) opensim\u95a2\u9023<br \/>\n&nbsp; \u25cb mono<\/p>\n<p>wget http:\/\/download.mono-project.com\/repo\/xamarin.gpg<br \/>\nrpm &#8211;import xamarin.gpg<br \/>\nyum-config-manager &#8211;add-repo http:\/\/download.mono-project.com\/repo\/centos\/<br \/>\n\u3000\u3000\u3000yum install mono<br \/>\n&nbsp; &nbsp; &nbsp; \u3067\u3055\u304f\u3063\u3068\u5165\u3063\u305f\u3002\uff08Mono JIT compiler version 3.10.0\uff09<br \/>\n&nbsp; &nbsp; &nbsp; \u4ee5\u524d\u306f\u95a2\u9023\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5165\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000\u25cb opensim.exe<br \/>\n\u3000\u3000\u3000CentOS 7 \u304b\u3089\u306f\u3001\uff24\uff22\u306f\u3001MySQL\u2192MariaDB \u3078\u5909\u66f4\u3002\u3068\u3044\u3063\u3066\u3082<br \/>\n\u3000\u3000\u3000\u65e7\u30c7\u30fc\u30bf\u3001\u8a2d\u5b9a\u306f\u305d\u306e\u307e\u307e\u4f7f\u3048\u3066\u3001\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3002<\/p>\n<p>2) \u753b\u50cf\u95a2\u9023\uff1a<br \/>\n\u3000\u25cb\u3000ImageMagick-perl-6.7.8.9-10.el7.x86_64<br \/>\n\u3000\u25cb\u3000netpbm<\/p>\n<p>\u3000\u3000\u3000\u3053\u308c\u3082\u554f\u984c\u306a\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff06\u52d5\u4f5c\uff2f\uff2b<\/p>\n<p>3) VPN pptpd<br \/>\n&nbsp; CentOS7,firewall-cmd\u3067\u8a2d\u5b9a\u3057\u305f\u60c5\u5831\u304c\u3042\u307e\u308a\u306a\u304b\u3063\u305f\u304c\u3001\u306a\u3093\u3068\u306a\u304f\u8a2d\u5b9a\u3057\u305f\u3089\u7c21\u5358\u306b<br \/>\n\u52d5\u3044\u305f\u3002\uff08CentOS6.5\u3088\u308a\u3082\u7c21\u5358\u8a2d\u5b9a\uff09<br \/>\n\u3000\u4ee5\u4e0b\u3001\u8a2d\u5b9a\u30e1\u30e2<\/p>\n<p>\u3000#yum install pptpd<br \/>\n&nbsp; \/etc\/pptpd.conf<br \/>\n&nbsp; &nbsp; localip 192.168.0.1<br \/>\n&nbsp; &nbsp; remoteip 192.168.0.234-238,192.168.0.245<\/p>\n<p>&nbsp; \/etc\/rsyslog.conf<br \/>\n&nbsp; &nbsp; &nbsp;*.=debug;<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; news.none;mail.none &nbsp; &nbsp; -\/var\/log\/pptpd<\/p>\n<p>&nbsp; systemctl restart rsyslog.service<\/p>\n<p>&nbsp; \/etc\/ppp\/options.pptpd<br \/>\n&nbsp; #ms-dns 8.8.8.8<br \/>\n&nbsp; ms-dns 210.224.163.4<br \/>\n&nbsp; ms-dns 210.224.163.3<\/p>\n<p>&nbsp;\/etc\/ppp\/chap-secrets<br \/>\n&nbsp;# Secrets for authentication using CHAP<br \/>\n&nbsp;# client &nbsp; &nbsp; &nbsp; &nbsp;server &nbsp;secret &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IP addresses<br \/>\n&nbsp;username * password *<\/p>\n<p>&nbsp;\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a<br \/>\n&nbsp;firewall-cmd &#8211;add-port=1723\/tcp &#8211;permanent<br \/>\n&nbsp;firewall-cmd &#8211;add-port=514\/udp &#8211;permanent<br \/>\n&nbsp;firewall-cmd &#8211;permanent &#8211;direct &#8211;add-rule ipv4 filter INPUT 0 -p 47 -j ACCEPT<br \/>\n&nbsp;firewall-cmd &#8211;zone=public &#8211;add-masquerade &#8211;permanent<br \/>\n&nbsp;firewall-cmd &#8211;reload<\/p>\n<p>&nbsp;firewall-cmd\u3067&#8211;add-masquerade\u3092\u5b9f\u884c\u3059\u308b\u3068ip_forward\u306e\u8a2d\u5b9a\u306f\u4e0d\u8981\u3002<\/p>\n<p>&nbsp;#systemctl start &nbsp;pptpd.service<br \/>\n&nbsp;#systemctl enable pptpd.service<\/p>\n<p>4) mondorescue (ISO\u30a4\u30e1\u30fc\u30b8\u307e\u308b\u3054\u3068\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\uff09<\/p>\n<p>\u3000\u3053\u308c\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002\u307e\u3060CentOS7\u7528\u306f\u51fa\u3066\u304a\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3000\u7121\u7406\u3084\u308a\u3001CentOS6\u7528\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u3066\u898b\u307e\u3057\u305f\u304c\u3060\u3081\u3067\u3057\u305f\u3002<br \/>\n\u3000CentOS 6\u7528\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u3046\u3068\u3001grub\u304c\u7121\u3044\u3063\u3066\u6012\u3089\u308c\u307e\u3059\u3002<br \/>\n\u3000CentOS 7\u304b\u3089grub\u306fgrub2\u306b\u306a\u3063\u3066\u308b\u3002<br \/>\n\u3000<\/p>\n<p>\n\uff1d\uff1d\u4ee5\u4e0b\u81ea\u5206\u7528\u306e\u30b3\u30de\u30f3\u30c9\u30e1\u30e2\u3067\u3059\u3002CentOS7 Sakura == \u30e1\u30e2<br \/>\n\u30fbRUN\u3000LEVEL 3\u306b\u5909\u66f4<br \/>\nln -sf \/lib\/systemd\/system\/runlevel3.target \/etc\/systemd\/system\/default.target<\/p>\n<p>\u30fb\u3044\u3089\u306a\u3044\u30b5\u30fc\u30d3\u30b9\u306f\u3084\u3081\u308b\u3002<br \/>\nsystemctl disable abrt-ccpp.service<br \/>\nsystemctl disable abrt-oops.service<br \/>\nsystemctl disable abrt-vmcore.service<br \/>\nsystemctl disable abrt-xorg.service<br \/>\nsystemctl disable abrtd.service<br \/>\nsystemctl disable atd.service<br \/>\nsystemctl disable dbus-org.freedesktop.nm-dispatcher.service<br \/>\nsystemctl disable auditd.service<br \/>\nsystemctl disable avahi-daemon.service<br \/>\nsystemctl disable bluetooth.service<br \/>\nsystemctl disable accounts-daemon.service<br \/>\nsystemctl disable avahi-daemon.service<br \/>\nsystemctl disable dbus-org.freedesktop.ModemManager1.service<br \/>\nsystemctl disable dmraid-activation.service<br \/>\nsystemctl disable display-manager.service<br \/>\nsystemctl disable firstboot-graphical.service<br \/>\nsystemctl disable fprintd.service<br \/>\nsystemctl disable gdm.service<br \/>\nsystemctl disable hypervkvpd.service<br \/>\nsystemctl disable hypervvssd.service<br \/>\nsystemctl disable irqbalance.service<br \/>\nsystemctl disable iscsi.service<br \/>\nsystemctl disable ksm.service<br \/>\nsystemctl disable ksmtuned.service<br \/>\nsystemctl disable libstoragemgmt.service<br \/>\nsystemctl disable libvirtd.service<br \/>\nsystemctl disable lvm2-monitor.service<br \/>\nsystemctl disable mdmonitor.service<br \/>\nsystemctl disable microcode.service<br \/>\nsystemctl disable ModemManager.service<br \/>\nsystemctl disable multipathd.service<br \/>\nsystemctl disable nfs-lock.service<br \/>\nsystemctl disable packagekit-offline-update.service<br \/>\nsystemctl disable rngd.service<br \/>\nsystemctl disable rpcbind.service<br \/>\nsystemctl disable rtkit-daemon.service<br \/>\nsystemctl disable smartd.service<br \/>\nsystemctl disable spice-vdagentd.service<br \/>\nsystemctl disable sysstat.service<br \/>\nsystemctl disable systemd-readahead-collect.service<br \/>\nsystemctl disable systemd-readahead-drop.service<br \/>\nsystemctl disable systemd-readahead-replay.service<br \/>\nsystemctl disable tuned.service<br \/>\nsystemctl disable vmtoolsd.service<br \/>\nsystemctl disable chronyd<br \/>\n&nbsp;chronyd ==&gt; ntpd\u306e\u4ee3\u308f\u308a\u3089\u3057\u3044<\/p>\n<p>systemctl list-unit-files | grep enable<br \/>\ncups.path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\ncrond.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\ncups.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enabled<br \/>\ndbus-org.fedoraproject.FirewallD1.service &nbsp; enabled<br \/>\ndbus-org.freedesktop.NetworkManager.service enabled<br \/>\ndbus-org.freedesktop.nm-dispatcher.service &nbsp;enabled<br \/>\nfirewalld.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\ngetty@.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enabled<br \/>\nnetcf-transaction.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\nNetworkManager-dispatcher.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\nNetworkManager.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enabled<br \/>\npostfix.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\nrsyslog.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\nserial-getty@.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\nsshd.service &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enabled<br \/>\ncups.socket &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\ndm-event.socket &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\niscsid.socket &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\niscsiuio.socket &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\nlvm2-lvmetad.socket &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\ndefault.target &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enabled<br \/>\nmulti-user.target &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; enabled<br \/>\nnfs.target &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enabled<br \/>\nremote-fs.target &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enabled<br \/>\nreboot<\/p>\n<p>[[\u30ea\u30dd\u30b8\u30c8\u30ea\u30fc]]<br \/>\nyum install -y epel-release<br \/>\nrpm -ivh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-7.rpm<br \/>\nwget http:\/\/download.mono-project.com\/repo\/xamarin.gpg<br \/>\nrpm &#8211;import xamarin.gpg<br \/>\nyum-config-manager &#8211;add-repo http:\/\/download.mono-project.com\/repo\/centos\/<\/p>\n<p>vi \/etc\/yum.repos.d\/CentOS-Base.repo<br \/>\n&nbsp;[centosplus]<br \/>\n&nbsp;name=CentOS-$releasever &#8211; Plus<br \/>\n&nbsp;mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$releasever&amp;arch=$basearch&amp;repo=centosplus&amp;infra=$infra<br \/>\n&nbsp;#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\/centosplus\/$basearch\/<br \/>\n&nbsp;gpgcheck=1<br \/>\n&nbsp;enabled=1<\/p>\n<p>wget http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm<br \/>\nrpm -iUvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm<\/p>\n<p>\n[[yum or make]]<br \/>\nyum install postgre*<br \/>\nyum install mariadb*<br \/>\nyum install php php-cli php-pdo php-mysql php-common php php-cgi php-devel php-gd php-mbstring php-pear php-xmlrpc php-xml php-gd php-pgsql php-json<br \/>\nyum install screen<br \/>\nyum install mono<br \/>\nyum install perl-DBD*<br \/>\nyum install vsftpd<br \/>\nyum install clamd<br \/>\nyum localinstall http:\/\/mirror.centos.org\/centos\/6\/os\/x86_64\/Packages\/nkf-2.0.8b-6.2.el6.x86_64.rpm<br \/>\nyum install ImageMagick-*<br \/>\nwget ftp:\/\/ftp.pangeia.com.br\/pub\/seg\/pac\/chkrootkit.tar.gz<br \/>\n&nbsp; http:\/\/www.mk-mode.com\/octopress\/2014\/08\/07\/centos-7-0-installation-of-chrootkit\/<br \/>\n&nbsp; earching for Suckit rootkit&#8230; Warning: \/sbin\/init INFECTED =&gt; \u3053\u308c\u306f\u8aa4\u52d5\u4f5c\u3089\u3057\u3044\u306e\u3067OK<br \/>\nyum install pptpd<br \/>\nyum install ftp<br \/>\nyum remove cronie-anacron\u3000\uff1d\uff1eanacron\u306f\u5acc\u3044\u3002<br \/>\nyum install cronie-noanacron\u3000\uff1d\uff1e\u3044\u3064\u3082\u306ecron\u306b\u3059\u308b\u3002<br \/>\nyum install libjpeg*<br \/>\nyum install hdparm<\/p>\n<p>\/etc\/yum.conf<br \/>\nexclude=kernel* centos* mono*<\/p>\n<p>yum\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\nyumdownloader bash<br \/>\nyum install &#8211;downloadonly &#8211;downloaddir=\/tmp bash\u3067\u3082\u53ef\u80fd<\/p>\n<p>[[perl\u30e2\u30b8\u30e5\u30fc\u30eb]]<br \/>\ncpan[1]&gt; install Jcode<br \/>\ncpan[2]&gt; install Expect<br \/>\ncpan[1]&gt; install Time::HiRes<br \/>\ncpan[2]&gt; install YAML<br \/>\ninstall Spreadsheet::ParseExcel<br \/>\ninstall Spreadsheet::XLSX<br \/>\ninstall Module::Install<br \/>\ninstall Module::Install::AuthorTests<br \/>\ninstall Module::Install::Repository<br \/>\ninstall Net::Twitter::Lite<br \/>\ninstall XML::RSS<br \/>\ninstall JSON::Any<br \/>\ninstall XML::Simple<br \/>\ninstall DateTime::Format::HTTP<br \/>\ninstall LWP::Protocol::https<br \/>\ninstall Config::Auto<br \/>\ninstall Net::OAuth<\/p>\n<p>WWquitW-Shorten-3.06<br \/>\n&nbsp;perl Build.PL<br \/>\n&nbsp;perl Build<br \/>\n&nbsp;perl Build install<br \/>\nWWW-Shorten-Bitly-1.17<br \/>\nWWW-Shorten-Google-0.01<\/p>\n<p>[[\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc]]<br \/>\n\/etc\/ssh\/sshd_config<br \/>\nPermitRootLogin no<br \/>\nsystemctl reload sshd.service<\/p>\n<p>\/etc\/hosts.allow<br \/>\npptpd : ALL<\/p>\n<p>ALL : 127.0.0.1<br \/>\nsendmail : ALL<\/p>\n<p>vsftpd : xxx.xxx.xxx.xxx<br \/>\n.<br \/>\n.<br \/>\nsshd : xxx.xxx.xxx.xxx<br \/>\n.<br \/>\n.<br \/>\nsyslogd : &nbsp;xxx.xxx.xxx.xxx<\/p>\n<p>\/etc\/hosts.deny<br \/>\nALL:ALL<\/p>\n<p>\/etc\/sysconfig\/selinux<br \/>\nSELINUX=disabled<\/p>\n<p>[[\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb]]<br \/>\n[root@www ~]# firewall-cmd &#8211;state<br \/>\nrunning<br \/>\nfirewall-cmd &#8211;add-service=http &#8211;permanent<br \/>\nfirewall-cmd &#8211;add-port=9000\/udp &#8211;permanent<br \/>\nfirewall-cmd &#8211;add-port=9001\/udp &#8211;permanent<br \/>\nfirewall-cmd &#8211;add-port=9002\/udp &#8211;permanent<br \/>\nfirewall-cmd &#8211;add-port=9003\/udp &#8211;permanent<br \/>\nfirewall-cmd &#8211;add-port=9000\/tcp &#8211;permanent<br \/>\nfirewall-cmd &#8211;add-port=9001\/tcp &#8211;permanent<br \/>\nfirewall-cmd &#8211;add-port=1723\/tcp &#8211;permanent<br \/>\nfirewall-cmd &#8211;add-port=514\/udp &#8211;permanent<br \/>\nfirewall-cmd &#8211;permanent &#8211;direct &#8211;add-rule ipv4 filter INPUT 0 -p 47 -j ACCEPT<br \/>\nfirewall-cmd &#8211;zone=public &#8211;add-masquerade &#8211;permanent<br \/>\nfirewall-cmd &#8211;permanent &#8211;direct &#8211;add-rule ipv4 filter INPUT 1 -s xxx.xxx.xxx.xxx\/32 -j ACCEPT<\/p>\n<p>\nfirewall-cmd &#8211;reload<br \/>\nfirewall-cmd &#8211;list-services<br \/>\n[root@www ~]# firewall-cmd &#8211;list-all<br \/>\npublic (default, active)<br \/>\n&nbsp; interfaces: eth0<br \/>\n&nbsp; sources:<br \/>\n&nbsp; services: dhcpv6-client http ssh<br \/>\n&nbsp; ports: 9001\/udp 1723\/tcp 9003\/udp 9002\/udp 9000\/udp 9001\/tcp 9000\/tcp 514\/udp<br \/>\n&nbsp; masquerade: yes<br \/>\n&nbsp; forward-ports:<br \/>\n&nbsp; icmp-blocks:<br \/>\n&nbsp; rich rules:<\/p>\n<p>\nGUI<br \/>\n# firewall-config<\/p>\n<p>\n[[pptpd]]<br \/>\n\/etc\/pptpd.conf<br \/>\nlocalip 192.168.0.1<br \/>\nremoteip 192.168.0.234-238,192.168.0.245<\/p>\n<p>\/etc\/rsyslog.conf<\/p>\n<p>$ModLoad imudp<br \/>\n$UDPServerRun 514<\/p>\n<p>&nbsp;*.=debug;<br \/>\n&nbsp; &nbsp; &nbsp; news.none;mail.none &nbsp; &nbsp; -\/var\/log\/pptpd<br \/>\nlocal1.* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/var\/log\/routerlog<\/p>\n<p>\/etc\/sysconfig\/rsyslog<br \/>\nSYSLOGD_OPTIONS=&#8221;-x -c 5&#8243;<br \/>\n#-x\u306f\uff24\uff2e\uff33\u53c2\u7167\u3057\u306a\u3044<\/p>\n<p>\/etc\/ppp\/options.pptpd<br \/>\n#ms-dns 8.8.8.8<br \/>\nms-dns 210.224.163.4<br \/>\nms-dns 210.224.163.3<\/p>\n<p>\/etc\/ppp\/chap-secrets<br \/>\n# Secrets for authentication using CHAP<br \/>\n# client &nbsp; &nbsp; &nbsp; &nbsp;server &nbsp;secret &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IP addresses<br \/>\nusername * ?????? *<\/p>\n<p>systemctl start &nbsp;pptpd.service<br \/>\nsystemctl enable pptpd.service<\/p>\n<p>systemctl stop rsyslog.service<br \/>\nsystemctl start rsyslog.service<\/p>\n<p>[root@www log]# netstat -an | grep -i udp | grep 514<br \/>\nudp &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;0 0.0.0.0:514 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0:*<br \/>\nudp6 &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp;0 :::514 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:::*<\/p>\n<p>\n[[FTP]]<br \/>\n\/etc\/vsftpd\/vsftpd.conf<br \/>\nanonymous_enable=NO<br \/>\n#listen_ipv6=YES<br \/>\nlisten=YES<\/p>\n<p>systemctl start vsftpd.service<br \/>\nsystemctl enable vsftpd.service<\/p>\n<p>[[http]]<\/p>\n<p>systemctl start httpd.service<br \/>\nsystemctl enable httpd.service<\/p>\n<p>apachectl -V<br \/>\nEVENT\u30e2\u30fc\u30c9\u306b\u306a\u3063\u3066\u306a\u3044\u3053\u3068\u3002prefork\u30e2\u30fc\u30c9\u3067\u5341\u5206\u3067\u3059\u3002<\/p>\n<p>\n::1 internal dummy connection\u3000\u30ed\u30b0\u6291\u5236<br \/>\n==<br \/>\nSetEnvIf User-Agent &#8220;internal dummy connection&#8221; nolog<\/p>\n<p>&lt;VirtualHost *:80&gt;<\/p>\n<p>&nbsp; ServerName &nbsp; &nbsp;www.picolix.jp<\/p>\n<p>\n&nbsp; ErrorLog &nbsp; &nbsp; &nbsp;\/virtual\/lisa\/log\/error.log<br \/>\n&nbsp; TransferLog &nbsp; \/virtual\/lisa\/log\/transfer.log<br \/>\n&nbsp; CustomLog &nbsp; &nbsp; \/virtual\/lisa\/log\/www_access.log combined env=!nolog<br \/>\n==<\/p>\n<p>\n[[mysql]]<\/p>\n<p>\u65e7\u30b5\u30fc\u30d0\uff1a<br \/>\nmysqldump -ulisa -p?????????????? crenazumina &gt; crenazuminadb-????????.txt<br \/>\nmysqldump -ulisa -p?????????????? lisa &gt; lisadb-????????.txt<br \/>\nmysqldump -ulisa -p?????????????? mwiki &gt; mwikidb-????????.txt<br \/>\nmysqldump -ulisa -p?????????????? opensim &gt; opensimdb-????????.txt<br \/>\nmysqldump -ulisa -p?????????????? opensim073 &gt; opensimdb073-????????.txt<br \/>\nmysqldump -ulisa -p?????????????? wordpress &gt; wordpressdb-????????.txt<\/p>\n<p>\n\/etc\/my.cnf.d\/server.cnf<br \/>\n[mysqld]<br \/>\ncharacter-set-server = utf8<\/p>\n<p>\nsystemctl start mariadb.service<br \/>\nsystemctl enable mariadb.service<\/p>\n<p>mysql -u root -p<\/p>\n<p>set password for root@localhost=password(&#8216;????????&#8217;);<br \/>\nCREATE DATABASE opensim DEFAULT CHARACTER SET utf8;<br \/>\nCREATE DATABASE crenazumina DEFAULT CHARACTER SET utf8;<br \/>\nCREATE DATABASE lisa DEFAULT CHARACTER SET ujis;<br \/>\nCREATE DATABASE opensim073 DEFAULT CHARACTER SET utf8;<br \/>\nCREATE DATABASE wordpress DEFAULT CHARACTER SET utf8;<br \/>\nCREATE DATABASE mwiki DEFAULT CHARACTER SET utf8;<\/p>\n<p>\nCREATE USER &#8216;opensim&#8217;@&#8217;localhost&#8217; identified by &#8216;????????&#8217;;<br \/>\nCREATE USER &#8216;lisa&#8217;@&#8217;localhost&#8217; identified by &#8216;??????????????&#8217;;<\/p>\n<p>SET PASSWORD FOR &#8216;opensim&#8217;@&#8217;www.picolix.jp&#8217; = PASSWORD(&#8216;????????&#8217;);<br \/>\nGRANT ALL ON *.* TO &#8216;lisa&#8217;@&#8217;localhost&#8217;;<\/p>\n<p>mysql -u lisa -p?????????????? crenazumina &lt; crenazuminadb-????????.txt<br \/>\nmysql -u lisa -p?????????????? lisa &lt; lisadb-????????.txt<br \/>\nmysql -u lisa -p?????????????? opensim &lt; opensimdb-????????.txt<br \/>\nmysql -u lisa -p?????????????? opensim073 &lt; opensimdb073-????????.txt<br \/>\nmysql -u lisa -p?????????????? wordpress &lt; wordpressdb-????????.txt<br \/>\nmysql -u lisa -p?????????????? mwiki &lt; &nbsp;mwikidb-????????.txt &amp;<\/p>\n<p>[[postgrtesql]]<\/p>\n<p>\u65e7\u30b5\u30fc\u30d0\uff1a<br \/>\npg_dump lisa -f pgdump????????.tgz -F c -Z 0 -v -U lisa<br \/>\npg_dump lisa2 -f pgdump????????-lisa2.tgz -F c -Z 0 -v -U lisa<\/p>\n<p>yum install postgresql postgresql-server postgresql-libs postgresql-devel postgresql-contribsu &#8211; postgres<br \/>\ninitdb &#8211;encoding=EUC_JP &#8211;no-locale<br \/>\nc<br \/>\nsystemctl enable postgresql.service<\/p>\n<p>-bash-4.2$ createuser -s -d -r -P lisa<br \/>\nEnter password for new role:<br \/>\nEnter it again:??????????????<\/p>\n<p>-bash-4.2$createdb lisa<br \/>\n-bash-4.2$createdb lisa2<\/p>\n<p>\n-bash-4.2$ psql<br \/>\npsql (9.2.7)<br \/>\nType &#8220;help&#8221; for help.<\/p>\n<p>postgres=# du<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;List of roles<br \/>\n&nbsp;Role name | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Attributes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | Member of<br \/>\n&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp;lisa &nbsp; &nbsp; &nbsp;| Superuser, Create role, Create DB &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| {}<br \/>\n&nbsp;postgres &nbsp;| Superuser, Create role, Create DB, Replication | {}<\/p>\n<p>postgres=# l<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;List of databases<br \/>\n&nbsp; &nbsp;Name &nbsp; &nbsp;| &nbsp;Owner &nbsp; | Encoding | Collate | Ctype | &nbsp; Access privileges<br \/>\n&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp;lisa &nbsp; &nbsp; &nbsp;| postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; |<br \/>\n&nbsp;postgres &nbsp;| postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; |<br \/>\n&nbsp;lisa2 &nbsp; &nbsp; | postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; |<br \/>\n&nbsp;template0 | postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; | =c\/postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; | postgres=CTc\/postgres<br \/>\n&nbsp;template1 | postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; | =c\/postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; | postgres=CTc\/postgres<\/p>\n<p>postgres=# ALTER USER postgres encrypted password &#8216;??????????????&#8217;;<br \/>\nALTER ROLE<br \/>\npostgres=# ALTER USER lisa encrypted password &#8216;??????????????&#8217;;<br \/>\nALTER ROLE<\/p>\n<p>\/var\/lib\/pgsql\/data\/pg_hba.conf<br \/>\nlocal &nbsp; all &nbsp; &nbsp; &nbsp; &nbsp; lisa &nbsp; &nbsp; &nbsp;md5<\/p>\n<p>systemctl restart postgresql.service<\/p>\n<p>[root@www data]# psql -d lisa -U lisa<br \/>\nPassword for user lisa:<br \/>\npsql (9.2.7)<\/p>\n<p>[root@www db]# pg_restore -d lisa -U lisa pgdump????????.tgz<br \/>\nPassword:<br \/>\npg_restore: [archiver (db)] Error while PROCESSING TOC:<br \/>\npg_restore: [archiver (db)] Error from TOC entry 508; 2612 16388 PROCEDURAL LANGUAGE plpgsql lisa<br \/>\npg_restore: [archiver (db)] could not execute query: ERROR: &nbsp;language &#8220;plpgsql&#8221; already exists<br \/>\n&nbsp; &nbsp; Command was: CREATE PROCEDURAL LANGUAGE plpgsql;<\/p>\n<p>[root@www db]# pg_restore -d lisa2 -U lisa pgdump????????-lisa2.tgz<br \/>\nPassword:<\/p>\n<p>-bash-4.2$ psql -U lisa<br \/>\nPassword for user lisa:<br \/>\npsql (9.2.7)<br \/>\nType &#8220;help&#8221; for help.<\/p>\n<p>lisa=# l<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;List of databases<br \/>\n&nbsp; &nbsp;Name &nbsp; &nbsp;| &nbsp;Owner &nbsp; | Encoding | Collate | Ctype | &nbsp; Access privileges<br \/>\n&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp;lisa &nbsp; &nbsp; &nbsp;| postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; |<br \/>\n&nbsp;postgres &nbsp;| postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; |<br \/>\n&nbsp;lisa2 &nbsp; &nbsp; | postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; |<br \/>\n&nbsp;template0 | postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; | =c\/postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; | postgres=CTc\/postgres<br \/>\n&nbsp;template1 | postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; | =c\/postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; | postgres=CTc\/postgres<br \/>\n(5 rows)<\/p>\n<p>lisa=# d<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;List of relations<br \/>\n&nbsp;Schema | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; Type &nbsp; | Owner<br \/>\n&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;-<br \/>\n&nbsp;public | blog_url_conv_data &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | blog_url_conv_data_seq_seq &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | sequence | lisa<br \/>\n&nbsp;public | blog_url_conv_data_url-crenazumina_seq | sequence | lisa<br \/>\n&nbsp;public | comsearch_release_seq &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| sequence | lisa<br \/>\n&nbsp;public | dmoz_link_cnt &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | dmoz_link_robot &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | eki_data &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | nouki_mst &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | pazdora &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | pazdora_kskill_m &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | pazdora_skill_m &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | pazdora_type_m &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | secondlife_history &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | share_d &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | sozai_dmoz_art_m &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | syouhin_data &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | table &nbsp; &nbsp;| lisa<br \/>\n&nbsp;public | testnouse &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| table &nbsp; &nbsp;| lisa<br \/>\n(17 rows)<\/p>\n<p>-bash-4.2$ psql -U lisa<br \/>\nPassword for user lisa:<br \/>\npsql (9.2.7)<br \/>\nType &#8220;help&#8221; for help.<\/p>\n<p>lisa=# c lisa2<br \/>\nYou are now connected to database &#8220;lisa2&#8221; as user &#8220;lisa&#8221;.<br \/>\nlisa2=# l<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;List of databases<br \/>\n&nbsp; &nbsp;Name &nbsp; &nbsp;| &nbsp;Owner &nbsp; | Encoding | Collate | Ctype | &nbsp; Access privileges<br \/>\n&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&nbsp;lisa &nbsp; &nbsp; &nbsp;| postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; |<br \/>\n&nbsp;postgres &nbsp;| postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; |<br \/>\n&nbsp;lisa2 &nbsp; &nbsp; | postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; |<br \/>\n&nbsp;template0 | postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; | =c\/postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; | postgres=CTc\/postgres<br \/>\n&nbsp;template1 | postgres | EUC_JP &nbsp; | C &nbsp; &nbsp; &nbsp; | C &nbsp; &nbsp; | =c\/postgres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; | postgres=CTc\/postgres<br \/>\n(5 rows)<\/p>\n<p>lisa2=# d<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; List of relations<br \/>\n&nbsp;Schema | &nbsp;Name &nbsp; | Type &nbsp;| Owner<br \/>\n&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;-+&#8212;&#8212;-<br \/>\n&nbsp;public | share_d | table | lisa<br \/>\n&nbsp;public | user_m &nbsp;| table | lisa<br \/>\n(2 rows)<\/p>\n<p>\n[[CRON]]<br \/>\n\/etc\/crontab<br \/>\nPERL5LIB=\/root\/perl5\/lib\/perl5:\/home\/shoichi\/perl5\/lib\/perl5:<br \/>\n\u2191\u3053\u308c\u304c\u306a\u3044\u3068\u3001perl\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30a8\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<p>\/etc\/cron.d\/0hourly<br \/>\n\u5168\u3066#<br \/>\n\/etc\/cron.d\/dailyjobs<br \/>\n\u5168\u3066#<\/p>\n<p>systemctl stop crond.service<br \/>\nsystemctl start crond.service<br \/>\n# run-parts<br \/>\n45 * * * * root run-parts \/etc\/cron.hourly<br \/>\n46 3 * * * root run-parts \/etc\/cron.daily<br \/>\n22 4 * * 0 root run-parts \/etc\/cron.weekly<br \/>\n42 4 1 * * root run-parts \/etc\/cron.monthly<br \/>\n59 23 * * * root \/virtual\/lisa\/cron\/analog_rotate.sh &gt; \/dev\/null 2&gt;&amp;1<br \/>\n2,12,22,32,42,52 * * * * root \/virtual\/lisa\/cron\/cron1.sh &gt; \/dev\/null 2&gt;&amp;1<\/p>\n<p>[[postfix]]<br \/>\n\/etc\/postfix\/main.cf<br \/>\nmynetworks = 127.0.0.0\/8 , xxx.xxx.xxx.xxx\/32<\/p>\n<p>systemctl stop postfix.service<br \/>\nsystemctl start postfix.service<\/p>\n<p>\n[root@www cron.daily]# pwd<br \/>\n\/etc\/cron.daily<br \/>\n[root@www cron.daily]# ln -s \/virtual\/lisa\/cron\/syschk.sh syschk.sh<br \/>\n[root@www cron.daily]# ln -s \/virtual\/lisa\/cron\/viurscheck-clama.sh viurscheck-clama.sh<br \/>\ndns-x86.tar.gz<br \/>\ncp dnstran \/usr\/bin\/<br \/>\ncp analogurldecode\/usr\/bin\/analogurldecode<br \/>\nanalog-6.0.tar.gz \u7f6e\u304d\u63db\u3048\u308b<br \/>\ncp analog \/usr\/bin\/analog<\/p>\n<p>\n[[\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af]]<br \/>\nln -s \/bin\/mono \/usr\/local\/bin\/mono<br \/>\nln -s \/bin\/perl \/usr\/local\/bin\/perl<br \/>\nln -s \/usr\/bin\/convert \/usr\/local\/bin\/convert<\/p>\n<p>\n[[\u30e1\u30e2]]<br \/>\nGNOME \u65e5\u672c\u8a9e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u82f1\u6587\u5b57\u306b<br \/>\nhttp:\/\/www.atmarkit.co.jp\/flinux\/rensai\/linuxtips\/a077changelang.html<br \/>\nteraterm<br \/>\n&nbsp;\u8a2d\u5b9a\u2010\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u2010\uff21\uff2e\uff33\uff29\u30ab\u30e9\u30fc\u4ee5\u5916\u5168\u90e8\u5916\u3059<br \/>\n\/usr\/lib\/systemd\/system<br \/>\n\/lib\/systemd\/system<\/p>\n<p>[root@www cron.daily]# hdparm -t \/dev\/vda2<br \/>\n\/dev\/vda2:<br \/>\n&nbsp;Timing buffered disk reads: 486 MB in &nbsp;3.03 seconds = 160.40 MB\/sec<br \/>\n[root@www23254ue backup]# hdparm -t \/dev\/vda2<br \/>\n\/dev\/vda2:<br \/>\n&nbsp;Timing buffered disk reads: &nbsp;10 MB in &nbsp;3.58 seconds = &nbsp; 2.79 MB\/sec<br \/>\n&nbsp;Timing buffered disk reads: 124 MB in &nbsp;3.01 seconds = &nbsp;41.13 MB\/sec<\/p>\n<p>\n[[\u30b5\u30fc\u30d3\u30b9]]<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n[root@www ~]# cd \/usr\/lib\/systemd\/system<br \/>\n[root@www system]# cat opensim.service<br \/>\n[Unit]<br \/>\nDescription=opensim Server<br \/>\nAfter=mariadb.target<\/p>\n<p>[Service]<br \/>\nType=notify<br \/>\nEnvironmentFile=\/etc\/opensim.env<br \/>\nExecStart=\/usr\/bin\/screen -S $PROGNAME -d -m $MONO $OSGRID\/OpenSim.exe<br \/>\nExecStop=\/usr\/bin\/screen -S $PROGNAME -p 0 -X stuff $&#8217;quitn&#8217; 1&gt; \/dev\/null 2&gt;&amp;1<\/p>\n<p>KillSignal=SIGCONT<br \/>\nPrivateTmp=true<\/p>\n<p>[Install]<br \/>\nWantedBy=multi-user.target<\/p>\n<p>&#8212;-<br \/>\n\/etc\/opensim.env<br \/>\n&#8212;-<br \/>\nPROGNAME=OpenSim<br \/>\nOSGRID=\/projects\/opensim<br \/>\nMONO=\/usr\/local\/bin\/mono<br \/>\nexport MONO_THREADS_PER_CPU=125<br \/>\nexport LANG=C<br \/>\nulimit -s 262144<\/p>\n<p>[[\u30cd\u30c3\u30c8\u30ef\u30fc\u30af]]<\/p>\n<p>nmtui<br \/>\nnmcli c d &#8220;System eth0&#8221; ; sudo nmcli c u &#8220;System eth0&#8221;<br \/>\nnmcli c d &#8220;ens33&#8221; ; sudo nmcli c u &#8220;ens33&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u304f\u3089\uff36\uff30\uff33\u3000CentOS6.5\u306e\u30b5\u30fc\u30d0\u3092\u65b0\u305f\u306bCentOS 7\u3092\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u79fb\u884c\u3057\u307e\u3057\u305f\u3002 \uff086.5\u304b\u30897\u3078UPGRADE\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u4eca\u5f8c\u306e\u3053\u3068\u3082\u8003\u3048\u3066\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\uff09 LAMP\u95a2\u4fc2\u306f\u52d5\u3044\u3066 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.picolix.jp\/blog\/2014\/10\/centos7.html\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3055\u304f\u3089\uff36\uff30\uff33\u3067\u501f\u308a\u3066\u3044\u308b\u30b5\u30fc\u30d0\u3092CentOS7\u306b\u79fb\u884c\u3057\u307e\u3057\u305f\u3002&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[6],"_links":{"self":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts\/60"}],"collection":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":1,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":1384,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts\/60\/revisions\/1384"}],"wp:attachment":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}