linux65安装教程,ss5安装教程

原标题:ss5安装教程

1.首先,编译安装SS5需要先安装一些依赖组件

yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel

yum -y install openssl-devel

yum install libssl-dev

2.下载SS5

wget ss5-3.8.9-8.tar.gz

操作开始:

1 yum install wget vim automake make gcc openldap-devel pam-devel openssl-devel

2 mv /etc/dowan/CentOS-Base.repo /etc/dowan/CentOS-Base.repo.backup

3 cd /etc/dowan/

4 wget http://域名/.help/CentOS7-Base-163.repo

5 ls

6 wget -O /etc/dowan/CentOS-Base.repo http://域名/repo/Centos-7.repo

7 yum install wget vim

8 yum install wget

9 cd /etc

10 ls

11 vi rc.local

12 cat resolv.conf

13 vi resolv.conf

14 yum install wget

15 yum -y install gcc automake make

16 yum install wget vim automake make gcc openldap-devel pam-devel openssl-devel

17 Loading mirror speeds from cached hostfile

18 vi /etc/resov.conf

19 ls

20 vi resolv.conf

21 cd /etc

22 cd sysocnfig

23 ls

24 cd sysconfig

25 ls

26 cd network-sq

27 cd network-scripts/

28 ls

29 vi ifcfg-eth0

30 service network restart

31 yum install wget vim automake make gcc openldap-devel pam-devel openssl-devel

32 Loading mirror speeds from cached hostfileyum -y update

33 yum -y update

34 yum search vim

35 Loading mirror speeds from cached hostfilecd /etc/dowan/

36 cd /etc/dowan/

37 ls

38 yum clean all

39 rm -f /var/lib/rpm/__db*

40 rpm –rebuilddb

41 yum update

42 vi /etc/yum/pluginconf.d/fastestmirror.conf

43 yum install wget vim automake make gcc openldap-devel pam-devel openssl-devel

44 cd /etc/dowan/

45 wget http://域名/.help/CentOS7-Base-163.repo

46 yum install wget

47 yum -y install pam-devel openldap-devel cyrus-sasl-devel gcc automake make openssl openssl-devel

48 Setting up Install Processwget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo

49 wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo

50 ls

51 cp CentOS-Base.repo.backup CentOS-Base.r

52 cp CentOS-Base.repo.backup CentOS-Base.repo

53 ls

54 yum -y install pam-devel openldap-devel cyrus-sasl-devel gcc automake make openssl openssl-devel

55 wget -c http://sourceforge.net/projects/ss5/files/ss5/3.8.9-2/ss5-3.8.9-2.tar.gz/download

56 yum install wget

57 wget -c http://sourceforge.net/projects/ss5/files/ss5/3.8.9-2/ss5-3.8.9-2.tar.gz/download

58 ls

59 cd /

60 ls

61 wget -c http://sourceforge.net/projects/ss5/files/ss5/3.8.9-2/ss5-3.8.9-2.tar.gz/download

62 wget http://jaist.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz

63 ls

64 tar vzxf ss5-3.8.9-8.tar.gz

65 ls

66 tar vzxf ss5-3.8.9-8.tar.gz

67 tar vzxf ss5-3.8.9-8.tar.gz

68 ls

69 cd ss5-3.8.9

70 cd ss5-3.8.9

71 ls

72 ./configure

73 ls

74 ./configure

75 make

76 make install

77 make install

78 ls

79 vi ip.sh

80 ifconfig

81 ls

82 chmod ipsh

83 chmod 750 ip.sh

84 ./ip.sh

85 ifconfig

86 ip addr

87 ls

88 vi ip.sh

89 ./ip.sh

90 ip addr

91 cd /etc

92 cd sysconfig

93 ls

94 cd network-scripts/

95 ls

96 vi ifcfg-eth0

97 service netwokr restart

98 service network restart

99 ifconfig

100 ping 61.139.2.69

101 service netwokr restart

102 service network restart

103 cd /etc

104 ip addr

105 service network restart

106 ip addr

107 ls

108 cd sysconfig

109 ls

110 cd network-scripts/

111 ;ls

112 ping 61.13

113 ping 61.139.2.69

114 lks

115 ls

116 cat ifcfg-eth0

117 ifconfig

118 ping 125.65.112.129

119 ping 125.65.112.1

120 ls

121 route print

122 oute

123 route

124 ls

125 cat ifcfg-eth0

126 reboot

127 ls

128 vi ip.sh

129 ./ip.sh

130 ifconfig

131 ip addr

132 ls

133 vi user.sh

134 ls

135 chmod 750 usersh

136 chmod 750 user.sh

137 ./user.sh

138 cat /etc/passwd

