forked from FH0/nubia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
by_jzdh.sh
40 lines (35 loc) · 847 Bytes
/
by_jzdh.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#linux first setting
wget https://raw.githubusercontent.com/FH0/nubia/master/first_set.sh
bash first_set.sh
#set vsftpd
yum install -y vsftpd
echo 'anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
tcp_wrappers=YES
chroot_local_user=yes' > /etc/vsftpd/vsftpd.conf
service vsftpd restart
ln -s /home/f/ /accept/
chmod -R 777 /accept
chmod -R 777 /home
adduser f
passwd f << EOF
zxc
zxc
EOF
usermod -s /sbin/nologin ftpuser
usermod -d /mnt ftpuser
#set nginx
wget https://raw.githubusercontent.com/FH0/nubia/master/nginx.sh;bash nginx.sh
#set ssr
wget https://raw.githubusercontent.com/FH0/nubia/master/ssr.sh
bash ssr.sh
wget https://raw.githubusercontent.com/FH0/nubia/master/cxll.sh
bash cxll.sh