In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Log in to the server
2. Install related dependency packages
Yum install-y gcc zlib zlib-devel openssl openssl-develmysql mysql-server mysql-devel libjpeg-turbo-devel python-devel
3. Configure mysql
Start: service mysqld start or / etc/init.d/mysqld start
Power on and start mysql automatically
Chkconfig mysqld on
Copy configuration fil
Cp / usr/share/mysql/my-medium.cnf / etc/my.cnf
Set a password for the root account and enter the command:
Mysql_secure_installation
Step 1: enter directly
Step 2: whether to set the root password, enter "y" and enter the password twice
Step 3: whether to delete the anonymous account or not, enter "y"
Step 4: whether to prohibit remote login of root account, enter "y"
Step 5: whether to delete the test database or not, enter "y"
Step 6: whether to reload the authorization information, enter "y".
[the above is based on individual actual settings]
4. Install python2.7
Seafile needs the support of python version 2.7+, do not use version more than 3.0, the support is not very good.
Centos6.8 comes with version 2.6.6, which is too low, so you have to compile and install version 2.7 + yourself. 2.7.10 is used here
[link: http://down.51cto.com/data/2305764]
Extract the installation package
[root@VM_102_193_centos ~] # tar xvf Python-2.7.10.tar
Enter the decompressed directory
[root@VM_102_193_centos Python-2.7.10] # cd Python-2.7.10
Compile
[root@VM_102_193_centosPython-2.7.10] #. / configure--prefix=/usr/local/python
Installation
[root@VM_102_193_centos Python-2.7.10] # make & & make install
If python2.6.6 exists before after installation, replace 2.6.6 with 2.7.10
Vim / etc/profile
Add under export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
PATH=$PATH:/usr/local/python/bin
Save exit
Mv / usr/bin/python / usr/bin/python2.6.6
Source / etc/profile
Verify the version:
Python-V
5. Solve the compatibility between yum and python2.7:
Yum is not compatible with python2.7+, so modify the configuration file of yum.
[root@VM_102_193_centos Python-2.7.10] # vim / usr/bin/yum
Change the header file #! / usr/bin/ypthon to #! / usr/bin/python2.6.6
6. Install setuptools:
[link: http://down.51cto.com/data/2305764]
Decompress setuptools-0.6c11.tar.gz
Tar zxf setuptools-0.6c11.tar.gz
Enter the decompressed directory
[root@VM_102_193_centos setuptools-0.6c11] # cdsetuptools-0.6c11
Installation:
Python setup.py build
Python setup.py install
7. Install pip:
[link: http://down.51cto.com/data/2305764]
Decompress pip-8.1.2.tar.gz
Tar zxvf pip-8.1.2.tar.gz
Installation:
Python setup.py install
8. Install pillow:
[root@VM_102_193_centos pip-8.1.2] # pip install pillow
It is recommended to perform upgrade
[root@VM_102_193_centos pip-8.1.2] # pip install-- upgradepip
9. Install MySQL-python:
10. Download the package MySQL-python-1.2.3.tar.gz and unzip it, and install it using python
[link: http://down.51cto.com/data/2305764]
Enter the decompressed folder
[root@VM_102_193_centos MySQL-python-1.2.3] # cdMySQL-python-1.2.3
Perform installation
Python setup.py build
Python setup.py install
11. Deploy the Seafile server
Create a service catalog
Mkdir / yunpan
Download seafile-server_6.0.9_x86-64.tar.gz
[link: http://down.51cto.com/data/2305764]
Extract the file
[root@VM_102_193_centos seafile-server-6.0.9] # tar zxvfseafile-server_6.0.9_x86-64.tar.gz
Enter the decompressed directory
[root@VM_102_193_centos seafile-server-6.0.9] # cdseafile-server-6.0.9/
12. Perform installation
[root@VM_102_193_centos seafile-server-6.0.9] #. / setup-seafile-mysql.sh
13. Start related services
[root@VM_102_193_centosseafile-server-6.0.9] #. / seafile.sh start
[root@VM_102_193_centos seafile-server-6.0.9] #. / seahub.sh start8000
[notes]
When performing the installation, enter the IP address, enter the public network IP, enter the public network IP;, use the DDNS external mapping, enter the private network IP
When entering the private network IP, after the external mapping is completed, the WEB interface can be changed to the public network domain name and port number.
[version 5.0 or above]
Reference link
Seafile server manual Chinese version
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.