@@@@@@@@@@@@@@@@@@@@@@@@@@
Install phpMyAdmin
@@@@@@@@@@@@@@@@@@@@@@@@@@
# yum -y update
# yum -y install epel*
# yum -y install phpMyAdmin*
# yum -y install phpMyAdmin*
# vi /etc/httpd/conf.d/phpMyAdmin.conf
(add
Require ip 192.168.1.19
Require ip 192.168.1.36)
# systemctl restart httpd
# systemctl restart MariaDB
Require ip 192.168.1.19
Require ip 192.168.1.36)
# systemctl restart httpd
# systemctl restart MariaDB
http://192.168.1.133/phpMyAdmin
執行以下指令安裝 MariaDB:
啟動及設定開機自動執行 MariaDB:
@@@@@@@@@@@@@@@@@@@@@@@@@@
安裝 MariaDB
@@@@@@@@@@@@@@@@@@@@@@@@@@
執行以下指令安裝 MariaDB:
# yum install mariadb-server mariadb
啟動及設定開機自動執行 MariaDB:
# systemctl start mariadb
# systemctl enable mariadb
# systemctl enable mariadb
@@@@@@@@@@@@@@@@@@@@@@@@@@
setup owncloud MariaDB database
@@@@@@@@@@@@@@@@@@@@@@@@@@
setup owncloud MariaDB database
@@@@@@@@@@@@@@@@@@@@@@@@@@
Database : 'ownclouddb'
Database User : 'ownclouduser'
Password : 'centos'
================================================================
# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 66
Server version: 5.5.34-MariaDB MariaDB Server
Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> CREATE DATABASE ownclouddb;
Query OK, 1 row affected (0.04 sec)
MariaDB [(none)]> GRANT ALL ON ownclouddb.* TO ownclouduser@localhost IDENTIFIED BY 'centos';
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> exit
Bye
================================================================
# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 66
Server version: 5.5.34-MariaDB MariaDB Server
Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> CREATE DATABASE ownclouddb;
Query OK, 1 row affected (0.04 sec)
MariaDB [(none)]> GRANT ALL ON ownclouddb.* TO ownclouduser@localhost IDENTIFIED BY 'centos';
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.01 sec)
MariaDB [(none)]> exit
Bye
@@@@@@@@@@@@@@@@@@@@@@@@@
view MariaDB log
@@@@@@@@@@@@@@@@@@@@@@@@@
view MariaDB log
@@@@@@@@@@@@@@@@@@@@@@@@@
# cat /var/log/mariadb/mariadb.log
@@@@@@@@@@@@@@@@@@@@@@@@@
view ownCloud log
@@@@@@@@@@@@@@@@@@@@@@@@@
view ownCloud log
@@@@@@@@@@@@@@@@@@@@@@@@@
# cat /var/www/html/owncloud/data/owncloud.log
# cat /mnt/win/owncloud.log
@@@@@@@@@@@@@@@@@@@@@@@@@
show ip address
@@@@@@@@@@@@@@@@@@@@@@@@@
# systemctl status NetworkManager.service
# nmcli dev status
# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
# systemctl restart network.service
# ip addr show
# nmcli dev status
# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
# systemctl restart network.service
# ip addr show
@@@@@@@@@@@@@@@@@@@@@@@@@
Yum update and upgrade
@@@@@@@@@@@@@@@@@@@@@@@@@
# yum update && yum upgrade
现在添加 Apache 服务到系统层使其随系统自动启动
@@@@@@@@@@@@@@@@@@@@@@@@@
添加 Apache 服务到系统层使其随系统自动启动
@@@@@@@@@@@@@@@@@@@@@@@@@
现在添加 Apache 服务到系统层使其随系统自动启动
# systemctl start httpd.service
# systemctl enable httpd.service
@@@@@@@@@@@@@@@@@@@@@@@@@
Mount VMware Harddisk on CentOS 7
@@@@@@@@@@@@@@@@@@@@@@@@@
http://www.ehowstuff.com/how-to-create-lvm-on-centos-7-rhel-7/
@@@@@@@@@@@@@@@@@@@@@@@@@
Mount Windows share folder with cifs
Mount Windows share folder with cifs
@@@@@@@@@@@@@@@@@@@@@@@@@
( for CentOS7)
# yum install samba-client samba-common cifs-utils
# vi /etc/fstab
### \\\192.168.1.19\owncloud-Data /mnt/win cifs user=win-share,pass=-Pwd-,uid=48,gid=48 0 0
#mount -t cifs -o iocharset=utf8, dir_mode=0770,file_mode=0777, uid=48,gid=48,username=win-share, password=- Pwd - //192.168.1.19/share_samba /mnt/win
#mount -t cifs -o iocharset=utf8, dir_mode=0770,file_mode=0777, uid=48,gid=48,username=win-share, password=- Pwd - //192.168.1.19/share_samba /mnt/win
@@@@@@@@@@@@@@@@@@@@@@@@@
Mount Windows share folder with nfs
Mount Windows share folder with nfs
@@@@@@@@@@@@@@@@@@@@@@@@@
# yum -y install nfs-utils
# vi /etc/rc.d/rc.local
mount -t nfs 192.168.1.19:/owncloud-data /mnt/win
chmod 755 -R /mnt/win
chown apache:apache -R /mnt/win
# vi /etc/fstab
mount -t nfs 192.168.1.19:/owncloud-data /mnt/win
chmod 755 -R /mnt/win
chown apache:apache -R /mnt/win
# vi /etc/fstab
192.168.1.19:/owncloud-data /mnt/win nfs defaults 0 0
192.168.1.19:/owncloud-data /mnt/win nfs rw,hard,intr,rsize=32768,wsize=32768 0 0
#chmod 755 /mnt/win -R
#chown apache:apache -R
#chmod 755 /mnt/win -R
#chown apache:apache -R
沒有留言:
張貼留言