จะแสดงตามตัวอย่างนี้
ubuntuder:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
[root@cent6 ~]# ftp 127.0.0.1 Connected to 127.0.0.1 (127.0.0.1). 220 (vsFTPd 2.2.2) Name (127.0.0.1:root): user1 331 Please specify the password. Password: 500 OOPS: cannot change directory:/home/user1 Login failed. ftp>
[root@cent6 ~]# tail -f /var/log/audit/audit.log type=AVC msg=audit(1342860489.387:8445): avc: denied { search } for pid=1806 comm="vsftpd" name="home" dev=sda3 ino=393217 scontext=unconfined_u:system_r:ftpd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=dir
[root@cent6 ~]# getsebool ftp_home_dir ftp_home_dir --> off
[root@cent6 ~]# setsebool ftp_home_dir on
[root@cent6 ~]# getsebool ftp_home_dir
ftp_home_dir --> on
[root@cent6 ~]# setsebool -P ftp_home_dir on
[root@cent6 ~]# ftp 127.0.0.1 Connected to 127.0.0.1 (127.0.0.1). 220 (vsFTPd 2.2.2) Name (127.0.0.1:root): user1 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp>อ้างอิงจาก https://spalinux.com/2012/07/fix-selinux-on-vsftpd-ftp-server-to-user-can-ftp
#vi /etc/modprobe.conf
alias bond0
bonding
options bonding mode=1 miimon=100alias bond1
bonding
alias bond2 bonding#vi
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.1.201
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
:wq#vi
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:60:df:31:13:3d
MASTER=bond0
SLAVE=yes
USERCTL=no#vi
/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:60:df:a0:14:c2
MASTER=bond0
SLAVE=yes
USERCTL=noservice
network restart
หรือ
/etc/init.d/network restartifconfig bond0ping
192.168.1.201cat
/proc/net/bonding/bond0[root@ComZone ~]#
mii-tool
eth0: negotiated 100baseTx-FD, link ok
eth1: negotiated
100baseTx-FD, link okifdown eth0ifup
eth0options bonding mode=2 miimon=100
1
2
3
4
5
6
7
8
9
10
| Use "exit" to exit and "help" for online help.asadmin> change-admin-passwordEnter admin user name [default: admin]>adminEnter the admin password>Enter the new admin password> [enter your new password]Enter the new admin password again> [enter your new password again]Command change-admin-password executed successfully. |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| asadmin>enable-secure-adminEnter admin user name> adminEnter admin password for user "admin">You must restart all running servers for the change in secure admin to take effect.Command enable-secure-admin executed successfully.asadmin> stop-domainWaiting for the domain to stop .Command stop-domain executed successfully.asadmin> start-domainWaiting for domain1 to start .....................Successfully started the domain : domain1domain Location: /usr/local/glassfish4/glassfish/domains/domain1Log File: /usr/local/glassfish4/glassfish/domains/domain1/logs/server.logAdmin Port: 4848Command start-domain executed successfully. |
1
2
3
4
5
6
7
| ...adminCommand list-file-users executed successfully.asadmin> exitCommand multimode executed successfully. |