139 clear

140 cat /etc/passwd

141 root:x:0:0:root:/root:/bin/bash

142 bin:x:1:1:bin:/bin:/sbin/nologin

143 daemon:x:2:2:daemon:/sbin:/sbin/nologin

144 adm:x:3:4:adm:/var/adm:/sbin/nologin

145 lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin

146 sync:x:5:0:sync:/sbin:/bin/sync

147 shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown

148 halt:x:7:0:halt:/sbin:/sbin/halt

149 mail:x:8:12:mail:/var/spool/mail:/sbin/nologin

150 uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin

151 operator:x:11:0:operator:/root:/sbin/nologin

152 games:x:12:100:games:/usr/games:/sbin/nologin

153 gopher:x:13:30:gopher:/var/gopher:/sbin/nologin

154 ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin

155 nobody:x:99:99:Nobody:/:/sbin/nologin

156 vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin

157 saslauth:x:499:76:"Saslauthd user":/var/empty/saslauth:/sbin/nologin

158 postfix:x:89:89::/var/spool/postfix:/sbin/nologin

159 sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin

160 socks1002:x:1002:1002::/home/socks1002:/dev/null

161 socks1003:x:1003:1003::/home/socks1003:/dev/null

162 socks1004:x:1004:1004::/home/socks1004:/dev/null

163 socks1005:x:1005:1005::/home/socks1005:/dev/null

164 socks1006:x:1006:1006::/home/socks1006:/dev/null

165 clear

166 vi nat-mangle.sh

167 chmod 750 nat-mangle.sh

168 ./nat-mangle.sh

169 iptables -nvL -t mangle

170 vi snat.sh

171 chmod 750 snat.sh

172 ./snat.sh

173 ls

174 cat snat.sh

175 iptables -nvL -t nat

176 vi /etc/opt/ss5/ss5.conf

177 vi /etc/opt/ss5/ss5.passwd

178 vi ss5.sh

179 chmod 750 ss5.sh

180 ./ss5.sh

181 ps -ef | grep ss5

182 iptables -I INPUT 1 -m state --state NEW -m tcp -p tcp --dport 5555 -j ACCEPT

183 ulimit -SHn 10240

184 ulimit -SHs unlimited

185 echo 500000 >/proc/sys/net/nf_conntrack_max

186 service ss5 start

187 service ss5 restart

188 env: /etc/init.d/ss5: Permission denied

189 chown root:root /etc/opt/ss5/ss5.passwd

190 chmod 755 /etc/opt/ss5/ss5.passwd

191 chmod 755 /etc/opt/ss5

192 service ss5 restart

193 cd /etc/init.d/

194 ls

195 cat ss5

196 ls

197 chmod 755 ss5

198 service ss5 restart

199 cat /etc/opt/ss5/ss5.passwd

200 cat /etc/opt/ss5/ss5

201 ps -ef | grep ss5

202 ip addr

203 ps -ef | grep ss5

204 iptables -I INPUT 1 -m state --state NEW -m tcp -p tcp --dport 5555 -j ACCEPT

205 service ss5 restart

206 ps –ef | grep ss5

207 ps -ef | grep ss5

208 ip addr

209 iptables -nvL -t nat

210 vi /etc/opt/ss5/ss5.conf

211 service ss5 restart

212 vi /etc/opt/ss5/ss5.conf

213 service ss5 restart

214 awk -F: '/^user1:/{print $1,$4}' /etc/passwd

215 iptables -nvL -t mangle

216 iptables -nvL -t nat

217 route

218 iptables -nvL -t mangle

219 netstat -tnlp | grep 1080 netstat -tnlp | grep 1080

220 netstat -tnlp | grep 1080

221 netstat -tnlp | grep 5555

222 iptables -I INPUT 1 -m state --state NEW -m tcp -p tcp --dport 1080 -j ACCEPT

223 ip aadr

224 ip addr

225 route print

226 route

227 route print

228 ifconfig

229 if addr;

230 ip addr

231 service ss5 start

232 service ss5 restart

233 ip addr

234 route routem

235 netstat -anplut

236 netstat -anplutiptables --list

237 iptables --list

238 iptables -L -n --line-number

239 cat /etc/passwd

240 service iptables status

241 iptables -nvL -t mangle

242 iptables -nvL -t nat

243 ps –ef | grep ss5

244 ps –ef | grep ss5 ps -ef | grep ss5

245 ps -ef | grep ss5

246 clear

247 ps -ef | grep ss5

248 ps -ef | grep ss5 cat ss5.sh

249 cat ss5.sh

250 ls

251 vi ss5.sh

252 ./ss5.sh h

253 ss5 restart

254 service ss5 restart

