네이버 웹마스터 도구에서 사이트를 등록하려면 소유권 인증이 필요합니다.

메타 태그 인증으로 선택하고 고도몰 관리자 페이지에서 디자인 -> 전체 레이아웃 -> 상단 레이아웃

여기에서 메타태그를 삽입하고 저장하면 됩니다.

고도몰 쇼핑몰 네이버 웹마스터도구 사이트 등록

저장한 다음에 소유권 확인을 하고 계속 진행하시면 됩니다.

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

윈도우10에 기본적으로 있지만 디폴트가 비활성화라서 해당 기능을 켜주어야 합니다.

좌측 하단의 돋보기를 눌러서 Windows 기능을 검색해서 실행하면 아래의 화면이 뜹니다.

윈도우10 TFTP Client

스크롤을 아래로 내려서 TFTP Client 를 체크하고 확인을 누르면 됩니다.

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

iwinv 서버관리에 취약점 점검이 새로 생겼네요~

뭔가 싶어서 한번 해보았습니다.

 

iwinv 취약점 점검 서비스

한참을 기다려야 하나 봅니다~

 

결과 나오면 업데이트 하겠습니다.

 

24시간이 훨씬 더 지났는데 아직도 결과가 나오지 않는군요~

이렇게 오래 걸리지는 않지 싶은데 뭔가 문제가 있는가 보네요~

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

티스토리는 rss 만 제공되는데 sitemap.xml 도 제공되면 좋겠네요~

무료로 사이트맵을 작성해주는 사이트가 있긴 하지만 불필요한 url 까지 생기는 문제가 있어서,

파이썬으로 한번 만들어 소스코드 공개합니다.

포스팅 주소가 숫자로 된 티스토리 블로그만 해당됩니다.

 

# coding=utf-8
from urllib2 import urlopen
from bs4 import BeautifulSoup
import xml.etree.ElementTree as xml
import time

BLOG_URL = 'https://ivps.tistory.com/' ### 블로그 주소
if ( BLOG_URL[len(BLOG_URL)-1] != '/' ):
  BLOG_URL += '/'
post_end = 0
html = urlopen(BLOG_URL)
soup = BeautifulSoup(html, "html.parser")
for hr in soup.findAll('a', {'class':'link_post'}):
  tmp = hr.get('href')[1:]
  if ( tmp != '' ):
    max = int( tmp )
    if ( post_end < max ):
      post_end = max
print "post_end " + str(post_end)

### SITEMAP XML Create
sitemap = xml.Element('urlset')
sitemap.set('xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9')
print ('<?xml version=\'1.0\' encoding=\'utf-8\'?>')
print ('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">')
x1_1st = xml.SubElement(sitemap, 'url')
x2_lo = xml.SubElement(x1_1st, 'loc').text        = BLOG_URL
x2_ch = xml.SubElement(x1_1st, 'changefreq').text = 'always'
x2_pr = xml.SubElement(x1_1st, 'priority').text   = '1.0'
print ('<url><loc>' + BLOG_URL + '</loc><changefreq>always</changefreq><priority>1.0</priority></url>')
for i in range(post_end):
  url = BLOG_URL + str(i)
  try:
    html = urlopen(url)
    soup = BeautifulSoup(html, "html.parser")
    #print (soup.head.find("meta", {"name":"description"}).get('content'))
    x2_ur = xml.SubElement(sitemap, 'url')
    x3_lo = xml.SubElement(x2_ur, 'loc').text        = url
    x3_ch = xml.SubElement(x2_ur, 'changefreq').text = 'daily'
    x1_pr = xml.SubElement(x2_ur, 'priority').text   = '0.9'
    print ('<url><loc>' + url + '</loc><changefreq>daily</changefreq><priority>0.9</priority></url>')
  except:
    print (url + ' is not found')
  time.sleep(0.01)
print ('</urlset>')

#xml.dump(sitemap)
xml.ElementTree(sitemap).write('./sitemap.xml', encoding='utf-8', xml_declaration=True)

