Linux/centos2019. 2. 13. 19:08

오늘도 여전히(?) selinux가 날 잡는군 -_-


[링크 : https://wiki.centos.org/HowTos/SetUpSamba]

[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=18219476]


firewall-cmd --permanent --zone=public --add-service=samba

firewall-cmd --reload 

[링크 : https://www.manualfactory.net/10439] 방화벽

[링크 : https://www.manualfactory.net/10153]

'Linux > centos' 카테고리의 다른 글

centos timezone 변경  (2) 2019.02.23
svn on centos  (0) 2019.02.22
centos backup  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
KVM spice 원격 접속시 No route to host  (0) 2019.01.28
Posted by 구차니
Linux/centos2019. 2. 13. 17:34

'Linux > centos' 카테고리의 다른 글

svn on centos  (0) 2019.02.22
smb on centos  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
KVM spice 원격 접속시 No route to host  (0) 2019.01.28
yum checkupdate  (0) 2019.01.25
Posted by 구차니
Linux/centos2019. 2. 13. 17:13

귀찮구먼...


-------------- For RHEL/CentOS 7 --------------

# wget dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

# rpm -ihv epel-release-7-11.noarch.rpm  

[링크 : http://wget dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm]


+

2019.04.22

위에거는 복잡하니 아래것만 외우자? ㅋ

$ sudo yum -y install epel-release 

[링크 : http://cheapwindowsvps.com/blog/how-to-install-htop-on-centos-7/]

'Linux > centos' 카테고리의 다른 글

smb on centos  (0) 2019.02.13
centos backup  (0) 2019.02.13
KVM spice 원격 접속시 No route to host  (0) 2019.01.28
yum checkupdate  (0) 2019.01.25
centos 서비스 등록하기  (0) 2018.12.03
Posted by 구차니
Linux2019. 2. 3. 19:22

nload는 NIC 별로 보여주고

iftop은 합쳐서 보여주고


개인적으로는 nload가 취향인듯


[링크 : https://www.binarytides.com/linux-commands-monitor-network/]

'Linux' 카테고리의 다른 글

linux multi core 압축  (0) 2019.02.22
bash history 번호 옆 *  (0) 2019.02.16
ls에서 전체년도 보기  (0) 2019.02.03
bcache - SSD write cache  (0) 2019.02.01
bacahe(SSD) + RAID(HDD), 그리고 bcache(ramfs) + RAID(HDD)  (0) 2019.02.01
Posted by 구차니
Linux2019. 2. 3. 18:49

ctime을 확인해보려고 했는데 년도가 빠져서 어떻게 하면 제대로 볼 수 있을까 하는 궁금증에 검색


$ ls --full-time 

[링크 : https://unix.stackexchange.com/.../show-the-year-while-listing-files-in-the-current-directory/218887]

'Linux' 카테고리의 다른 글

bash history 번호 옆 *  (0) 2019.02.16
네트워크 속도 모니터링  (0) 2019.02.03
bcache - SSD write cache  (0) 2019.02.01
bacahe(SSD) + RAID(HDD), 그리고 bcache(ramfs) + RAID(HDD)  (0) 2019.02.01
bash builtin 명령어 .  (0) 2019.01.28
Posted by 구차니
Linux2019. 2. 1. 08:37

freeNAS에서 내세우는 XFS의 의한 성능 향상과 SSD 캐싱 볼륨 설정중에

SSD write cache로 쓰는건 리눅스 커널 4.1 이후 부터 block cache로 적용이 된 듯

(freeNAS 써야 하는 이유중에 큰 하나가 사라지는 느낌인데?)


[링크 : https://www.kernel.org/doc/Documentation/bcache.txt]

[링크 : https://bcache.evilpiepirate.org/]

Posted by 구차니
Linux2019. 2. 1. 08:32

bcache를 SSD에 하면 4K 성능은 올라가겠지만..

수명을 너무 갉아 먹을것 같아서 램에다 올리면 성능도 향상되고 수명도 안 줄이고 좋겠지!?

라는 생각에 검색을 해보는데

[링크 : https://unix.stackexchange.com/questions/138571/bcache-on-md-or-md-on-bcache]

[링크 : https://www.phoronix.com/scan.php?page=article&item=linux414-bcache-raid&num=1]


벤치결과만 보면 SSD가 짱이에요! 이긴 한데

어짜피 GbE 써도 100MB/s 정도가 한계라

그 이상의 퍼포먼스가 크게 필요 없다면 BCache Writeback으로 설정해서 쓰면 무난한

성능을 RAID에서 뽑아낼수 있지 않을까 기대가 되긴 한다.

(빌드 서버라던가, 개발 서버라던가 이런 용도로)

[링크 : https://www.phoronix.com/scan.php?page=article&item=linux414-bcache-raid&num=4]


램디스크 만들어서 리니지 2 돌려본 결과 체감할 성능 향상은 없는 죽여주는 벤치마크 결과가 나왔다고.

SSD 성능이라는 측면과 리니지 2는 write가 아닌 read니까 체감할수 있을려나?

[링크 : http://playwares.com/freeboard/31338395]

'Linux' 카테고리의 다른 글

ls에서 전체년도 보기  (0) 2019.02.03
bcache - SSD write cache  (0) 2019.02.01
bash builtin 명령어 .  (0) 2019.01.28
네트워크 인터페이스 명칭이 이상하다? enp0s0? em0?  (0) 2019.01.23
getopt()  (0) 2018.11.12
Posted by 구차니
Linux/centos2019. 1. 28. 16:19

firewalld 라는 망할(?) 새로운 데몬이 추가되어 얘를 죽여야 된다. -_-


요건 일단 서비스 죽이는 법

# systemctl stop firewalld 

[링크 : https://www.liquidweb.com/kb/how-to-stop-and-disable-firewalld-on-centos-7/]


firewalld에서 차단하는 목록을 확인하는 법을 찾아야겠다..

# firewall-cmd --list-all 

# firewall-cmd --add-port=21/tcp

# firewall-cmd --remove-port=21/tcp

[링크 : https://www.manualfactory.net/10153]


+

[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=22053128]


'Linux > centos' 카테고리의 다른 글

centos backup  (0) 2019.02.13
centos epel 저장소 추가  (0) 2019.02.13
yum checkupdate  (0) 2019.01.25
centos 서비스 등록하기  (0) 2018.12.03
centos 서비스 자동시작  (0) 2018.11.16
Posted by 구차니
Linux2019. 1. 28. 10:03

먼가 오해를 한거 같은데.. .은 그냥 source 이다.

단순하게 환경변수 설정하는데 쓰는 거지

어떠한 것을 실행하기 위한건 아니란 것..


# .

-bash: .: filename argument required

.: usage: . filename [arguments] 



BASH BUILTIN COMMANDS

       Unless  otherwise  noted, each builtin command documented in this section as

       accepting options preceded by -  accepts  --  to  signify  the  end  of  the

       options.  The :, true, false, and test builtins do not accept options and do

       not treat -- specially.  The exit, logout, break, continue, let,  and  shift

       builtins accept and process arguments beginning with - without requiring --.

       Other builtins that accept arguments but  are  not  specified  as  accepting

       options  interpret arguments beginning with - as invalid options and require

       -- to prevent this interpretation.

       : [arguments]

              No effect; the command does nothing beyond  expanding  arguments  and

              performing any specified redirections.  A zero exit code is returned.


        .  filename [arguments]

       source filename [arguments]

              Read and execute commands from filename in the current shell environ‐

              ment and return the exit status of the  last  command  executed  from

              filename.   If  filename does not contain a slash, file names in PATH

              are used  to  find  the  directory  containing  filename.   The  file

              searched  for  in  PATH  need not be executable.  When bash is not in

              posix mode, the current directory is searched if no file is found  in

              PATH.   If  the  sourcepath  option  to  the shopt builtin command is

              turned off, the PATH is not searched.  If any arguments are supplied,

              they  become  the  positional  parameters  when filename is executed.

              Otherwise the positional parameters are unchanged.  The return status

              is  the  status of the last command exited within the script (0 if no

              commands are executed), and false if filename is not found or  cannot

              be read. 


얜 멀까...

# . ls

-bash: .: /usr/bin/ls: cannot execute binary file 



.과 source는 동일한 건데

admin-openrc.sh 파일을 로드하여 Identity 서비스에 대한 위치와 admin 프로젝트 및 사용자 credential과 함께 환경 변수를 넣어줍니다:


$ source admin-openrc.sh 

[링크 : https://docs.openstack.org/liberty/ko_KR/install-guide-obs/keystone-openrc.html]

'Linux' 카테고리의 다른 글

bcache - SSD write cache  (0) 2019.02.01
bacahe(SSD) + RAID(HDD), 그리고 bcache(ramfs) + RAID(HDD)  (0) 2019.02.01
네트워크 인터페이스 명칭이 이상하다? enp0s0? em0?  (0) 2019.01.23
getopt()  (0) 2018.11.12
mount -o codepage=cp949  (0) 2018.01.04
Posted by 구차니
Linux/centos2019. 1. 25. 14:50

yum에는 익숙하지 않아서..

아무생각 없이 update 했더니 apt-get upgrade 하는 작동이 되어버려서 검색..


The check-update command will refresh the package index and check for available updates:


yum check-update 

[링크 : https://unix.stackexchange.com/questions/6252/what-is-yum-equivalent-of-apt-get-update]


yum update package_name

지정된 패키지를 사용 가능한 최신 버전으로 업데이트하는데 사용됩니다. 지정된 패키지가 없을 경우, yum은 설치된 모든 패키지를 업데이트하게 됩니다.

--obsoletes 옵션을 사용할 경우 (예: yum --obsoletes package_name), yum은 오래된 패키지를 처리하게 됩니다. 따라서, 오래된 패키지는 업데이트를 하는 동안 적절히 삭제 및 교체됩니다.


yum check-update

이 명령으로 업데이트가 설치된 패키지에 적용할 수 있는지에 대한 여부를 확인할 수 있습니다. 업데이트를 적용할 수 있을 경우 yum은 전체 리포지터리에서 모든 패키지 목록을 반환합니다. 

[링크 : https://access.redhat.com/...updating_packages_from_the_command_line_with_yum]

Posted by 구차니