255 service ss5 restart

256 ps -ef | grep ss5

257 cat ss5.sh

258 ps -ef | grep ss5

259 cat /etc/opt/ss5/ss5.conf cat /etc/opt/ss5/ss5.conf

260 cat /etc/opt/ss5/ss5.conf

261 clear

262 cat /etc/opt/ss5/ss5.conf

263 ./ss5.sh

264 ps -ef | grep ss5

265 cat passwd

266 cat /etc/opt/ss5/ss5.passwd

267 service ss5 restart

268 ping 125.65.112.205

269 ping 125.65.112.203

270 ls

271 /etc/opt/ss5/ss5.passwd

272 cat /etc/opt/ss5/ss5.passwd

273 cat /etc/opt/ss5/ss5.conf

274 iptables -I INPUT 1 -m state --state NEW -m tcp -p tcp --dport 1080 -j ACCEPT

275 chown root:root /etc/opt/ss5/ss5.passwd

276 chmod 755 /etc/opt/ss5/ss5.passwd

277 chmod 755 /etc/opt/ss5

278 service ss5 restart

279 iptables -nvL -t mangle

280 iptables -nvL -t nat

281 ls

282 vi /etc/opt/ss5/ss5.conf

283 service ss5 restart

284 vi /etc/opt/ss5/ss5.conf

285 service ss5 restart

286 vi /etc/opt/ss5/ss5.conf

287 service ss5 restart

288 service iptables status

289 iptables -nvL -t mangle

290 ps –ef | grep ss5

291 ps -ef | grep ss5

292 ip addr

293 cat ss5.sh

294 ./ss5.sh

295 service iptables status

296 service ss5 restart

297 reboot

298 service ss5 restart

299 service iptables status

300 cat ss5.sh

301 ps -ef | grep ss5

302 iptables -nvL -t mangle

303 vi /etc/opt/ss5/ss5.conf

304 cat ss5.sh

305 service ss5 restart

306 cat /etc/opt/ss5/ss5.conf

307 cd /etc/opt/ss5/

308 ls

309 cat ss5.passwd

310 ls

311 vi /etc/opt/ss5/ss5.conf

312 service ss5 restart

313 vi /etc/opt/ss5/ss5.conf

314 service ss5 restart

315 cat /etc/opt/ss5/ss5.conf

316 service ss5 restart

317 ls

318 cat vi /etc/opt/ss5/ss5.conf

319 vi /etc/opt/ss5/ss5.conf

320 service ss5 restart

321 ip add

322 ip addr

323 ip addr add

324 ip addr ip

325 ls

326 ip addr add

327 service ss5 restart

328 vi /etc/opt/ss5/ss5.conf

329 service ss5 restart

330 vi /etc/opt/ss5/ss5.conf

331 service ss5 restart

332 iptables -I INPUT 1 -m state --state NEW -m tcp -p tcp --dport 1080 -j ACCEPT

333 ps -ef | grep ss5

334 cat /etc/opt/ss5/ss5.conf

335 iptables -nvL -t nat

336 cat /etc/passwd

337 cat /etc/passwd

338 vi /etc/opt/ss5/ss5.conf

339 service ss5 restart

340 ls

341 cat cat /etc/opt/ss5/ss5.passwd

342 cat /etc/opt/ss5/ss5.passwd

343 service ss5 restart

344 chown root:root /etc/opt/ss5/ss5.passwd

345 chmod 755 /etc/opt/ss5/ss5.passwd

346 chmod 755 /etc/opt/ss5

347 vi /etc/opt/ss5/ss5.conf

348 service ss5 restart

349 VnPy02

350 cat /etc/opt/ss5/ss5.passwd

351 VnPy01 pass@wd01

352 VnPy02 pass@wd02

353 VnPy03 pass@wd03

354 VnPy04 pass@wd04

355 VnPy05 pass@wd05

356 history

357 service ss5 restart

358 ssh -V

359 list

360 history

361 service ss5 restart

362 cat /etc/opt/ss5/ss5.passwd

363 vi /etc/opt/ss5/ss5.conf

364 service ss5 restart

365 ls

366 vi /etc/opt/ss5/ss5.conf

367 service ss5 restart

368 vi /etc/sysconfig/ss5

369 service ss5 restart

370 vi /etc/sysconfig/ss5

371 cat ss5.passwd

372 cat /etc/opt/ss5/ss5.passwd

373 vi /etc/opt/ss5/ss5.passwd

374 service ss5 restart

375 /etc/rc.d/init.d/ss5 restart

376 cat /etc/opt/ss5/ss5.passwd

377 ip addr

378 ip addr addr返回搜狐,查看更多

责任编辑:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值