사용해 보시고 문제점이 있다면 댓글 남겨주세요~

생성된 파일을 공지사항에 첨부해놓고 해당 링크 주소를 웹마스터 도구에 제출하면 됩니다.

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

아파치 + 파이썬 연동 환경에서 파이썬으로 보낸 GET 및 POST 파라메터 값을 받는 방법입니다.

#!/usr/bin/env python
import cgi

print ("Content-type: text/html\n")
print ("p1 : " + cgi.FieldStorage()['p1'].value + "<br>")
print ("p2 : " + cgi.FieldStorage()['p2'].value + "<br>")

test.py?p1=v1&p2=v2

 

결과는 아래와 같이 나옵니다.

p1 : v1

P2 : v2

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

파이썬 urlopen 모듈에러

from urllib.request import urlopen
from bs4 import BeautifulSoup

위와 같이 작성하면 아래와 같은 에러가 납니다.

Traceback (most recent call last):
  File "t.py", line 2, in <module>
    from urllib.request import urlopen
ImportError: No module named request

urllib2 로 변경하면 됩니다.

from urllib2 import urlopen
from bs4 import BeautifulSoup

이제 다시 테스트 해보세요~

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

인코딩을 페이지에 맞는 euc-kr 또는 utf-8 로 바꿔주면 됩니다.

[root@ivps ~]# python
Python 2.7.5 (default, Apr  9 2019, 14:30:50)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> rs = req.session()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'req' is not defined
>>> rs = requests.session()
>>> post = rs.get('https://ivps.tistory.com/')
>>> print post.text
<!doctype html>
<html lang="ko">
<head>
    <meta charset="utf-8">
    <title>TISTORY</title>
    <link rel="stylesheet" type="text/css" href="//t1.daumcdn.net/tistory_admin/www/style/top/font.css">
    <link rel="stylesheet" type="text/css" href="//t1.daumcdn.net/tistory_admin/www/style/top/error.css">
</head>
<body>
<div id="kakaoIndex">
    <a href="#kakaoBody">본문 ���기</a>
    <a href="#kakaoGnb">�� ���기</a>
</div>
>>> post.encoding
'ISO-8859-1'
>>> post.encoding = 'utf-8'
>>> print post.text
<!doctype html>
<html lang="ko">
<head>
    <meta charset="utf-8">
    <title>TISTORY</title>
    <link rel="stylesheet" type="text/css" href="//t1.daumcdn.net/tistory_admin/www/style/top/font.css">
    <link rel="stylesheet" type="text/css" href="//t1.daumcdn.net/tistory_admin/www/style/top/error.css">
</head>
<body>
<div id="kakaoIndex">
    <a href="#kakaoBody">본문 바로가기</a>
    <a href="#kakaoGnb">메뉴 바로가기</a>
</div>

post.encoding = 'utf-8'

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

[CentOS] Python PIP 설치

Python 2019. 8. 19. 09:41

[root@ivps ~]# pip
-bash: pip: command not found

[root@ivps ~]# yum install python-pip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.kakao.com
 * epel: mirrors.aliyun.com
 * extras: mirror.kakao.com
 * remi-php72: mirror.innosol.asia
 * remi-safe: mirror.innosol.asia
 * updates: mirror.kakao.com
Resolving Dependencies
--> Running transaction check
---> Package python2-pip.noarch 0:8.1.2-10.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch            Version               Repository     Size
================================================================================
Installing:
 python2-pip          noarch          8.1.2-10.el7          epel          1.7 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 1.7 M
Installed size: 7.2 M
Is this ok [y/d/N]: y
Downloading packages:
python2-pip-8.1.2-10.el7.noarch.rpm                        | 1.7 MB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python2-pip-8.1.2-10.el7.noarch                              1/1
  Verifying  : python2-pip-8.1.2-10.el7.noarch                              1/1

Installed:
  python2-pip.noarch 0:8.1.2-10.el7

Complete!

패키지가 없다고 나오면 epel-release 를 먼저 설치하세요~

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

