记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
 
0

CentOS基础安全设定

发表者:分类:Devops2014-01-24 09:35:00 阅读[2605]
CentOS基础安全设定我们必须明白:最小的权限+最少的服务=最大的安全所以,无论是配置任何服务器,我们都必须把不用的服务关闭、把系统权限设置到最小话,这样才能保证服务器最大的安全。下面是CentOS服务器安全设置,供大家参考。一、注释掉系统不需要的用户和用户组注意:不建议直接删除,当你需要某个用户时,自己重新添加会很麻烦。cp /etc/passwd /etc/passwdbak #修改之前先备份vi /etc/passwd #编辑用户,在前面加上#注释掉此行#adm:x:3:4:adm:/var/adm:/sbin/nologin#lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin#sync:x:5:0:sync:/sbin:/bin/sync#shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown#halt:x:7:0:halt:/sbin:/sbin/halt#uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin#operator:x:11:0:operator:/root:/sbin/nologin#games:x:12:100:games:/usr/games:/sbin/nologin#gopher:x:13:30:gopher:/var/gopher:/sbin/nologin#ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin #注释掉ftp匿名账号cp /etc/group /etc/groupbak #修改之前先备份vi /etc/group #编辑用户组,在前面加上#注释掉此行#adm:x...
quark /   MaxGuevara authored 14 days ago contrib Quarkcoin to Quark transition in Qt 14 days ago doc 2013-06-23 7 months ago share Installer changes a month ago src Windows icons 14 days ago .gitattributes 2013-06-23 7 months ago .gitignore Initial quark checkin 6 months ago COPYING Initial quark checkin 6 months ago INSTALL 2013-06-23 7 months ago README.md Readme 15 days ago quarkcoin-qt.pro Initial quark checkin 6 months ago README.md Quarkcoin 0.8.3 BETACopyright (c) 2009-2013 Bitcoin Developer...
To compile it yourself from the official source, open a terminal and enter the following lines one by one;cd Desktopsudo apt-get updatesudo apt-get -y install make gcc m4 automake libevent-dev zlibc zlib1g-dev libjansson-dev libcurl4-openssl-dev gitgit clone https://github.com/MaxGuevara/quark.gitcd quarkqmakemakeYou should now have a quark folder on your desktop - open that and double click on quarkmine-qt to open the walletI am using Slackware 13.37 x86_64 gcc (GCC) 4.5.2 QMake version 2.01a Qt version 4.7.0Followed these commands: git clone github.com/MaxGuevara/quark.git cd quark/ qmake makeSeemed to be going along fine until:In file included from src/walletdb.h:8:0,                 from src/wallet.h:19,                 from src/init.h:8,           &...
Actively being updated/monitored.If you liked this guide, considering tipping: QRK Qe8t4VFboBgvazQoUapcA8bYdn15NB59k2 | BTC 1GDtPPhXJ8YXFUHUywrqPKAb6QBKQfsBk9Resources    Mining:        Neisklar's Quark version of CPU Miner (source code): github.com/Neisklar/quarkcoin-cpuminer        Stonefoz's miner (source code) - stonefoz.myfastmail.com/cpuminer-quark.zip http://stonefoz.myfastmail.com/cpuminer-quark2.zip        Smolen's GPU miner thread - bitcointalk.org/index.php?topic=310975.0        Quick VPS script for Quark mining (warning, contains somebody's affiliate links): bitcointalk.org/index.php?topic=264866.0        I have also uploaded an Amazon AMI for EC2 mining under 'quark miner all tools'; just search for 'quark'    Meta-Mining: &nb...
QuarkSuper secure cryptographic coin Specifications * Super secure hashing: 9 rounds of hashing from 6 hashing functions (blake, bmw, groestl, jh, keccak, skein). 3 rounds apply a random hashing function.* CPU mining* Quick block generation: 30 seconds* 2048 QRK per block (halving every 60480 blocks ~ 3 weeks)* Block reward will never drop below 1 QRK * Total of 247 million QRK will be mined in ~ 6 months, after that ~ 1 million QRK p.a. (~ 0.5% p.a inflation)* Difficulty retargets every 20 blocks (maximum 10% up or 50% down) Downloads Source code: https://github.com/MaxGuevara/quarkWindows Qt wallet 0.8.3r15 (zip):http://www.qrk.cc/quarkcoin083r15win.zip    File hashes:        md5 bf41df82999832f1193d88218e224772        sha1 4c22f94840a78d9c322322f3c708a6197ed319dfWindows Qt wallet 0.8.3r15 (installer):http://www.qrk.cc/Quark-0.8.3-r15-Installer.exe    File hashes:        md5 f1c4...
用squid缓存视频文件的配置调试   1.首先强调一下视频文件的特点视频文件的尺寸比起普通HTTP请求的文件要大得多视频文件上传以后就不会被修改视频文件被播放器下载时,存在大量多线程下载2.为了跟踪你的命中率和观察你的文件里的TCP_MISS的类型,请增加squid cache manager和access.log的输出。在配置文件中增加以下内容acl managerip src [HOSTIP]acl manager proto cache_objecthttp_access allow manager manageriplogformat analyse %>a "%rm %ru HTTP/%rv" %Ss:%Sh/%Hsaccess_log /usr/local/squid/var/logs/access.log analyse分别增加了manager的访问和access.log的跟踪3.优化前,先关注你当前的squid运行情况squidclient -h[SQUIDIP] -p[PORT] mgr:info mgr的其他选项,用squidclient mgr: 查看 Request Hit Ratios和Byte Hit Ratios这两项重要指标就是我们要追求的结果。他的指标高地直接说明了squid的起到的cache效果Memory accounted for:项中的Total accounted指标表示你所允许squid使用的cache内存有多少空间已经存储了cache文件File decript:or usage for squid:项里面的指标指明了你的文件描述符数量是否cac...
ڵȨ鿴־
windows 2003 server 使用cwrsync同步文件夹的权限问题 windows 2003 server 使用cwrsync 3 同步文件夹后,权限和安全属性不能同步,直接导致无法使用,查阅资料后发现必须在运行命令前使用SET CYGWIN=nontsec参数将以下内容保存成.bat批处理文件后即可运行。@ECHO OFFSET CYGWIN=nontsec"c:\Program Files\cwRsync\bin\rsync" -avrr /cygdrive/c/srcdir/ /cygdrive/d/dstdir/对于cwrsync 3.0.7以后及cwrsync 4.0以后的版本,由于cygwin已经从1.5升级到1.7,而且cygwin1.7的mount点从注册表改成了/etc/fstab ,cwrsync 4.0.4版本使用CYGWIN=nontsec参数无效,仍然存在目录权限问题,解决方法如下,在rsync.exe的上一级目录新建一个etc目录,然后在etc目录用写字板新建一个fstab文件,不带扩展名,文件内容为#edit by gaodi #none /cygdrive cygdrive ntfs override,binary,noacl 0 0none /cygdrive cygdrive binary,posix=0,user,noacl 0 0C:/Program\040Files/cwrsync / ntfs override,binary,noacl 0 0C:/Program\040Files/cwrsync/bin /usr/bin ntfs override,binary,noacl 0 0#C:/Program\040Files/cwrsync/etc/terminfo /usr/share/terminfo ntfs override,...
比特股(PTS)ypool矿池挖矿软件 jhProtominer linux安装使用 PTS XPM FTC 比特 挖矿 矿工 linux ubuntu 软件安装下载地址:https://github.com/Tydus/jhProtominer/archive/master.zip以下是如何安装使用。colaborar con la sostenibilidad del servidor anillosur minando protosharesprotoshares es una nueva cryptomoneda basada en el bitcoin que se ha comenzado a minar hace unos dias hemos creado una cartera para anillosur para minar colectivamente y contribuir de este modo a la sostenibilidad de anillosur, de momento tenemos 6 maquinas trabajando, si quieres contribuir puedes responder a la lista para crear un nuevo minero en la cuenta de anillosur en ypool para minar es necesario instalar una aplicación en linux (debian o ubuntu) sudo apt-get update ; sudo apt-get install git build-essential; git clone https://github.com/Tydus/jhProtominer -b linux-port; cd jhProtominer/src/jhProtominer/ ; make CFLAGS="-O3 -march=native" luego hay que ejecutar el minero(pero hay que crea...
ڵȨ鿴־
    总共268页,当前第172页 | 页数:
  1. 162
  2. 163
  3. 164
  4. 165
  5. 166
  6. 167
  7. 168
  8. 169
  9. 170
  10. 171
  11. 172
  12. 173
  13. 174
  14. 175
  15. 176
  16. 177
  17. 178
  18. 179
  19. 180
  20. 181
  21. 182