-
nicolasff/phpredis/downloads2.**After there are two modules in it that are compiled by VC6 and VC9, we need to know whether our PHP is VC6 or VC9: create a new one and click (here) to collapse or open 3
Install the modulePut the php module into the php installation directory ext; Extension=PHP added before extension=php After restarting Apache, visit and click (here) to collapse or open connect("","6379");$redis->set("test","helloworld");echo$redis->get("test");?Test results.
-
1.Run Redis server-side.
Double-click the file in the d: program directory (Redis server) to run the Redis server in the form of a window (but the window cannot be closed, otherwise, the Redis service will not be available). In this way, the Redis server is run without loading the specified configuration file.
2.Run the Redis client.
Double-click the file in the d: program directory (Redis client), if it displays: 6379>, the client is running successfully.
Enter the command: keys *
See all the keys.
If it says "noauth authentication required."", the Redis server has set a password, enter the correct password before performing other operations.
Enter the command: auth password.
If the message is OK, the password is correct.
Tips: You can send the D: program directory to the desktop shortcut, so that you can quickly open the Redis client in the future.
3.Install the Redis service to the on-premises service.
The above method of starting the Redis server is a bit complicated, and the Redis service window cannot be closed. Therefore, this section describes how to install the Redis service to the local service on Windows.
Copy the file in the d: program directory and rename it to the redis configuration file.
Open the command line of the win system and enter the following commands in order:
D: (Enter, switch to D drive).
cd program (press enter, switch to the d: program directory).
redis-server --service-install --loglevel verbose (press enter, install the redis local service, specify the configuration file.)
After the operation is completed, you can go to the local service management office of the win system to view and operate the Redis service. (Computer icon right-click ->Manage) -Services & Applications ->Services).
4.Set the Redis password.
d: program directory, find the following **:
# requirepass foobared
Copy it on a single line, remove the leading annotation, and change foobared to the password you want to set, e.g.
requirepass test
Save to exit. Restart the Redis service, and the configuration file will take effect.
-
1. Click Install exe file to install it. Choose the path and stay until the installation is complete.
2. Click Service to check whether the Redis service is installed correctly. windows--》The default port is 6379. The service has started.
3. Use the client tool to connect, and the following screen will appear.
4. Use the cmd tool to install another Redis instance with port 6369You need to build a conf file for port 6369 in advance.
For example: C: users
gray>
service-name
redisserver6369 --port 63695 tried several times without prompting a success message, but the view service was successful, and the connection with the client was also successful.
6. Check the Redis service on port 6369.
7. Use the client to connect to the 6369 Redis service, and the following interface appears, indicating success.
8 And so it was done.
-
4. Extract the compressed file to a specific directory as follows:
6. After the server is started, you can click the client to start and use
Study book reference: Redis Getting Started Guide (2nd Edition).
-
1. It can be started directly.
2. You can specify a configuration file for Redis service startup, and the configuration file is in the root directory of Redis.
There is only a reinstall system for changing the system, and it is not troublesome to reinstall the system, you haven't installed it, quack. There's always a first time, so go ahead and try it.
Computer operating system, can be divided into three types, UNIX series, Linux series, Windows series, now Windows series with a lot of people, and it is easier to get started, it is more successful in terms of graphical operation interface! At the same time, its security is not very good, as a server system, it still uses relatively high security Linux, or UNIX operating system, these two operating systems, now also support graphical interfaces. Windows series are common, Windows XP, Windows Me, Windows 2000, Windows NT, Windows Server2003, Windows 2000 Server >>>More
Change the product name for Windows.
1) Go to the hkey local machine software Microsoft Windows CurrentVersion >>>More
This path exists regardless of the version, but if it exists in your current user, it depends on whether your current user is administrator or not. Also, the versions of XP are Home and Professional, and each version is divided into SP1 and SP2 versions. It is recommended that you find the SP2 version to install, if you will modify the motherboard BIOS, it is best to install the OEM version, no activation.
Windows XP Chinese Professional 1600Coem Windows XP Chinese Home 480Microsoft Windows XP Professional (Chinese) 800