In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to build SVN server and MySQL under centos, which has certain reference value. Interested friends can refer to it. I hope you can learn a lot after reading this article. Let's take a look at it.
Set up MySQL
1. View the mysql in the yum library
Yum list | grep mysql / / View mysql in yum library
2. Select the required mysql to install
Yum install mysql mysql-server mysql-devel-y / / install mysql
3. Verify that the installation is successful
Yum list installed | grep mysql / / View installed mysqlrpm-qi mysql-server / / View mysql details
4. Start the mysql service
Service mysqld start / / start mysql service service mysqld stop / / stop mysql service service mysqld restart / / restart mysql service
5. Enter mysql and change your password
Mysql-u root / / enter mysqlshow databases; / / display all databases use mysql; / / use a database named "mysql" / * Note: change the password here if you write password='123456', the password is not 123456, but other * / update user set password=password ('123456') where user='root';// change password to 123456select user,password from user; / / check the modified password FLUSH PRIVILEGES / / refresh the user table. If you don't write this sentence, it's useless.
6. Log out and log back in with the password you just changed
Quit; / / log out of mysql (exit; can also log out) mysql-u root-p / / log in to mysql with a password
7. Open remote login permissions
GRANT ALL PRIVILEGES ON *. * TO 'itoffice'@'%' IDENTIFIED BY' itoffice' WITH GRANT OPTION; (the first itoffice represents the user name,% indicates that all computers can connect, or you can set an ip address to run the connection, and the second itoffice represents the password). FLUSH PRIVILEGES
8. Open the firewall port 3306 or turn off the firewall
Service iptables stop / / turn off the firewall / * if there is no iptables file under sysconfig, you can write any protocol: iptables-P OUTPUT ACCEPT and then save: service iptables save then you will have an iptables file * / vim / etc/sysconfig/iptables / / Edit firewall configuration / / add-An INPUT-pt cp-m state-- state NEW-m tcp-- dport 3306-j ACCEPT to the configuration file
9. Set mysq to boot
Chkconfig mysqld on
10. Because it is an Ali cloud server, you have to add 3306 security group to the server on Ali Cloud, otherwise you will not be able to access it remotely.
Set up SVN
Preparatory work
1. Yum install subversion installation
2. Type rpm-ql subversion to view the installation location
3. Establish a directory for mkdir / svn
4. Svnadmin create / svn/test/ build a new test warehouse
5. Cd / svn/test/conf enter the test/conf directory
6 、 vi svnserve.conf
7 、 vi passwd
8 、 vi authz
9. Svnserve-d-r / svn starts the svn service
10. Netstat-ntpl
It means that the server is started.
11. Access to the public network 122.222.222.22 (to install telnet)
To dos telnet 122.222.222.22 3690 on a windows machine
If the connection is not available, the firewall of the linux server is not turned on.
It's already connected.
12. SVN directory tree
Generally speaking, for a more standard SVN, it will have three directories, namely:
/ svn/trunk: backbone
/ svn/branch: a branch of individual or team development
/ svn/tag: a marked version, such as a certain version, has been developed.
Now I'm going to create three of these directories, and then I'm going to import them into the version library, where I'll use the import command.
Cd / svn mkdir-p svn/ {trunk,branch,tag} svn import / svn/svn svn://192.168.200.200/test-username=admin-password=123456-m "import"
Username:user01, this is set by the svn system.
Password:123456, this is set by the svn system.
Thank you for reading this article carefully. I hope the article "how to build SVN server and MySQL under centos" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.