티스토리에 2차 도메인으로 개인 도메인이 연결되어 있었는데 보안사이트가 적용되지 않아서 과감히 연결을 해제했습니다.

1차와 2차 모두 네이버 웹마스터 도구에 등록이 되어 있는데도 하나를 지웠더니 방문수가 급격하게 줄어들었네요~

유입 감소를 해결하기 위한 방법에 대해서 알아보겠습니다.

티스토리 개인 도메인 연결 해제 후 검색유입 감소

검색 유입다음에서만 되는 것 같습니다.

며칠 좀 더 지켜봐야겠네요~

 

개인도메인 삭제한지 딱 7일이 지났는데, 네이버, 구글 실망입니다~ ㅋ

중복 사이트 패널티 먹은건지 잘 모르겠지만 1차 도메인 주소로 검색 색인현황을 보니 좀 더딘 것 같습니다.

네이버 웹마스터도구 색인현황

 

▶ 1차 조치사항 ( 7일이 지난 후 )

  ☞ 기존 2차 도메인 호스트를 가상서버에 웹서비스를 구축하고 .htaccess 작성해서 1차 도메인으로 리다이렉트 적용

      한번 지켜봐야겠네요~

      효과가 있네요~ 예전만 못하지만 기존 2차 도메인 주소 타고 리디렉션 되어서 오는 것 같습니다.

 

▶ 검색유입 감소 해결 방법

  ☞ 1차 도메인 네이버 및 구글 웹마스터도구에 사이트 주소 등록

  ☞ 기존 2차 도메인 주소를 1차로 리디렉션 하기

RewriteEngine On

RewriteCond %{HTTP_HOST} ^blog\.ivps\.kr$ [NC]
RewriteRule ^(.*)$ https://ivps.tistory.com%{REQUEST_URI} [R=301,L]

제 블로그 주소를 예로 들었는데 본인의 블로그 주소에 맞게 수정하시면 됩니다.

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,

PCIe 및 USB 각 버전별 전송 속도를 테이블로 비교 정리

...더보기
PCI-e 버전 Introduced Transfer rate x1 x2 x4 x8 x16
1.0 2003 2.5 GT/s 250 MB/s 0.5 GB/s 1.0 GB/s 2.0 GB/s 4.0 GB/s
2.0 2007 5.0 GT/s 500 MB/s 1.0 GB/s 2.0 GB/s 4.0 GB/s 8.0 GB/s
3.0 2010 8.0 GT/s 984.6 MB/s 1.97 GB/s 3.94 GB/s 7.88 GB/s 15.75 GB/s
4.0 2017 16 GT/s 1969 MB/s 3.94 GB/s 7.88 GB/s 15.75 GB/s 31.51 GB/s
5.0 2019 32 GT/s 3938 MB/s 7.88 GB/s 15.75 GB/s 31.51 GB/s 63.02 GB/s
6.0 (계획) 2021 64 GT/s 7877 MB/s 15.75 GB/s 31.51 GB/s 63.02 GB/s 126.03 GB/s

편집용

출처 : https://en.wikipedia.org/wiki/PCI_Express

PCI-e 전송 속도 비교

USB 버전별 전송 속도

버전 속도
1.0 / 1.1 Low Speed 1.5 Mbps
Full Speed 12 Mbps
USB 2.0   480 Mbps
USB 3.0 ( = 3.1 Gen 1 = 3.2 Gen 1 )   5 Gbps
USB 3.1 Gen 2 ( = 3.2 Gen2 )   10 Gbps
USB 3.2 Gen 2x2   20 Gbps

날이 갈수록 속도가 배로 빨리지는군요~

 

'IT제품' 카테고리의 다른 글

UMIDIGI A5 Pro 스펙  (0) 2019.11.15
라이젠 7 3700X CPU-Z  (0) 2019.09.10
그래픽카드 성능순위 Passmark  (0) 2019.08.12
제온 X3450 GA-P55A-UD3R 오버클럭  (0) 2019.07.24
SSD 인식 불량  (0) 2019.07.22
블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,